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.

www.myiste.com/cpanel 500 error

Discussion in 'Bind / DNS / Nameserver Issues' started by Atomic Dog, May 1, 2011.

  1. Atomic Dog

    Atomic Dog Registered

    Joined:
    May 1, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hi everyone first time in here and a noob so please bare with me. Having a few issues setting up Whm/cpanel.

    First I went to setup my first account after the WHM setup. I can get to the main part of the website that is registered. www.mysite.com. However when I go to access www.mysite.com/cpanel I am receiving a 500 internal error.

    After some research. I keep coming accross the same answer look at the error logs. Uhm where do I find these?

    Any help with either one would be fantastic thanks!!!!
     
  2. Kristian0911

    Kristian0911 Member

    Joined:
    Jan 17, 2011
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    You will need to SSH to your server with root user and password. Check the error logs by executing the command as :

    Code:
    tail -f /usr/local/apache/logs/error_log
    You will be able to find the caused of the error messages you are getting while accessing Cpanel for the domain name.

    Thanks :)
     
  3. Atomic Dog

    Atomic Dog Registered

    Joined:
    May 1, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Thanks
    So this is what I get. Not sure what the permissions are supposed to be. Or if thats the problem. HELP!!!

    Not sure what to do next. Yes I'm also a linux noob.


    [Mon May 02 04:43:21 2011] [crit] [client 127.0.0.1] (13)Permission denied: /usr /local/apache/.htaccess pcfg_openfile: unable to check htaccess file, ensure is readable
     
  4. aapkapratik

    aapkapratik Member

    Joined:
    Oct 26, 2009
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    The error
    It is asking you to check the ownership of the file "/usr/local/apache/.htaccess"

    Try the following command to set correct permissions
    Now restart the httpd daemon

    If still the problem persists I'd like to request you try and access the cPanel from the WHM with root

    To do so please Login to WHM using the root password and then access Main >> Account Information >> List Accounts.

    Now click on the cPanel Icon adjacent to the name of the domain in question..

    If the cPanel works from here it will indaicate that there is problem of the URL and not the cPanel on the server..!
     
  5. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    /cpanel, /whm and /webmail are aliases that are served through Apache and call CGI scripts in /usr/local/cpanel/cgi-sys. Check the permissions of that directory, and the files in that directory. The directory listing should look like this:

    Code:
    # ls -alh /usr/local/cpanel/cgi-sys/
    total 12M
    drwxr-x--x  2 root wheel 4.0K Mar 21 22:19 ./
    drwx--x--x 43 root wheel 4.0K May  1 12:32 ../
    -rwxr-xr-x  1 root wheel   25 Mar 22  2006 addalink.cgi*
    -rwxr-xr-x  1 root wheel  19K Nov 11 23:49 cgiecho*
    -rwxr-xr-x  1 root wheel  19K Nov 11 23:49 cgiemail*
    -rwxr-xr-x  1 root wheel 170K Aug 26  2008 Count.cgi*
    -rwxr-xr-x  1 root wheel 1.1K Mar 22  2006 countedit.cgi*
    -rw-r--r--  1 root wheel 1.7K Mar 21 22:17 .cpanelsync
    -rw-r--r--  1 root wheel 2.8K Mar 21 22:17 .cpanelsync.md5s
    -rw-r--r--  1 root wheel  419 Mar 21 22:17 .cpanelsync.new
    -rwxr-xr-x  1 root wheel 1.2M Mar 21 22:17 defaultwebpage.cgi*
    -rwxr-xr-x  1 root wheel  26K Nov  8 22:39 domainredirect.cgi*
    -rwxr-xr-x  1 root wheel 191K Mar 21 22:17 entropybanner.cgi*
    -rwxr-xr-x  1 root wheel 3.1K Sep  7  2010 entropybanner.cgi-wrap*
    -rwxr-xr-x  1 root wheel 5.8K Dec 16  2009 entropysearch.cgi*
    -rwxr-xr-x  4 root wheel 1.1M Mar 21 22:17 formmail.cgi*
    -rwxr-xr-x  4 root wheel 1.1M Mar 21 22:17 FormMail.cgi*
    -rwxr-xr-x  1 root wheel 1.1M Mar 21 22:17 FormMail-clone.cgi*
    -rwxr-xr-x  4 root wheel 1.1M Mar 21 22:17 formmail.pl*
    -rwxr-xr-x  4 root wheel 1.1M Mar 21 22:17 FormMail.pl*
    -rwxr-xr-x  1 root wheel 261K Mar 21 22:17 guestbook.cgi*
    -rwxr-xr-x  1 root wheel 4.5K Nov  8 22:39 helpdesk.cgi*
    -rw-r--r--  1 root wheel    0 Dec 16  2009 index.html
    -rwxr-xr-x  1 root wheel 945K Mar 21 22:17 mchat.cgi*
    -rwxr-xr-x  1 root wheel 1.2M Mar 21 22:17 movingpage.cgi*
    -rwxr-xr-x  1 root wheel  29K Nov  8 22:40 randhtml.cgi*
    -rwxr-xr-x  1 root wheel 3.1K Sep  7  2010 randhtml.cgi-wrap*
    -rwxr-xr-x  1 root wheel   25 Mar 22  2006 realhelpdesk.cgi*
    -rwxr-xr-x  1 root wheel   16 Feb  6  2008 realsignup.cgi*
    -rwxr-xr-x  6 root wheel  302 Dec 16  2009 redirect.cgi*
    -rwxr-xr-x  1 root wheel  11K Nov  8 22:39 scgiwrap*
    -rwxr-xr-x  1 root wheel 4.6K Nov  8 22:39 signup.cgi*
    -rwxr-xr-x  6 root wheel  302 Dec 16  2009 sredirect.cgi*
    -rwxr-xr-x  1 root wheel 1.2M Mar 21 22:17 suspendedpage.cgi*
    -rwxr-xr-x  6 root wheel  302 Dec 16  2009 swhmredirect.cgi*
    -rwxr-xr-x  1 root wheel 1.6M Mar 21 22:17 templatepreview.cgi*
    -rwxr-xr-x  6 root wheel  302 Dec 16  2009 universal-redirect.cgi*
    -rwxr-xr-x  6 root wheel  302 Dec 16  2009 whmredirect.cgi*
    -rwxr-xr-x  6 root wheel  302 Dec 16  2009 wredirect.cgi*
    A 500 error indicates a problem caused by suexec. If you look at /usr/local/apache/logs/suexec_log, you will likely see the exact cause of the error, which is likely a permissions or ownerships issue.

    If checking and correcting permissions does not fix the problem, please submit a ticket so that we may log into your server directly and fix the problem for you. Please post the ticket number so that we may follow up on it for you.
     
  6. Atomic Dog

    Atomic Dog Registered

    Joined:
    May 1, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    This is what I get When I run that command.

    total 19M
    drwxr-x--x 2 root wheel 4.0K May 3 03:12 ./
    drwx--x--x 44 root wheel 4.0K May 3 00:51 ../
    -rwxr-xr-x 1 root wheel 25 Mar 23 2006 addalink.cgi*
    -rwxr-xr-x 1 root wheel 22K Nov 12 06:14 cgiecho*
    -rwxr-xr-x 1 root wheel 22K Nov 12 06:14 cgiemail*
    -rwxr-xr-x 1 root wheel 189K Feb 15 00:02 Count.cgi*
    -rwxr-xr-x 1 root wheel 1.1K Mar 23 2006 countedit.cgi*
    -rw------- 1 root wheel 1.7K May 2 00:49 .cpanelsync
    -rw------- 1 root wheel 2.0K May 2 00:49 .cpanelsync.md5s
    -rw------- 1 root wheel 0 May 2 00:49 .cpanelsync.new
    -rwxr-xr-x 1 root wheel 1.8M Mar 22 00:01 defaultwebpage.cgi*
    -rwxr-xr-x 1 root wheel 38K Feb 15 00:02 domainredirect.cgi*
    -rwxr-xr-x 1 root wheel 318K Mar 22 00:01 entropybanner.cgi*
    -rwxr-xr-x 1 root wheel 4.4K Sep 8 2010 entropybanner.cgi-wrap*
    -rwxr-xr-x 1 root wheel 5.8K Dec 17 2009 entropysearch.cgi*
    -rwxr-xr-x 4 root wheel 1.7M Mar 22 00:01 formmail.cgi*
    -rwxr-xr-x 4 root wheel 1.7M Mar 22 00:01 FormMail.cgi*
    -rwxr-xr-x 1 root wheel 1.7M Mar 22 00:01 FormMail-clone.cgi*
    -rwxr-xr-x 4 root wheel 1.7M Mar 22 00:01 formmail.pl*
    -rwxr-xr-x 4 root wheel 1.7M Mar 22 00:01 FormMail.pl*
    -rwxr-xr-x 1 root wheel 424K Mar 22 00:01 guestbook.cgi*
    -rwxr-xr-x 1 root wheel 6.8K Nov 9 04:51 helpdesk.cgi*
    -rw-r--r-- 1 root wheel 0 Dec 17 2009 index.html
    -rwxr-xr-x 1 root wheel 1.5M Mar 22 00:01 mchat.cgi*
    -rwxr-xr-x 1 root wheel 1.8M Mar 22 00:01 movingpage.cgi*
    -rwxr-xr-x 1 root wheel 244 May 3 03:12 php5*
    -rwxr-xr-x 1 root wheel 44K Feb 15 00:02 randhtml.cgi*
    -rwxr-xr-x 1 root wheel 4.4K Sep 8 2010 randhtml.cgi-wrap*
    -rwxr-xr-x 1 root wheel 25 Mar 23 2006 realhelpdesk.cgi*
    -rwxr-xr-x 1 root wheel 16 Feb 7 2008 realsignup.cgi*
    -rwxr-xr-x 6 root wheel 302 Dec 17 2009 redirect.cgi*
    -rwsr-xr-x 1 root wheel 14K Nov 9 04:51 scgiwrap*
    -rwxr-xr-x 1 root wheel 6.8K Nov 9 04:51 signup.cgi*
    -rwxr-xr-x 6 root wheel 302 Dec 17 2009 sredirect.cgi*
    -rwxr-xr-x 1 root wheel 1.8M Mar 22 00:01 suspendedpage.cgi*
    -rwxr-xr-x 6 root wheel 302 Dec 17 2009 swhmredirect.cgi*
    -rwxr-xr-x 1 root wheel 2.4M Mar 22 00:01 templatepreview.cgi*
    -rwxr-xr-x 6 root wheel 302 Dec 17 2009 universal-redirect.cgi*
    -rwxr-xr-x 6 root wheel 302 Dec 17 2009 whmredirect.cgi*
    -rwxr-xr-x 6 root wheel 302 Dec 17 2009 wredirect.cgi*

    When I run the /usr/local/apache/logs/suexec_log. I recieve this "e/logs/suexec_log: No such file or directory"

    When I run This tail -f /usr/local/apache/logs/error_log I get this "
    [Tue May 03 04:05:03 2011] [crit] [client 127.0.0.1] (13)Permission denied: /usr/local/apache/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable"

    I am opening a ticket as we speak just wanted to see if I could get an answer her
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Generally speaking, the above error message is often linked to insufficient permissions on the following directory:

    Code:
    /usr/local/apache
    You can check the permissions on the above directory via a command such as:

    Code:
    stat /usr/local/apache
    If the permissions are not set to 0755, you can adjust the permissions to that value via:

    Code:
    chmod 0755 /usr/local/apache
    Thank you.
     
Loading...

Share This Page