php Files Not Running On My Server

ahowo

Registered
Dec 18, 2009
1
0
51
Hello.

Guys i am getting error please check this link

hindisongs365.com permission is 655

in this site a simple index.php file is uploaded nothing else , Please Help me what is the problem if any body know about the problem please tell me ..

Thanks

i am waiting
 
Last edited by a moderator:

Luke Carrier

Active Member
May 27, 2009
29
0
51
Does this issue affect all of your PHP files? If you're being prompted to download them, SSH into your server (username 'root', the password being whatever password you use to login to WHM with) and run /scripts/easyapache. This script will rebuild your Apache unstall along with any modules you select (PHP is one of them). When prompted, select PHP 5 from the list, then 5.2.12.

If you need any further help with this, I'd be happy to help.

Edit: sorry, missed the link. Are you using SuPHP? Do you even own the server/VPS? If you do, try to CHMOD the file permissions so they are 755. I think the issue is SuPHP refusing to parse the files because they are not executable, though it all depends on the configuration.
 
Last edited:

Spiral

BANNED
Jun 24, 2005
2,018
8
193
Edit: sorry, missed the link. Are you using SuPHP? Do you even own the server/VPS? If you do, try to CHMOD the file permissions so they are 755. I think the issue is SuPHP refusing to parse the files because they are not executable, though it all depends on the configuration.
That is incorrect --- you are confusing phpSuExec with SuPHP ....

Under SuPHP, there is no EXECUTE bit **UNLESS** the script is being
running as a shell script program directly under SSH or CRONTAB.

The correct permissions for most PHP scripts under SuPHP is 600 ...

Some people go a bit more relaxed out of laziness mainly using 644 ...

For extremely tight security, you could go as tight as 400 as long as
you don't need to write to the script file from any program ...

FOR NON SCRIPT FILES (images, etc): Set these files to 644 ...

Now regarding the user's site (hindisongs365.com), what I am seeing at that URL is an Error 500 condition which is most likely going to be caused by one or more of the following:

Your PHP scripts are incorrectly set to permission 666 or 777

Your folders or higher level folders are incorrectly 666 or 777

You have a .htaccess file with "php_flag" or "php_value" commands

You are using a "AddType" command in .htaccess to extend PHP to non-PHP file types

Your script files are not OWNED by your own login name.

If any of the above is true then you will see the "500 Internal Server Error" page that you are seeing on your site right now!