Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    151
    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,460
    Likes Received:
    21
    Trophy Points:
    463
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...
Similar Threads - Neutralizing Securetmp Script
  1. rhm.geerts
    Replies:
    5
    Views:
    294

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice