View previous topic :: View next topic |
Author |
Message |
lsoer -
Joined: 13 Jul 2004 Posts: 2
|
Posted: Tue Jul 13, 2004 2:56 am Post subject: error 500 |
|
|
I've searched the forums, but so far I haven't found an answer that will fix my problem.
First some basic info:
OS: Gentoo Linux (2.4.25 kernel)
PHP version: 4.3.7
Abyss version: 1.2.2.2
I followed the Abyss PHP instructions to the letter, and double-checked them.
I made a test file (test.php) and it contains this:
Code: | <html>
<?php echo '<p>TestTestTest</p>'; ?>
</html> |
Trying http://127.0.0.1/test.php results in a 500. Any .php file, no matter what the content, results in a 500. All other filetypes work correctly.
Running
Code: |
php -f ~/abyssws/htdocs/tst.php |
Results in
Code: |
<html>
<p>TestTestTest</p></html> |
which is correct.
There's nothing in cgi.log
I've tried chmod -x test.php, test.php is not set to executable.
Is there a known issue with this version of PHP, or is this something else? |
|
Back to top |
|
 |
00squeaky -
Joined: 11 May 2004 Posts: 60
|
Posted: Tue Jul 13, 2004 3:15 am Post subject: |
|
|
this is a problem i do not see every day.
the problem might be that PHP does not run correctly on your OS. just by Windows XP or something.
also, the echo statement should have " " in it's string, not ' '.
but our OS is most likely the problem. _________________ Languages mastered:
HTML,GML,C,PHP,MYSQL (not really a language, but wtf) |
|
Back to top |
|
 |
lsoer -
Joined: 13 Jul 2004 Posts: 2
|
Posted: Tue Jul 13, 2004 3:37 am Post subject: |
|
|
I tried PHP 4.3.4, that won't work either... |
|
Back to top |
|
 |
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Tue Jul 13, 2004 7:31 am Post subject: |
|
|
Code: | <?php
echo "Bienvenidos!";
?> | Doesn't work?
Can you please paste us your current CGI configuration? _________________ Bienvenidos! |
|
Back to top |
 |
 |
olly86 -
Joined: 25 Apr 2003 Posts: 993 Location: Wiltshire, UK
|
Posted: Tue Jul 13, 2004 8:08 am Post subject: |
|
|
error 500 usually means an internal configuration prevented your script from running correctly.
eg: _________________ Olly |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Thu Jul 15, 2004 1:41 am Post subject: Re: error 500 |
|
|
lsoer,
Do you have a php-cgi executable in your system? Execute the following command to have the answer:
If this is the case, use php-cgi as the interpreter instead of php. Have also a look on the updated "adding PHP support" instructions (just updated today.)
If the problem persists, please contact support@aprelium.com . _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
|