error 500

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


Joined: 13 Jul 2004
Posts: 2

PostPosted: Tue Jul 13, 2004 2:56 am    Post subject: error 500 Reply with quote

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 View user's profile Send private message
00squeaky
-


Joined: 11 May 2004
Posts: 60

PostPosted: Tue Jul 13, 2004 3:15 am    Post subject: Reply with quote

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 View user's profile Send private message
lsoer
-


Joined: 13 Jul 2004
Posts: 2

PostPosted: Tue Jul 13, 2004 3:37 am    Post subject: Reply with quote

I tried PHP 4.3.4, that won't work either...
Back to top View user's profile Send private message
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Tue Jul 13, 2004 7:31 am    Post subject: Reply with quote

Code:
<?php
echo "Bienvenidos!";
?>
Doesn't work?

Can you please paste us your current CGI configuration?
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
olly86
-


Joined: 25 Apr 2003
Posts: 993
Location: Wiltshire, UK

PostPosted: Tue Jul 13, 2004 8:08 am    Post subject: Reply with quote

error 500 usually means an internal configuration prevented your script from running correctly.

eg:
_________________
Olly
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu Jul 15, 2004 1:41 am    Post subject: Re: error 500 Reply with quote

lsoer,

Do you have a php-cgi executable in your system? Execute the following command to have the answer:
Code:
which php-cgi

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 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