Author Topic: Wrong Apache installation used by CWP  (Read 9211 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Wrong Apache installation used by CWP
« 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
« Last Edit: December 21, 2016, 12:40:18 AM by ibl1nk »

Offline
*
Re: Wrong Apache installation used by CWP
« Reply #1 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!!