You are Here: FAQ ->Scripting and Programming Languages->PHP->Article #5


WebHosting 5.0 This article is for 1&1 Linux WebHosting only.


Error 500 while executing PHP scripts.



The following may be the reasons:

Incorrect permissions: Make sure the script has execute permissions.
Owner: Read, Write, Execute
Group: -
Other: Read, Execute
(705)
You can set the permissions by making an FTP connection. Right click the file and
select Permissions. Here you can set the permissions.

OR

If you have SSH access, then follow FAQ: How to change the file permissions

Syntax Errors: Execute your script on command prompt to check for syntax
errors.

Make a connection to your webspace via ssh and execute the script with the command
myShell:~> php4 hello.php

Note: SSH access is not available in all packages.


Print Article
How useful was this article?
(From 5 = Very Useful to 1 = Not useful at all):
1 2 3 4 5