When you restart apache on a cPanel server you may get Virtualhost errors, yet it still appears to work? Heres an easy method which may fix it.
First backup your current httpd configuration:
cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.backup
Now run /scripts/rebuildhttpdconf
Should be fixed, if not, you can restore the backup you made.