AFter reading about mpm-prefork/worker/event options, I notice that my system has defaulted to mpm-prefork. So i went into webmin>servers>apache webserver>configure apache modules:
Are the following two mod_php?
php7.0
php7.3
php7.0 was not checked, however php7.3 was
I unchecked php7.3 and also prefork, then checked worker…however,
after then clicking “Enable Selected Modules” my system returns the following error…
systemctl status apache2.service
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2019-05-08 10:00:14 AEST; 36s ago
Process: 21391 ExecStop=/usr/sbin/apachectl stop (code=exited, status=1/FAILURE)
Process: 3157 ExecReload=/usr/sbin/apachectl graceful (code=exited, status=0/SUCCESS)
Process: 21416 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
Main PID: 5884 (code=exited, status=0/SUCCESS)
May 08 10:00:14 server1.domain.com systemd[1]: Starting The Apache HTTP Server…
May 08 10:00:14 server1.domain.com apachectl[21416]: AH00526: Syntax error on line 45 of /etc/apache2/sites-enabled/0-domain.com.conf:
May 08 10:00:14 server1.domain.com apachectl[21416]: Invalid command ‘php_admin_value’, perhaps misspelled or defined by a module not included in the server configuration
May 08 10:00:14 server1.domain.com apachectl[21416]: Action ‘start’ failed.
May 08 10:00:14 server1.domain.com apachectl[21416]: The Apache error log may have more information.
May 08 10:00:14 server1.domain.com systemd[1]: apache2.service: Control process exited, code=exited status=1
May 08 10:00:14 server1.domain.com systemd[1]: Failed to start The Apache HTTP Server.
May 08 10:00:14 server1.domain.com systemd[1]: apache2.service: Unit entered failed state.
May 08 10:00:14 server1.domain.com systemd[1]: apache2.service: Failed with result ‘exit-code’.
my apache error log has the following entry for this time…
[Wed May 08 10:00:14.097087 2019] [mpm_prefork:notice] [pid 5884] AH00169: caught SIGTERM, shutting down
I cant restart webserver.
Obviously, once i return settings to what they were before hand, apache restarts no problem.
After i restored the original module settings and then started apache (about 15 minutes later), I then notice the following in webmin>system>system logs>apache2/error.log
[Wed May 08 10:15:38.637091 2019] [suexec:notice] [pid 24646] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Wed May 08 10:15:38.704815 2019] [mpm_prefork:notice] [pid 24647] AH00163: Apache/2.4.25 (Debian) mod_fcgid/2.3.9 OpenSSL/1.0.2r configured – resuming normal operations
Line 45 of /etc/apache2/sites-available/0-domain.com.conf reads
php_admin_value engine Off
So, what is wrong with “php_admin_value engine off” in relation to disabling mod_php?
why cant i disable this? None of my domains, as far as i can tell are using mod_php. I have not selected it for any virtual servers in virtualmin>server configuration>website options (all are running fcgi)