Control Web Panel

WebPanel => Apache => Topic started by: ibl1nk on December 20, 2016, 11:26:30 PM

Title: Wrong Apache installation used by CWP
Post by: ibl1nk on December 20, 2016, 11:26:30 PM
After using the "Update Server Packages" feature on CWP and restarting the server, I discover that all my domains point to the default test page.

Upon further investigation, I discover that the apache installation located in /usr/sbin/httpd is used instead of the default installation in /usr/local/apache/bin/httpd.

This caused a different httpd.conf file to be used instead of the correct one. Server working as intended when manually running /usr/local/apache/bin/httpd but not when starting httpd from CWP.

Where do I go from here?

EDIT: Just figured out I can change which apachectl is used by cwp by changing chkconfig httpd startup script found in /etc/rc.d/init.d, but the problem of the apachectl command on console and cwp showing "httpd dead but subsys locked" remain
Title: Re: Wrong Apache installation used by CWP
Post by: ibl1nk on December 24, 2016, 06:27:22 PM
SOLUTION FOUND
How to fix:
Change chkconfig httpd startup script found in /etc/rc.d/init.d
Point apachectl to /usr/local/apache/bin/apachectl
and httpd to /usr/local/apache/bin/httpd

Problem 2 then arises: apachectl command on console and cwp showing "httpd dead but subsys locked" remain
This problem is fixed by going back to the startup script found in /etc/rc.d/init.d and then pointing
pidfile to /usr/local/apache/logs/httpd.pid

Restart apache and it should all work!!