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.

Recently I found there is lots of warnings in my VPS's httpd.conf

There is a solution in this forum about rebuilding httpd.conf:

# cd /usr/local/apache/conf
# cp -p httpd.conf httpd.conf.old-bak
# /scripts/rebuildhttpdconf
# /scripts/restartsrv_httpd
# /usr/local/apache/bin/apachectl status

but I fear it delete current domains configurations. what exactly this script do with my server?

share|improve this question

closed as off-topic by masegaloeh, Hyppy, mdpc, Jenny D, HBruijn May 3 at 9:29

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

    
If you post the contents of that script, we'll be able to tell you exactly what it does. –  MDMarra Aug 2 '12 at 23:06
    
It is one of cpanel's scripts, is it really to post its content here? –  Mohammad Ali Akbari Aug 2 '12 at 23:08
1  
I have absolutely no idea what their terms of service are, you're their customer not me. But I'd guess that since they made it a shell script and not a binary, they're probably not trying to guard it too closely. –  MDMarra Aug 2 '12 at 23:15

1 Answer 1

up vote 3 down vote accepted

It will simply take information from the database and create the httpd.conf from known good values. It won't revert domains hosted in CPanel, but if you have made custom changes to httpd.conf, those will be reverted.

The command is generally used when a sysadmin has broke httpd.conf by making manual edits.

share|improve this answer

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