Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Apr 2005
    Posts
    246

    Default Using PEAR (php) installs in Cpanel/WHM setup

    Hi,

    The usual command to get PEAR to install something, like Cpan in the Perl world, is as follows:
    pear -v install tidy
    This will install the TIDY module. But when I execute this in my SU shell, I see these errors:
    Starting to download tidy-1.1.tgz (9,128 bytes)
    .....done: 9,128 bytes
    + create dir /usr/local/lib/php/doc/tidy
    + create dir /usr/local/lib/php/doc/tidy/examples
    + create dir /usr/local/lib/php/test/tidy/tests
    3 source files, building
    building in /tmp/tmp77Pry5/tidy-1.1
    running: phpize
    /usr/local/bin/phpize: /tmp/tmp77Pry5/tidy-1.1/build/shtool: /bin/sh: bad interpreter: Permission denied
    /usr/local/bin/phpize: line 68: -f: command not found
    `phpize' failed
    What gives? What am I missing?

    Thanks

  2. #2
    Member
    Join Date
    May 2003
    Location
    Seattle
    Posts
    103

    Default

    pear install is attempting to execute a script from /tmp and you configured your cpanel to not allow execution of scripts from /tmp. I don't know how to fix this yet, though.

  3. #3
    Member
    Join Date
    May 2003
    Location
    Seattle
    Posts
    103

    Default

    mount -o remount,exec /tmp
    pear install {whatever}
    mount -o remount /tmp

Similar Threads & Tags
Similar threads

  1. PEAR Manager in WHM/cPanel 11?
    By sciencedaily in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-27-2007, 11:10 AM
  2. whm/cpanel installs 3 php versions on your server
    By Radio_Head in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-17-2006, 07:44 AM
  3. cPanel/WHM won't serve web pages after installs initial config setup
    By summy in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-15-2004, 04:22 PM
  4. cpanel installs OLD php-nuke !?
    By zhero2002 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-04-2003, 05:45 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube