LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Using php6 as cgi binary (https://www.linuxquestions.org/questions/linux-software-2/using-php6-as-cgi-binary-644273/)

vasco.debian 05-23-2008 07:22 AM

Using php6 as cgi binary
 
Hi,
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

php6 installation.
Quote:

#./configure --prefix=/usr/local/php6 --with-config-file-path=/usr/local/php6/lib --enable-ftp --with-mysql=/usr/local/mysql/ --program-suffix=6
#make
#make install
#mkdir /usr/local/apache2/cgi-sys
#cp -rf /usr/local/php6/bin/php6 /usr/local/apache/cgi-sys/php6
#cp -rf php.ini-recommended /usr/local/php6/lib/php.ini

Edited http.conf
Added following two lines
Include /usr/local/apache2/conf/php.conf
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.

Regards,
Meghanand N. Acharekar


All times are GMT -5. The time now is 07:50 PM.