Want more timely Centmin Mod News Updates?
Become a Member

pecl module installation problems

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

Tags:
  1. SneakyDave

    SneakyDave Member

    68
    11
    8
    Jul 24, 2014
    Ratings:
    +16
    Local Time:
    7:01 AM
    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

    29,022
    6,586
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,776
    Local Time:
    10:01 PM
    Nginx 1.13.x
    MariaDB 5.5
    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
     
    • Like Like x 1
  3. SneakyDave

    SneakyDave Member

    68
    11
    8
    Jul 24, 2014
    Ratings:
    +16
    Local Time:
    7:01 AM
    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

    29,022
    6,586
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,776
    Local Time:
    10:01 PM
    Nginx 1.13.x
    MariaDB 5.5
    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 ?
     
    • Informative Informative x 1
  5. SneakyDave

    SneakyDave Member

    68
    11
    8
    Jul 24, 2014
    Ratings:
    +16
    Local Time:
    7:01 AM
    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
    
     
    • Like Like x 1
  6. eva2000

    eva2000 Administrator Staff Member

    29,022
    6,586
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,776
    Local Time:
    10:01 PM
    Nginx 1.13.x
    MariaDB 5.5
    Ah guess in that case no diff to source compile heh
     
    • Like Like x 1