Take the 2-minute tour ×
Server Fault is a question and answer site for 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

migration rejected from superuser.com Jan 13 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 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 at 18:10

1 Answer 1

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

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