Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.


migration rejected from Jan 13 '15 at 18:10

This question came from our site for computer enthusiasts and power users. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as off-topic by HopelessN00b Jan 13 '15 at 18:10

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

This question appears to be off-topic because it is about working with a service provider's management interface, such as cPanel. – HopelessN00b Jan 13 '15 at 18:10

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.


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