Author Topic: Apache Nginx & Varnish install failed to load apache  (Read 4908 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Apache Nginx & Varnish install failed to load apache
« on: March 02, 2020, 06:18:14 PM »
I used the Apache Nginx, Varnish option under web servers. I believe the configuration is correct, but when I tried to launch, Apache failed.

Under the web control panel, it shows nginx running, apache is not running. My html pages are working, other sites based on php don't seem to be working.

Here's the error message. I have searched for this on the internet but found no similar post.

httpd: Syntax error on line 72 of /etc/httpd/conf/httpd.conf: Cannot load modules/mod_authz_host.so into server: /usr/local/apache/modules/mod_authz_host.so: undefined symbol: ap_get_useragent_host

Re: Apache Nginx & Varnish install failed to load apache
« Reply #1 on: March 02, 2020, 07:44:51 PM »
A quick hit from Yahoo! search:
https://bz.apache.org/bugzilla/show_bug.cgi?id=59842

Try rebuilding the Apache, nginx, varnish environment and include the remote_ip module.

Offline
*****
Re: Apache Nginx & Varnish install failed to load apache
« Reply #2 on: March 03, 2020, 03:13:55 AM »
hi try reinstalling httpd :
Code: [Select]
yum remove cwp-httpd && yum install cwp-httpd

Offline
*
Re: Apache Nginx & Varnish install failed to load apache
« Reply #3 on: March 03, 2020, 03:40:00 PM »
tried uninstall reinstall route. Will report back.

Offline
*
Re: Apache Nginx & Varnish install failed to load apache
« Reply #4 on: March 03, 2020, 04:01:00 PM »
I got the following errors?

Transaction check error:
  file /usr/local/apache/conf/httpd.conf from install of cwp-httpd-2.4.39-3.x86_64 conflicts with file from package httpd-2.4.6-90.el7.centos.x86_64
  file /usr/local/apache/logs from install of cwp-httpd-2.4.39-3.x86_64 conflicts with file from package httpd-2.4.6-90.el7.centos.x86_64
  file /usr/local/apache/modules from install of cwp-httpd-2.4.39-3.x86_64 conflicts with file from package httpd-2.4.6-90.el7.centos.x86_64

When I tried to start apache, it failed again. This time, with a different error:
Cannot load modules/mod_authn_file.so into server: /usr/local/apache/modules/mod_authn_file.so: cannot open shared object file: No such file or directory

I'll give some of the other suggestions a try.

Offline
*****
Re: Apache Nginx & Varnish install failed to load apache
« Reply #5 on: March 03, 2020, 04:23:25 PM »
try this
Code: [Select]
yum remove httpd* -y && yum remove cwp-httpd -y && yum install cwp-httpd -y