The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Neutralizing The Securetmp Script?

Discussion in 'General Discussion' started by TheFerrett, Sep 20, 2006.

  1. TheFerrett

    TheFerrett Member

    Joined:
    Feb 17, 2005
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Here's the issue:

    I need to install a PHP Accelerator (preferably APF) on our server. It keeps bombing out with this message:

    /usr/local/bin/phpize: /tmp/tmpDUzC4W/APC-3.0.12p2/build/shtool: /bin/sh: bad interpreter: Permission denied.

    The issue, as I eventually tracked it down, stems from the fact that a) certain servers have their temp folders mounted on a -noexec mount, as we do, and b) PECL/PEAR, the package used to install this, is stupid enough to have the /tmp location hard-coded so that you can't actually change it to another directory.

    So the question is: how would I temporarily enable executing files on the /tmp file? (I tried editing fstab, and found nothing resembling /tmp, which indicates that the securetmp script does it in some other way). And how would I re-lock the /tmp directory when it's over?

    Thanks,
    T.F.
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Turn it off:

    mount -v -o remount,exec /tmp

    Turn it back on:

    mount -v -o remount,noexec /tmp
     

Share This Page