500 error, other errors on one domain

B

Blind Can See

Guest
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
[email protected] [/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? :)
 
Last edited by a moderator:
B

Blind Can See

Guest
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 protected]
   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
 
Last edited by a moderator:
B

Blind Can See

Guest
hmm...still cannot figure this out...anyone have any tips?

I'm lost on this, virtual hosts look completely normal to me
 
B

Blind Can See

Guest
ended up being missing namvirtualhost in httpd.conf :)

Thanks