Nginx stoped working after last updates

AlphaPrime

Active Member
Aug 23, 2021
42
6
8
Romania
cPanel Access Level
Root Administrator
After last updates and instaling modsecurity for nginx, I have this error at restart!

Error: [2022-04-27 13:38:30 +0300] info [restartsrv_nginx] systemd failed to start the service “nginx” (The “/usr/bin/systemctl restart nginx.service --no-ask-password” command (process 46228) reported error number 1 when it ended.): Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details. Waiting for “nginx” to start ………failed. Cpanel::Exception::Services::StartError Service Status undefined status from Cpanel::ServiceManager::Services::Nginx Service Error (XID jjrxxh) The “nginx” service failed to start. Startup Log Apr 27 13:38:30 hosting.crowds.ro systemd[1]: Starting nginx - high performance web server... Apr 27 13:38:30 hosting.crowds.ro nginx[46229]: nginx: [emerg] dlopen() "/etc/nginx/modules/ngx_http_modsecurity_module.so" failed (libmodsecurity.so.3: cannot open shared object file: No such file or directory) in /etc/nginx/conf.d/modules/ngx_http_modsecurity_module.conf:1 Apr 27 13:38:30 hosting.crowds.ro systemd[1]: nginx.service: control process exited, code=exited status=1 Apr 27 13:38:30 hosting.crowds.ro systemd[1]: Failed to start nginx - high performance web server. Apr 27 13:38:30 hosting.crowds.ro systemd[1]: Unit nginx.service entered failed state. Apr 27 13:38:30 hosting.crowds.ro systemd[1]: nginx.service failed. Log Messages Apr 27 13:38:30 hosting nginx: nginx: [emerg] dlopen() "/etc/nginx/modules/ngx_http_modsecurity_module.so" failed (libmodsecurity.so.3: cannot open shared object file: No such file or directory) in /etc/nginx/conf.d/modules/ngx_http_modsecurity_module.conf:1 nginx has failed. Contact your system administrator if the service does not automagically recover.
 

AlphaPrime

Active Member
Aug 23, 2021
42
6
8
Romania
cPanel Access Level
Root Administrator
Hey there! Can you let me know specifically how you performed the ModSecurity installation? It would seem that is where the issue lies.
Error: [2022-04-28 03:57:43 +0300] info [restartsrv_nginx] systemd failed to start the service “nginx” (The “/usr/bin/systemctl restart nginx.service --no-ask-password” command (process 30655) reported error number 1 when it ended.): Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details. Waiting for “nginx” to start ………failed. Cpanel::Exception::Services::StartError Service Status undefined status from Cpanel::ServiceManager::Services::Nginx Service Error (XID 4whau6) The “nginx” service failed to start. Startup Log Apr 28 03:57:43 hosting.crowds.ro systemd[1]: Starting nginx - high performance web server... Apr 28 03:57:43 hosting.crowds.ro nginx[30656]: nginx: [emerg] dlopen() "/etc/nginx/modules/ngx_http_modsecurity_module.so" failed (libmodsecurity.so.3: cannot open shared object file: No such file or directory) in /etc/nginx/conf.d/modules/ngx_http_modsecurity_module.conf:1 Apr 28 03:57:43 hosting.crowds.ro systemd[1]: nginx.service: control process exited, code=exited status=1 Apr 28 03:57:43 hosting.crowds.ro systemd[1]: Failed to start nginx - high performance web server. Apr 28 03:57:43 hosting.crowds.ro systemd[1]: Unit nginx.service entered failed state. Apr 28 03:57:43 hosting.crowds.ro systemd[1]: nginx.service failed. Log Messages Apr 28 03:57:43 hosting nginx: nginx: [emerg] dlopen() "/etc/nginx/modules/ngx_http_modsecurity_module.so" failed (libmodsecurity.so.3: cannot open shared object file: No such file or directory) in /etc/nginx/conf.d/modules/ngx_http_modsecurity_module.conf:1 nginx has failed. Contact your system administrator if the service does not automagically recover.
 

Spirogg

Well-Known Member
Feb 21, 2018
700
161
43
chicago
cPanel Access Level
Root Administrator

AlphaPrime

Active Member
Aug 23, 2021
42
6
8
Romania
cPanel Access Level
Root Administrator
From what I see I can't install http2 from EasyApache 4... It dosen't exist when I try to install with the terminal. And in EasyApache 4 is not showing in review for provisioning if I try to install... I don't know what the support has done because after them I have lost this http2! And no support is responding...
 

AlphaPrime

Active Member
Aug 23, 2021
42
6
8
Romania
cPanel Access Level
Root Administrator
# sudo yum install httpd
Loaded plugins: fastestmirror, universal-hooks, versionlock
Loading mirror speeds from cached hostfile
* EA4: 93.115.203.100
* cpanel-addons-production-feed: 93.115.203.100
* cpanel-plugins: 93.115.203.100
* base: ro-bucharest-repo.bigstepcloud.com
* centos-sclo-rh: mirrors.m247.ro
* centos-sclo-sclo: ro-bucharest-repo.bigstepcloud.com
* epel: mirrors.nav.ro
* extras: ro-bucharest-repo.bigstepcloud.com
* remi: mirrors.neterra.net
* remi-safe: mirrors.neterra.net
* updates: ro-bucharest-repo.bigstepcloud.com
varnish60lts/signature | 833 B 00:00:00
varnish60lts/signature | 1.8 kB 00:00:03 !!!
No package httpd available.
Error: Nothing to do
 

Spirogg

Well-Known Member
Feb 21, 2018
700
161
43
chicago
cPanel Access Level
Root Administrator
# sudo yum install httpd
Loaded plugins: fastestmirror, universal-hooks, versionlock
Loading mirror speeds from cached hostfile
* EA4: 93.115.203.100
* cpanel-addons-production-feed: 93.115.203.100
* cpanel-plugins: 93.115.203.100
* base: ro-bucharest-repo.bigstepcloud.com
* centos-sclo-rh: mirrors.m247.ro
* centos-sclo-sclo: ro-bucharest-repo.bigstepcloud.com
* epel: mirrors.nav.ro
* extras: ro-bucharest-repo.bigstepcloud.com
* remi: mirrors.neterra.net
* remi-safe: mirrors.neterra.net
* updates: ro-bucharest-repo.bigstepcloud.com
varnish60lts/signature | 833 B 00:00:00
varnish60lts/signature | 1.8 kB 00:00:03 !!!
No package httpd available.
Error: Nothing to do
what mpm are you using ?
rpm -qa | grep mpm

read this
 

Spirogg

Well-Known Member
Feb 21, 2018
700
161
43
chicago
cPanel Access Level
Root Administrator

AlphaPrime

Active Member
Aug 23, 2021
42
6
8
Romania
cPanel Access Level
Root Administrator
what mpm are you using ?
rpm -qa | grep mpm

read this
Started with the last updates. I think woth the nginx... i had evrything from cloudlinux, not cpanel in easyapache... php-fpm removed it self, than when i tried to add it from easy apache 4, httpd removed and can t install it back... easy apache 4 started to do staff that normaly should not... removed even the nginx install.
I saw that there was a http2 for nginx... i think with that started.
 

Attachments

Spirogg

Well-Known Member
Feb 21, 2018
700
161
43
chicago
cPanel Access Level
Root Administrator
Yum install httpd is not working!
I would send support to cloudlinux since you said you run cloudlinux. they respond pretty quick