Applicable to:
- Plesk for Linux
Symptoms
Note: The following symtoms could be presented with different Apache module
-
The following error show up while checking apache configuration syntax:
# httpd -t
httpd: Syntax error on line 56 of /etc/httpd/conf/httpd.conf: Syntax error on line 36 of /etc/httpd/conf.modules.d/00-base.conf: Cannot load modules/mod_ext_filter.so into server: /etc/httpd/modules/mod_ext_filter.so: cannot open shared object file: No such file or directory -
The mentioned apache module file is missing:
# ls -l /etc/httpd/modules/mod_ext_filter.so
ls: cannot access /etc/httpd/modules/mod_ext_filter.so: No such file or directory -
Apache fails to start with the following error:
# systemctl start httpd
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details. -
The following error show up in
journalctl -xe
command-- Unit httpd.service has begun starting up.
httpd[29946]: httpd: Syntax error on line 56 of /etc/httpd/conf/httpd.conf: Syntax error on line 36 of /etc/httpd/conf.modules.d/00-base.conf: Cannot load modules/mod_ext_filter.so into server: /etc/httpd/modules/mod_ext_filter.so: cannot open shared object file: No such file or directory
systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
systemd[1]: Failed to start The Apache HTTP Server.
Cause
Apache module was not removed correctly and orphan reference to it exists in Apache configuration files.
Resolution
-
Connect to the server via SSH
-
Find in which Apache configuration file the module is being referenced, with command:
# grep -lR "mod_ext_filter.so" /etc/httpd/
/etc/httpd/conf.modules.d/00-base.confNote: Modify the command above accordingly with the corresponding missing module if is different than mod_ext_filter.so
-
Use vi or any text editor of your preference to edit the configuration file with the missing module
# vi /etc/httpd/conf.modules.d/00-base.conf
Note: In case the previous step command prompt a different path, use that path instead
-
Comment out the missing module. It should stay this way:
#LoadModule ext_filter_module modules/mod_ext_filter.so
-
Restart Apache:
# service httpd restart
-
Run the following command:
# plesk repair web
-
Verify that Apache syntax is correct:
# httpd -t
Syntax OK
Comments
0 comments
Please sign in to leave a comment.