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.

500 error, other errors on one domain

Discussion in 'General Discussion' started by Blind Can See, Sep 8, 2006.

  1. Cpanel is a pain in the ass, seriously.

    After the mod security bug, now this. One client's info was deleted from httpd.conf (seen this happen due to rebuildhttpdconf script)

    I re-added the info manualy, the virtual hosts by using the list found in /var/cpanel/users/username

    Now all his sites show 500 error (phpsuexec enabled, but other php sites working fine)

    Not sure the cause..


    I ran
    root@server [/home/client/public_html]# chown client:client *

    I temporarily disabled his htaccess as well, still 500

    Domain logs show me nothing to help

    I grepped the domain.com from apache error logs, nothing.

    I ran updateuserdomains, rebuildhttpconf, rebuildnamedconf, restarted cpanel, named, httpd, same problem.

    Anyone? :)
     
    #1 Blind Can See, Sep 8, 2006
    Last edited by a moderator: Sep 8, 2006
  2. I corrected the 500 on the main domain, however all the addon/subdomains show the main site.

    Example virtualhost of sub-domain/addondomain

    Code:
    <VirtualHost xxx.xxx.xxx.xxx>
    <IfModule mod_php4.c>
    php_admin_value open_basedir "/home/mainusername/:/usr/lib/php:/usr/local/lib/php:/tmp"
    </IfModule>
    <IfModule mod_php5.c>
    php_admin_value open_basedir "/home/mainusername/:/usr/lib/php:/usr/local/lib/php:/tmp"
    </IfModule>
    User mainusername
    Group mainusername
    <IfModule mod_userdir.c>
    UserDir disabled
    UserDir enabled mainusername
    </IfModule>
    BytesLog domlogs/add-on-domain.com-bytes_log
       ServerName add-on-domain.com
       UseCanonicalName  off
       ServerAdmin email@email.com
       CustomLog /usr/local/apache/domlogs/add-on-domain.com combined
       Options -ExecCGI -Includes
       ScriptAlias /cgi-bin/ /home/mainusername/public_html/addonuser/cgi-bin/
       DocumentRoot /home/mainusername/public_html/addonuser
       User mainusername
       Group mainusername
       ServerAlias www.add-on-domain.com
       <IfModule mod_userdir.c>
          Userdir disabled
          Userdir enabled mainusername
       </IfModule>
       <IfModule mod_php4.c>
          php_admin_value open_basedir "/home/mainusername:/usr/lib/php:/usr/local/lib/php:/tmp"
       </IfModule>
       <IfModule mod_php5.c>
          php_admin_value open_basedir "/home/mainusername:/usr/lib/php:/usr/local/lib/php:/tmp"
       </IfModule>
       BytesLog /usr/local/apache/domlogs/add-on-domain.com-bytes_log
    </VirtualHost>
    I corrected the document root and scriptalias, same problem
     
    #2 Blind Can See, Sep 8, 2006
    Last edited by a moderator: Sep 8, 2006
  3. hmm...still cannot figure this out...anyone have any tips?

    I'm lost on this, virtual hosts look completely normal to me
     
  4. blenard

    blenard Active Member

    Joined:
    Feb 19, 2004
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    did you do a chmod 755 public_html ?
     
  5. ended up being missing namvirtualhost in httpd.conf :)

    Thanks
     
Loading...

Share This Page