Author Topic: httpd.conf get erased on rebuild  (Read 8051 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
httpd.conf get erased on rebuild
« on: January 26, 2019, 12:53:35 PM »
This is my 4th CWP server and I never experienced problem like this one. Site is showing "It works!", and I use solution founded here to rebuild Apache conf. After rebuilding Apache, httpd.conf was almost entirely erased, leaving just last three lines in the file:

Code: [Select]
ExtendedStatus On
Include /usr/local/apache/conf/sharedip.conf
Include /usr/local/apache/conf.d/*.conf

Solution to fix this problem was to reinstall cwp-httpd which I did, and after that "It works!" happened again.... vicious cycle...

Any idea how to fix this issue?

Offline
***
Re: httpd.conf get erased on rebuild
« Reply #1 on: January 27, 2019, 06:49:19 PM »
You really have some serious problem. The control panel shouldn't left three lines in your httpd.conf.
What version are you using..??

Check your file: /usr/local/apache/conf.d/vhosts.conf

The content must be:
Code: [Select]
IncludeOptional /usr/local/apache/conf.d/vhosts/*.conf

Regards,
Netino

Offline
*
Re: httpd.conf get erased on rebuild
« Reply #2 on: January 27, 2019, 11:50:43 PM »
I'm using the latest version. I have fixed somehow - turned on NAT mode (which I never turned on on other servers), changed DNS records to local IP and suddenly all start working. If you ask me to repeat how and what I exactly did, I cannot reproduce my steps... Now httpd.conf is regularly updated.

Offline
*
Re: httpd.conf get erased on rebuild
« Reply #3 on: February 05, 2019, 08:50:07 AM »
You must restore the file from the backup created before recompiling apache /usr/local/apache/conf/httpd.conf-cwpsave, or if there is not try to reinstall cwp-httpd again:
yum remove cwp-httpd
yum install cwp-httpd
I'm having the same problem on different new installations of cwp pro, after apache recompilation only those three lines remain.
Also recompiling is useless because the additional settings are not loaded. This problem is only for new installation of cwp
I do not think the serious problem has it vojjin... 8)

Offline
*
Re: httpd.conf get erased on rebuild
« Reply #4 on: February 21, 2019, 07:57:19 PM »
Hi,

After Apache Re-Build in CWP6, the configuration file is cleared, can you please assist us to fix the issue

Offline
*
Re: httpd.conf get erased on rebuild
« Reply #5 on: February 21, 2019, 08:00:38 PM »
Loaded plugins: fastestmirror, replace, security
Loading mirror speeds from cached hostfile
 * base: dl.za.jsdaav.net
 * extras: mirror.bitco.co.za
 * rpmforge: ftp.is.co.za
 * updates: dl.za.jsdaav.net
Setting up Install Process
Package openssl-devel-1.0.1e-57.el6.x86_64 already installed and latest version
Package apr-util-devel-1.6.0-1.x86_64 already installed and latest version
Package apr-devel-1.6.2-1.x86_64 already installed and latest version
Package apr-1.6.2-1.x86_64 already installed and latest version
Package apr-util-1.6.0-1.x86_64 already installed and latest version
Nothing to do
Stopping httpd: [FAILED]
Starting httpd: [FAILED]
Apache Rebuild Completed


Error:Can't add notification!

Offline
*
Re: httpd.conf get erased on rebuild
« Reply #6 on: February 22, 2019, 07:29:22 AM »
Some how we managed to resolve this issue but now Internal Server Error is coming. We fix the permission but still the issue is not yet resolved.