Recompiling PHP

#1
I have LSWS 4.0.12 installed with PHP 5.2.5. I need to add mysqli support, but LSWS admin only gives me the option of compiling 5.2.8 and higher, and the "Use configuration from previous build" button is not available. Is there a reason why I'm not able to recompile 5.2.5 via LSWS? If it's necessary to upgrade, I assume it will be safe to copy the current config from phpinfo (below)? But what about the default set of flags showing in LSWS compile page? Are certain ones (or all) required?

Code:
--prefix=/usr/local/lsws/lsphp5' '--with-litespeed' '--disable-pdo' '--enable-bcmath' '--enable-calendar' '--enable-discard-path' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-sockets' '--enable-zip' '--with-curl=/opt/curlssl/' '--with-freetype-dir=/usr' '--with-gd' '--with-jpeg-dir=/usr' '--with-libxml-dir=/opt/xml2/' '--with-mysql' '--with-png-dir=/usr' '--with-ttf' '--with-xpm-dir=/usr/X11R6' '--with-zlib' '--with-zlib-dir=/usr' '--without-pdo-sqlite'
Thanks for any help. :confused:
 

webizen

Well-Known Member
#2
PHP5.2.5 is old (4 years old). Follow the procedures below to manually compile php of your choice in LSWS.

http://www.litespeedtech.com/support/wiki/doku.php?id=litespeed_wiki:php:lsapi
http://www.litespeedtech.com/support/wiki/doku.php?id=litespeed_wiki:php:lsapi:troubleshoot

Your current config does NOT have mysqli support (--with-mysqli).

The default options come with lsws should build mysqli extension (static).
--with-mysqli --with-zlib --with-gd --enable-shmop --enable-track-vars --enable-sockets --enable-sysvsem --enable-sysvshm --enable-magic-quotes --enable-mbstring --with-iconv
 
Top