Author Topic: Apache Webserver Error  (Read 2738 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Apache Webserver Error
« on: July 25, 2022, 01:36:01 PM »
Hi
Please help

I'm a new CWP user
I just installed CWP a month ago
Since i finished installing until now, apache web server can't be active

please guide and help

"Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details."

for the error :
[root@svr1 ~]# systemctl status httpd.service
● httpd.service - Web server Apache
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2022-07-25 09:23:27 EDT; 1min 11s ago
  Process: 96886 ExecStart=/usr/local/apache/bin/apachectl start (code=exited, status=1/FAILURE)

Jul 25 09:23:27 svr1 systemd[1]: Starting Web server Apache...
Jul 25 09:23:27 svr1 apachectl[96886]: httpd: Could not open configuration file /usr/local/apache/conf/httpd.conf: No such file or directory
Jul 25 09:23:27 svr1 systemd[1]: httpd.service: control process exited, code=exited status=1
Jul 25 09:23:27 svr1 systemd[1]: Failed to start Web server Apache.
Jul 25 09:23:27 svr1 systemd[1]: Unit httpd.service entered failed state.
Jul 25 09:23:27 svr1 systemd[1]: httpd.service failed.

Please guide and help
Thanks

Offline
****
Re: Apache Webserver Error
« Reply #1 on: July 25, 2022, 02:55:32 PM »
Problem shows, "Could not open configuration file /usr/local/apache/conf/httpd.conf: No such file or directory"

Have you tried to rebuild Apache with the defaults?

Offline
*
Re: Apache Webserver Error
« Reply #2 on: July 27, 2022, 01:51:15 AM »
Thanks for the advice.. 
I immediately rebuild apache according to the advice given
I tried apache 2.4.52 then nothing happens
I then rebuild apache again using version 2.4.51 and there are changes
now the error has changed to :

 ● httpd.service - Web server Apache
    Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
    Active: failed (Result: exit-code) since Tue 2022-07-26 19:05:56 EDT; 2h 42min ago
    Process: 12432 ExecStart=/usr/local/apache/bin/apachectl start (code=exited, status=127)

       Jul 26 19:05:56 svr1 systemd[1]: Starting Web server Apache...
       Jul 26 19:05:56 svr1 apachectl[12432]: /usr/local/apache/bin/httpd: symbol lookup error: /usr/local/apache/bin/httpd: undefined symbol: apr_ldap_ssl_init
       Jul 26 19:05:56 svr1 systemd[1]: httpd.service: control process exited, code=exited status=127
       Jul 26 19:05:56 svr1 systemd[1]: Failed to start Web server Apache.
       Jul 26 19:05:56 svr1 systemd[1]: Unit httpd.service entered failed state.
       Jul 26 19:05:56 svr1 systemd[1]: httpd.service failed.

Please guide and help again
« Last Edit: July 27, 2022, 01:54:38 AM by glutha »

Offline
****
Re: Apache Webserver Error
« Reply #3 on: July 27, 2022, 04:01:10 PM »
Was this server done form an image?

You can try this: https://www.uxlinux.com/install-latest-apache-version-in-cwp-control-web-panel/

But once you manually update Apache, you have to disable the cwp.repo in /etc/yum.repos.d/
Otherwise if you try the built-in CWP version changer, you'll get odd errors like you are getting now.