Having problems with php on linux

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
kenboyles72
-


Joined: 08 Nov 2007
Posts: 21

PostPosted: Sat Dec 01, 2007 6:46 pm    Post subject: Having problems with php on linux Reply with quote

I config'd abyss to use php, but keep getting 500 errors. the error log says:

Could not open input file:
CGI: [/usr/bin/php ] URI: /test.php Broken pipe

when it type "which php" in console, i get "/usr/bin/php" which is the path to php.


Last edited by kenboyles72 on Mon Dec 03, 2007 6:28 am; edited 1 time in total
Back to top View user's profile Send private message
aprelium-beta
-


Joined: 24 Jun 2004
Posts: 383

PostPosted: Sun Dec 02, 2007 11:01 pm    Post subject: Re: Having problems with php on linux Reply with quote

kenboyles72 wrote:
I congig'd abyss to use php, but keep getting 500 errors. the error log says:

Could not open input file:
CGI: [/usr/bin/php ] URI: /test.php Broken pipe

when it type "which php" in console, i get "/usr/bin/php" which is the path to php.


Run the following command:

Code:
/usr/bin/php -i > x.html


Now open the generated x.html file and check the value of the line "Server API". What is its contents? CGI/FastCGI? If not, the PHP executable you have may is a version that does not support CGI/FastGCI. In such a case try installing or looking for the php-cgi executable (package).
_________________
Beta Testing Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
kenboyles72
-


Joined: 08 Nov 2007
Posts: 21

PostPosted: Mon Dec 03, 2007 6:38 am    Post subject: Reply with quote

the php-cgi package was installed, so do I need to set the path to the interpreter to - "/usr/bin/php-cgi" ?
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Mon Dec 03, 2007 10:32 am    Post subject: Reply with quote

Yes! In fact it is supposed to be "php-cgi", since PHP5.
Back to top View user's profile Send private message Visit poster's website
kenboyles72
-


Joined: 08 Nov 2007
Posts: 21

PostPosted: Tue Dec 04, 2007 12:06 am    Post subject: Reply with quote

ahh, I see. I should have known, since the windows setup had to point to the php-cgi exe also. Thanks for the info.
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Tue Dec 04, 2007 1:23 am    Post subject: Reply with quote

Your Welcome! ;-)
Back to top View user's profile Send private message Visit poster's website
aprelium-beta
-


Joined: 24 Jun 2004
Posts: 383

PostPosted: Tue Dec 04, 2007 5:53 pm    Post subject: Reply with quote

kenboyles72 wrote:
ahh, I see. I should have known, since the windows setup had to point to the php-cgi exe also. Thanks for the info.


The instructions in http://www.aprelium.com/abyssws/php.html#linux suggest that you should start with which php-cgi. ;-)
_________________
Beta Testing Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group