I am trying to use 2 version of php (php5 & php6) concurrently.
I have successfully installed php5 , installed it is as apache module, now I want to use php6 as cgi binary.I have followed following installation steps for php6.
Apache installation Path : /usr/local/apache2
PHP5 installation string is : ./configure --with-apxs2=/usr/local/apache/bin/apxs --enable-so --with-mysql=/usr/local/mysql --enable-ftp
#./configure --prefix=/usr/local/php6 --with-config-file-path=/usr/local/php6/lib --enable-ftp --with-mysql=/usr/local/mysql/ --program-suffix=6
#cp -rf /usr/local/php6/bin/php6 /usr/local/apache/cgi-sys/php6
#cp -rf php.ini-recommended /usr/local/php6/lib/php.ini
Added following two lines
ScriptAlias /cgi-sys/ /usr/local/apache2/cgi-sys/
Entries in php.conf
Action application/x-httpd-php6 "/cgi-sys/php6"
AddHandler application/x-httpd-php6 .php6
I checked the setup with php test script,
I found my php5 ( files with .php extension) are working fine.
But while testing php6 (test.php6) I got following message.
"You dont have permission to access /cgi-sys/php6/test.php6 on this server.
Log showns the following line.
[error] [client 127.0.0.1] client denied by server configuration: /usr/local/apache2/cgi-sys/php6
Thanks in advance.
Meghanand N. Acharekar