The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

php Files Not Running On My Server

Discussion in 'General Discussion' started by ahowo, Dec 20, 2009.

  1. ahowo

    ahowo Registered

    Joined:
    Dec 18, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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
     
    #1 ahowo, Dec 20, 2009
    Last edited by a moderator: Dec 20, 2009
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,449
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Your index.php should not be 655 it should be 644. Not sure this is going to help you out here though, but give it a go.
     
  3. Luke Carrier

    Luke Carrier Active Member

    Joined:
    May 27, 2009
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
    #3 Luke Carrier, Dec 20, 2009
    Last edited: Dec 20, 2009
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,449
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You do not want any file permissions set to 755.
     
  5. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    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!
     
Loading...

Share This Page