Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

So my boss as allways was messing with cpanel on our production server (we only have production servers, which is bad enough)... so now all of the accounts is pointing to the default apache page in /usr/local/apache/htdocs instead of /home/useracc/public_html.

Is there a way how to tell cpanel/WHM to recreate the vhost configuration of the account from scratch?

the account has a database and emails associated with them so before i do anything i don't want to mess anything up with cpanel.

share|improve this question

migrated from superuser.com Jul 8 '12 at 4:17

This question came from our site for computer enthusiasts and power users.

add comment

1 Answer

Yes, you can use /scripts/rebuildhttpdconf.

If it still comes back broken after that, try moving the old one out of the way.

mv /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.gabriel

then run /scripts/rebuildhttpdconf again.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.