Using PEAR (php) installs in Cpanel/WHM setup

erick_paper

Well-Known Member
Apr 19, 2005
245
0
166
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
 

payne

Well-Known Member
May 31, 2003
103
0
166
Seattle
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.