Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-23-2008, 07:22 AM   #1
LQ Newbie
Registered: Jul 2007
Location: Mumbai,India
Distribution: Debian Squeeze, Fedora 10, Kubuntu 8.10
Posts: 5

Rep: Reputation: 0
Using php6 as cgi binary

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.
#./configure --prefix=/usr/local/php6 --with-config-file-path=/usr/local/php6/lib --enable-ftp --with-mysql=/usr/local/mysql/ --program-suffix=6
#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] client denied by server configuration: /usr/local/apache2/cgi-sys/php6

Thanks in advance.

Meghanand N. Acharekar


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl programs downloading as binary via cgi/apache? jon_k Linux - Software 1 02-22-2007 05:28 AM
Do I need binary 1 and binary 2 dvd iso for base install? salah-ad-din Debian 5 08-15-2006 04:43 PM
CGI to work out side of cgi-bin? crashedspine Linux - Newbie 13 09-02-2004 08:49 PM rverlander LQ Suggestions & Feedback 1 06-07-2002 07:35 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:35 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration