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.

SuExec problem

Discussion in 'General Discussion' started by Shane_from_UK, Sep 15, 2008.

  1. Shane_from_UK

    Shane_from_UK Active Member

    Joined:
    Sep 14, 2008
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    I have an installed the Magento and after the following command suddenly I am geting "500 Internal Error Server" error message.


    After contacting the Magento they suggest me to check if a server is SuExec or not? but as I am new in linux hosting can some one please suggest me the futher steps to check server is Suexec or not? if yes then how to disable it..

    Any help will be much appreciated :)
     
  2. plotter

    plotter Registered

    Joined:
    Sep 15, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
  3. dave9000

    dave9000 Well-Known Member

    Joined:
    Apr 7, 2003
    Messages:
    891
    Likes Received:
    1
    Trophy Points:
    16
    Location:
    arkansas
    cPanel Access Level:
    Root Administrator
    In ssh at the root prompt

    httpd -l

    See if mod_suexec.c is listed. If it is your server is using suexec.

    If you are running suexec this should fix your site. (Use at your own risk)

    find . -type d -exec chmod 755 {} \;
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You could also try running:

    /scripts/chownpublichtmls

    That will repair file ownership issues.
     
  5. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    Based on the error you're getting I'd say you almost certainly have suphp or similar.

    To repair the permission damage the find command did, from the same directory run:
    Code:
    chmod -R go-w .
    Note: this will destroy your server permissions if you run it from anywhere other than a home directory/public_html.

    By the way, that Magento find command is ridiculous as it opens permissions wide on the account - not a good idea; a common mistake made by developers.
     
  6. Shane_from_UK

    Shane_from_UK Active Member

    Joined:
    Sep 14, 2008
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Thanks

    Yes will run the following command


    But I think it will take effect server wide...Are you sure that it will not cause any problem to other users account hosted on same server?

    Waiting for your reply.....

    Thanks again chirpy and all other members who are helping me throughout this Thread :)
     
  7. eUK-Patrick

    eUK-Patrick Registered

    Joined:
    Sep 16, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    I will suggest you to go through the error logs on the server which appears after you access the page which is giving "500 Internal Error Server" message.

    [root@server ~]#tail -f /usr/local/apache/logs/error_log | grep yourdomain.com

    You can paste the error if you are unable to read it .
     
Loading...

Share This Page