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.

Changed Php limit and now all sites on VPS give 500 error

Discussion in 'General Discussion' started by Clemy, Mar 23, 2012.

  1. Clemy

    Clemy Member

    Joined:
    Mar 23, 2012
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Good Day all,

    I am a complete noob at the VPS game..

    I need help, basically i upped the php memory_limit to 128m from 64m

    and even since then all sites give 500 internal server error..

    I have no clue about the ssh and how to go about creating the user name and password for it. ( i have tried)

    Is there another way i can get the error logs, as all posts are saying you have to check that logs..

    Help needed urgently.. hosting wants to charge me, and i thought i will turn to the cpanel minded people first, as i am learning it as well...

    Thanx in advance
     
  2. NixTree

    NixTree Well-Known Member

    Joined:
    Aug 19, 2010
    Messages:
    386
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Gods Own Country
    cPanel Access Level:
    Root Administrator
    Hello,

    1. Login to your server as root

    2. run the command "tail -f /usr/local/apache/logs/error_log" . This command will let you to monitor the error log. Run "tail -f /usr/local/apache/logs/error_log | grep <your cpanel username>" if you see flood in error log.

    3. Now load the domain, which is showing 500 error in your browser.

    4. Check back the shell, where you run the command in step 2. You can see the error message displayed there.

    5 Press ctrl + c to escape from log monitoring.

    6. Do the necessary to correct the error showing in the error log!

    Thank you,
    Nibin.
     
  3. Clemy

    Clemy Member

    Joined:
    Mar 23, 2012
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thank you so much for the reply...

    How do i run a command .. i am a total noob :(
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    You'd need to run the command in root SSH using a client such as putty (if on Windows) or terminal (if on Mac OS X). If you aren't certain how to use root SSH to log into the machine, you would need to get ahold of your hosting provider for assistance on how to get the login details (they are typically the same as the root user login for WHM).
     
  5. Clemy

    Clemy Member

    Joined:
    Mar 23, 2012
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thanks just had a look at the link.. and i think this is beyond my mental capacity.. :confused:

    I wanted to learn.. but will have to wait.. seems i will have to pay someone to do this :(
     
  6. Clemy

    Clemy Member

    Joined:
    Mar 23, 2012
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi all figured out how to work putty,

    this is the error codes i get
     
  7. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Do you have extra lines at the end of /home/newzeala/public_html/index.php page? You could end up with that error message if you have blank lines after the closing tag.

    Next, is the file properly owned with the correct permissions? If you are using suPHP, the file cannot have higher than 644 file permissions and should be owned by newzeala:newzeala user.
     
  8. Clemy

    Clemy Member

    Joined:
    Mar 23, 2012
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi I have checked the index.php file for any blank lines and none are there after the closing tag.

    how do i check the file permissions and ownership via ssh?

    Thank you so much for your help
     
  9. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    In SSH, you'd simply list the file to see the ownership and file permissions:

    Code:
    ls -lah /pathtofile
    Please replace pathtofile with the path to the file.
     
  10. Clemy

    Clemy Member

    Joined:
    Mar 23, 2012
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi Tristan

    i get this code when inserting the above
    Code:
    /bin/ls: -: No such file or directory
    /bin/ls: lah: No such file or directory
    
     
  11. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Please post the exact command you ran
     
  12. Clemy

    Clemy Member

    Joined:
    Mar 23, 2012
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Ok when i ran
    Code:
    ls -lah /home/australi/public_html/index.php
    i got
    and now a new error
     
  13. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    The permissions appear fine for the file. What are the file permissions and ownership of the .htaccess file?

    Code:
    ls -lah /home/australi/public_html/.htaccess
     
Loading...

Share This Page