PDA

View Full Version : Cant recompile PHP


fastproxy
07-26-2008, 05:15 PM
Hi,

I tried the compile php function in admin panel, configuration and compilation went fine but after restart. The PHP version and config is still the same as default although i added many options to configuration.

Here is options that i compiled with PHP
'--with-mysql' '--with-gd' '--enable-shmop' '--enable-track-vars' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-magic-quotes' '--enable-mbstring' '--without-pear' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib'

But PHP does not show what i compiled with.


One thing i noticed though, one my other server. After the configuration my other server show litespeed use different php config path: /opt/lsws/lsphp4/lib/php.ini

While one this server, PHP config still show default path: /opt/lsws/php/php.ini


So what do i need to do?

mistwang
07-27-2008, 11:46 AM
You need to change the configuration of lsphp4 or lsapiPHP external app to use $SERVER_ROOT/fcgi-bin/lsphp4

fastproxy
07-29-2008, 02:33 PM
Thanks,

It works now. But i wonder why now i have to do it manually? Because before i installed LSWS many time on the same server and i did not have to change the PHP.ini path.