I have fedora 7 with apache 2 and php 5 preconfgured !!
php5 is installed as apache module !!
So i decided to install php4 as cgi handler !!
I installed php 4.4.7 with the following set of commands !!
Code: Select all
./configure --prefix=/opt/php4 --enable-discard-path --enable-fastcgi --with-layout=GNU --with-openssl --with-kerberos --with-zlib --enable-bcmath --with-bz2 --enable-calendar --with-curl --with-dom --enable-filepro --enable-ftp --with-gd --with-gettext --enable-mbstring --with-mime-magic --with-mysql --enable-memory-limit --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-shmop --enable-sockets
make
make install
cp php.ini-dist /opt/php4/etc/php.iniCode: Select all
LoadModule php5_module modules/libphp5.so
ScriptAlias /php4/ "/opt/php4/bin/"
Action php4-script /php4/php
AddHandler php5-script .php .php5
AddHandler php4-script .php4
AddType text/html .php .php4 .php5Code: Select all
<?php phpinfo(); ?>Code: Select all
Parse error: syntax error, unexpected '[' in /opt/php4/bin/php on line 1005