1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

500 Internal Server Error help!

Discussion in 'BlackHat Lounge' started by dcuthbert, Nov 2, 2011.

  1. dcuthbert

    dcuthbert Regular Member

    Joined:
    Jun 15, 2011
    Messages:
    411
    Likes Received:
    249
    Hey,

    I've mentioned in a couple of threads that I'm a bit of a newbie when it comes to servers. Well, I'm stuck again, I hope someone can help.

    I've just bought a few new domains, and also a couple of existing websites, and I'm trying to set them up on my VPS. My VPS is running WHM/cPanel, and I've created a new account for each site. All domains are in my Godaddy account.

    I already have a couple of sites set up on the server, and they work great, no problem at all. As far as I can see, I've set these up exactly the same way, but for some reason I get the following error on all of the new sites. All of the old sites still work fine.

    "Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, webmaster@domain.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    More information about this error may be available in the server error log.
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."


    Now, I've googled this, and the first thing to check appears to be the .htaccess file, which I've checked, and in all but one of the sites there is no .htaccess file. In the one which has one, I've tried renaming it to something different to effectively delete it, but no luck.


    Another suggestion was to make sure the file permissions are set to 644, which they are.



    I'm now at a loss as to what else to try, are there any server experts out there who can help?


    The domain nameservers were changed to that of my server about 24 hours ago.
     
  2. zmoney

    zmoney Senior Member

    Joined:
    Apr 19, 2011
    Messages:
    814
    Likes Received:
    250
    Make sure file permissions are at 755 I think for a php script.

    Oh, nm, after re-reading, your having this happen without any php scripts at all, right? I've bought domains before and had to wait 72 hours for them to "propogate".
     
    • Thanks Thanks x 1
    Last edited: Nov 2, 2011
  3. dcuthbert

    dcuthbert Regular Member

    Joined:
    Jun 15, 2011
    Messages:
    411
    Likes Received:
    249
    for two of the sites, I've uploaded the Wordpress files to /home/sitename/public_html

    EDIT: sorry, I meant public_html

    should all php files be set to 755?
     
    Last edited: Nov 2, 2011
  4. extremephp

    extremephp BANNED BANNED

    Joined:
    Oct 19, 2010
    Messages:
    1,293
    Likes Received:
    1,272
    Can you just see what error log tells you? It would tell your something more than 500 Internal server error that we see on front end.

    Cpanel > Error Logs.
     
    • Thanks Thanks x 1
  5. extremephp

    extremephp BANNED BANNED

    Joined:
    Oct 19, 2010
    Messages:
    1,293
    Likes Received:
    1,272
    No, those php files should remain in their default chmod, and doesnt need to be an executable at all. (755)
     
    • Thanks Thanks x 1
  6. zmoney

    zmoney Senior Member

    Joined:
    Apr 19, 2011
    Messages:
    814
    Likes Received:
    250
    Not sure about home/sitename ... but mine are in public_html which is chmod 750 But the actual wordpress files are all diff chmods, which yours prob are set correctly, i'd assume.
     
    • Thanks Thanks x 1
  7. dcuthbert

    dcuthbert Regular Member

    Joined:
    Jun 15, 2011
    Messages:
    411
    Likes Received:
    249
    the error log shows:
    SoftException in Application.cpp:357: UID of script "/home/[userid]/public_html/index.php" is smaller than min_uid

    Looking at the permissions, the group and owner fields are both set to 'root[0]' for all files. I've just tried changing a couple of files to the userid rather than root, and they now work, so I suspect if I change them all, that will sort the problem.

    However, if anyone can tell me why the server would suddenly start defaulting to 'root' for owner and group, when it didn't before, I'd appreciate the help :eek: