Hi,
I'm trying to update Magento with PEAR but it complains of not being able to find PHP.
I built PHP 5.2.13 with:
So
But I get this error:
[qoute]
# ./pear mage-setup
Error:
./pear: line 91: exec: php: not found
[/quote]
Line 91 is:
For one other person it was a chroot issue, but if I set Restrained to No in this virtualhost it makes no difference. Another person had to yum install php5-cli but that is not a recognised package on my CentOS server.
Maybe I need to recompile PHP with
Or how else can I tell PEAR where PHP is and vice versa? I know I can add include paths to PHP.ini or compile with the paths but where is PEAR? Can I hardcode the PHP path in that PHP code?
I'm trying to update Magento with PEAR but it complains of not being able to find PHP.
I built PHP 5.2.13 with:
'./configure' '--prefix=/opt/lsws/lsphpmage' '--with-libdir=lib64' '--with-kerberos' '--with-mysql-sock=/tmp/mysql.sock' '--with-gd' '--enable-shmop' '--enable-track-vars' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-magic-quotes' '--enable-mbstring' '--with-iconv' '--with-mhash' '--with-mcrypt' '--with-mysql' '--with-pear' '--with-xml' '--with-simplexml' '--with-zlib' '--with-enable-inline-optimization' '--disable-debug' '--with-dom' '--with-dom-xslt' '--with-sqlite' '--with-curl' '--with-php-soap' '--with-soap' '--enable-soap' '--enable-pdo' '--with-mysql-pdo' '--with-pdo-mysql' '--with-gif' '--with-jpeg' '--with-png' '--enable-jpg' '--enable-png' '--enable-gif' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-litespeed' '--with-openssl' '--enable-ftp' '--enable-calendar' '--enable-json' '--enable-gd-native-ttf' '--with-freetype' '--with-freetype-dir=/usr/include/freetype2' '--with-ttf' '--enable-suhosin'
--with-pear
is there.But I get this error:
[qoute]
# ./pear mage-setup
Error:
./pear: line 91: exec: php: not found
[/quote]
Line 91 is:
PHP:
exec $PHP -C -q $INCARG -d output_buffering=1 -d variables_order=EGPCS \
-d open_basedir="" -d safe_mode=0 -d register_argc_argv="On" \
-d auto_prepend_file="" -d auto_append_file="" \
$INCDIR/pearmage.php -c $PEAR_INI "$@"
Maybe I need to recompile PHP with
--enable-cli
?Or how else can I tell PEAR where PHP is and vice versa? I know I can add include paths to PHP.ini or compile with the paths but where is PEAR? Can I hardcode the PHP path in that PHP code?
Last edited by a moderator: