LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 05-23-2008, 07:22 AM   #1
vasco.debian
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


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
 
  


Reply


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
http://www.burstnet.com/cgi-bin/ads/ad7954a.cgi/3980/RETURN-CODE rverlander LQ Suggestions & Feedback 1 06-07-2002 07:35 AM


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

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