PDA

View Full Version : arghhhh... a 500 error nightmare


Fabian
11-13-01, 05:44 AM
ok, I checked php, because I couldn't install a forum..

this is what I did:
1) created a file called phptest.php with the following code:
----------------------------------------------------------

#!/usr/local/bin/php
<?php

echo "hi, how are you" ;

?>

----------------------------------------------------------

2) uploaded it to my /htdocs directory in ASCII format

3) gave it a CHMOD755

4) started the browser and explored my php file :
500 Internal Server Error

Now where did I go wrong? :(

tnx in advance

Starr
11-13-01, 05:48 AM
Whats your domain name? I can have someone take a look at it.

Fabian
11-13-01, 05:49 AM
www.vegafaqts.org


by the way, this is the error I get in my logs:

[Tue Nov 13 02:37:11 2001] [error] [client ..my IP adres] Premature end of script headers: /www/v/vegafaqts/htdocs/phptest.php


thanks a lot!

Starr
11-13-01, 07:37 PM
FYI, 99% of all "premature end of script header" errors are due to an improper permission set. Yours should be CHMOD 755, and not CHMOD 777.

-rwxrwxrwx 1 vegafaqts customer 58 Nov 13 03:05 phptest.php

Once you correct this, your test script should work.

Fabian
11-13-01, 10:05 PM
it works! I thought I tried bot CHMOD's but I tried so much (at around 4.00 a.m. my time) that I might have been bungling..

sorry for that :-) and tnx again

now let's see if I can get the board to work :cool:

tcjay
11-25-01, 07:44 PM
I am receiving the same 500 error message during the install process.

The message from the log is:


[Sun Nov 25 08:25:32 2001] [error] [client 216.41.49.69] Premature end of script headers: /www/e/epilepsybra2/htdocs/forum/admin/index.php

I have tried the chmod of 755 and 777 on the .......admin/index.php file and the installs generates the 500 error message no matter what.

Any suggestions

:confused:

silvermedia
11-26-01, 10:11 PM
I believe you need to set the permissions on the folders containing the file(s) to 755 as well.

tcjay
11-26-01, 11:17 PM
#!/usr/local/bin/php #!/usr/local/bin/php #!/usr/local/bin/php
Warning: Failed opening 'fix.php' for inclusion (include_path='') in /www/e/epilepsybra2/htdocs/forum/auth.php on line 31


It worked :) but behold......................... another error message. It is like pulling teeth :) but thtere is that post at the end of the rainbow. Let's see if I can find line 31. :)

Bud
11-27-01, 04:43 AM
It looks like maybe the include is failing due to a bad path.

Is fix.php in the same directory as auth.php?

If not, you may need to reset the path for the include file (fix.php) to the proper directory. :)

~bud