Discover Centmin Mod today
Register Now

pecl module installation problems

Discussion in 'Other Centmin Mod Installed software' started by SneakyDave, Feb 28, 2015.

Tags:
  1. SneakyDave

    SneakyDave Member

    84
    14
    8
    Jul 24, 2014
    Ratings:
    +22
    Local Time:
    8:09 PM
    1.0.15
    Hello


    I was trying to install a couple of pecl modules (phpssh2, bbcode) on my centminmod system, and was running into this error:
    Code:
    shtool at '/tmp/pear/temp/ssh2/build/shtool' does not exist or is not executable.
    
    It turns out the /tmp directory has its noexec flag set, so this command needs to be executed to turn EXEC on for /tmp
    Code:
    mount -o remount,exec /tmp/
    
    Are there any security or other concerns doing this? If not, can centminmod do this step at installation. The pecl module installation installation routine won't work at all without it.
     
  2. eva2000

    eva2000 Administrator Staff Member

    53,614
    12,139
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,683
    Local Time:
    11:09 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    PHP ssh2 Extension ? Easy PHP-FPM - Install PHP extension ssh2 | Centmin Mod Community :)

    noexec lock down on /tmp is for security and well it's passed down from original Centmin script which Centmin Mod is forked from :)

    If you can't run in /tmp, you can always just temporarily export TMPDIR=/someotherpath prior to running install and then unset TMPDIR afterwards
     
  3. SneakyDave

    SneakyDave Member

    84
    14
    8
    Jul 24, 2014
    Ratings:
    +22
    Local Time:
    8:09 PM
    1.0.15
    Thanks eva, I should have done more searching first. Thanks again.

    I just made /tmp executable to install it, and then made it noexec after installation. I've bookmarked your instructions for the next time.
     
  4. eva2000

    eva2000 Administrator Staff Member

    53,614
    12,139
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,683
    Local Time:
    11:09 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    you're welcome

    usually i do source compiles for PHP extensions to get latest versions e.g. ssh2 = 0.12 PECL :: Package :: ssh2

    what does pecl installed ssh2 version give you ?
     
  5. SneakyDave

    SneakyDave Member

    84
    14
    8
    Jul 24, 2014
    Ratings:
    +22
    Local Time:
    8:09 PM
    1.0.15
    The installation couldn't find a stable build of ssh2, so it brought in the latest beta.

    Code:
    =========================================
    Package Version State
    ssh2    0.12    beta
    
     
  6. eva2000

    eva2000 Administrator Staff Member

    53,614
    12,139
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,683
    Local Time:
    11:09 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Ah guess in that case no diff to source compile heh