View previous topic :: View next topic |
Author |
Message |
kenboyles72 -
Joined: 08 Nov 2007 Posts: 21
|
Posted: Sat Dec 01, 2007 6:46 pm Post subject: Having problems with php on linux |
|
|
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 |
|
|
aprelium-beta -
Joined: 24 Jun 2004 Posts: 383
|
Posted: Sun Dec 02, 2007 11:01 pm Post subject: Re: Having problems with php on linux |
|
|
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 |
|
|
kenboyles72 -
Joined: 08 Nov 2007 Posts: 21
|
Posted: Mon Dec 03, 2007 6:38 am Post subject: |
|
|
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 |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Mon Dec 03, 2007 10:32 am Post subject: |
|
|
Yes! In fact it is supposed to be "php-cgi", since PHP5. |
|
Back to top |
|
|
kenboyles72 -
Joined: 08 Nov 2007 Posts: 21
|
Posted: Tue Dec 04, 2007 12:06 am Post subject: |
|
|
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 |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Tue Dec 04, 2007 1:23 am Post subject: |
|
|
Your Welcome! ;-) |
|
Back to top |
|
|
aprelium-beta -
Joined: 24 Jun 2004 Posts: 383
|
Posted: Tue Dec 04, 2007 5:53 pm Post subject: |
|
|
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 |
|
|
|