install PHP 5.3.2 normally using ports and get PHP 5.2.x fron php.net and configure it like so with CGI(for lighty):
./configure --enable-fastcgi --with-zlib --with-layout=GNU --with-config-file-path=/usr/local/bin/php5.2/etc/addini --with-config-file-scan-dir=/usr/local/bin/php5.2/etc --build=amd64-portbld-freebsd7.2 --with-mysql=/usr/local/bin/mysql --with-mysqli=/usr/local/bin/mysql_config --with-curl=/usr/local/include --prefix=/usr/local/bin/php5.2
so from this php will get it's php.ini config file from /usr/local/bin/php5.2/etc (/usr/local/bin/php5.2/etc/php.ini) and the additional ini will be phrased from /usr/local/bin/php5.2/etc/addini (so an extensions.ini: /usr/local/bin/php5.2/etc/addini/extensions.ini)
edit Lighttpd config file and change the php binary path as:
"bin-path" => "/usr/local/bin/php5.2/bin/php-cgi",
this post will be edites as i go along
0 comentarii:
Trimiteți un comentariu