Httpd won't start after I just updated

SYSTEM INFORMATION
OS type and version Ubuntu Linux 18.04.6
Webmin version 1.991
Virtualmin version 7.0-4 Pro
Related packages SUGGESTED

Hello… I just updated my system using Virtualmin and when it said to reboot I did. Now the httpd module will not start! HELP! What can I do to correct this error?

● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: failed (Result: exit-code) since Thu 2022-05-05 11:04:58 EDT; 9min ago
Process: 4118 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)

May 05 11:04:58 wtsa-ubuntu-main systemd[1]: Starting The Apache HTTP Server…
May 05 11:04:58 wtsa-ubuntu-main apachectl[4118]: AH00526: Syntax error on line 146 of /etc/apache2/sites-enabled/artandcrafts.com.conf:
May 05 11:04:58 wtsa-ubuntu-main apachectl[4118]: Invalid command ‘php_admin_value’, perhaps misspelled or defined by a module not included in the server configuration
May 05 11:04:58 wtsa-ubuntu-main apachectl[4118]: Action ‘start’ failed.
May 05 11:04:58 wtsa-ubuntu-main apachectl[4118]: The Apache error log may have more information.
May 05 11:04:58 wtsa-ubuntu-main systemd[1]: apache2.service: Control process exited, code=exited status=1
May 05 11:04:58 wtsa-ubuntu-main systemd[1]: apache2.service: Failed with result ‘exit-code’.
May 05 11:04:58 wtsa-ubuntu-main systemd[1]: Failed to start The Apache HTTP Server.

Here is the code from artandcrafts.com.conf Line 146 is php_admin_value engine Off

<VirtualHost 192.168.2.55:80>
SuexecUserGroup “#1127” “#1030
ServerName artandcrafts.com
ServerAlias www.artandcrafts.com
ServerAlias mail.artandcrafts.com
ServerAlias webmail.artandcrafts.com
ServerAlias admin.artandcrafts.com
ServerAlias autoconfig.artandcrafts.com
ServerAlias autodiscover.artandcrafts.com
DocumentRoot /home/artandcrafts/public_html
ErrorLog /var/log/virtualmin/artandcrafts.com_error_log
CustomLog /var/log/virtualmin/artandcrafts.com_access_log combined
ScriptAlias /cgi-bin/ /home/artandcrafts/cgi-bin/
ScriptAlias /awstats/ /home/artandcrafts/cgi-bin/
ScriptAlias /AutoDiscover/AutoDiscover.xml /home/artandcrafts/cgi-bin/autoconfig.cgi
ScriptAlias /Autodiscover/Autodiscover.xml /home/artandcrafts/cgi-bin/autoconfig.cgi
ScriptAlias /autodiscover/autodiscover.xml /home/artandcrafts/cgi-bin/autoconfig.cgi
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory /home/artandcrafts/public_html>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
AddType application/x-httpd-php .php
AddHandler fcgid-script .php
AddHandler fcgid-script .php5.6
AddHandler fcgid-script .php7.2
AddHandler fcgid-script .php7.3
AddHandler fcgid-script .php7.4
AddHandler fcgid-script .php8.0
AddHandler fcgid-script .php8.1
FCGIWrapper /home/artandcrafts/fcgi-bin/php8.1.fcgi .php
FCGIWrapper /home/artandcrafts/fcgi-bin/php5.6.fcgi .php5.6
FCGIWrapper /home/artandcrafts/fcgi-bin/php7.2.fcgi .php7.2
FCGIWrapper /home/artandcrafts/fcgi-bin/php7.3.fcgi .php7.3
FCGIWrapper /home/artandcrafts/fcgi-bin/php7.4.fcgi .php7.4
FCGIWrapper /home/artandcrafts/fcgi-bin/php8.0.fcgi .php8.0
FCGIWrapper /home/artandcrafts/fcgi-bin/php8.1.fcgi .php8.1

<Directory /home/artandcrafts/cgi-bin>
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted

RewriteEngine on
RewriteCond %{HTTP_HOST} =webmail.artandcrafts.com
RewriteRule ^(?!/.well-known)(.) https://artandcrafts.com:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.artandcrafts.com
RewriteRule ^(?!/.well-known)(.
) https://artandcrafts.com:10000/ [R]
RemoveHandler .php
RemoveHandler .php5.6
RemoveHandler .php7.2
RemoveHandler .php7.3
RemoveHandler .php7.4
RemoveHandler .php8.0
RemoveHandler .php8.1
FcgidMaxRequestLen 1073741824

AuthName “artandcrafts.com statistics”
AuthType Basic
AuthUserFile /home/artandcrafts/.awstats-htpasswd
require valid-user

Alias /dav /home/artandcrafts/public_html
ProxyPass /dav/ !
ProxyPassReverse /dav/ !
<Location /dav>
DAV on
AuthType Basic
AuthName “artandcrafts.com
AuthUserFile /home/artandcrafts/etc/dav.digest.passwd
Require valid-user
ForceType text/plain
Satisfy All
RemoveHandler .php
RemoveHandler .php5.6
RemoveHandler .php7.2
RemoveHandler .php7.3
RemoveHandler .php7.4
RemoveHandler .php8.0
RemoveHandler .php8.1
RewriteEngine off

<Proxy >
allow from all

Redirect /mail/config-v1.1.xml /cgi-bin/autoconfig.cgi
Redirect /.well-known/autoconfig/mail/config-v1.1.xml /cgi-bin/autoconfig.cgi

<VirtualHost 192.168.2.55:443>
SuexecUserGroup “#1127” “#1030
ServerName artandcrafts.com
ServerAlias www.artandcrafts.com
ServerAlias mail.artandcrafts.com
ServerAlias webmail.artandcrafts.com
ServerAlias admin.artandcrafts.com
ServerAlias autoconfig.artandcrafts.com
ServerAlias autodiscover.artandcrafts.com
DocumentRoot /home/artandcrafts/public_html
ErrorLog /var/log/virtualmin/artandcrafts.com_error_log
CustomLog /var/log/virtualmin/artandcrafts.com_access_log combined
ScriptAlias /cgi-bin/ /home/artandcrafts/cgi-bin/
ScriptAlias /awstats/ /home/artandcrafts/cgi-bin/
ScriptAlias /AutoDiscover/AutoDiscover.xml /home/artandcrafts/cgi-bin/autoconfig.cgi
ScriptAlias /Autodiscover/Autodiscover.xml /home/artandcrafts/cgi-bin/autoconfig.cgi
ScriptAlias /autodiscover/autodiscover.xml /home/artandcrafts/cgi-bin/autoconfig.cgi
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory /home/artandcrafts/public_html>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
AddType application/x-httpd-php .php
AddHandler fcgid-script .php
AddHandler fcgid-script .php5.6
AddHandler fcgid-script .php7.2
AddHandler fcgid-script .php7.3
AddHandler fcgid-script .php7.4
AddHandler fcgid-script .php8.0
AddHandler fcgid-script .php8.1
FCGIWrapper /home/artandcrafts/fcgi-bin/php8.1.fcgi .php
FCGIWrapper /home/artandcrafts/fcgi-bin/php5.6.fcgi .php5.6
FCGIWrapper /home/artandcrafts/fcgi-bin/php7.2.fcgi .php7.2
FCGIWrapper /home/artandcrafts/fcgi-bin/php7.3.fcgi .php7.3
FCGIWrapper /home/artandcrafts/fcgi-bin/php7.4.fcgi .php7.4
FCGIWrapper /home/artandcrafts/fcgi-bin/php8.0.fcgi .php8.0
FCGIWrapper /home/artandcrafts/fcgi-bin/php8.1.fcgi .php8.1

<Directory /home/artandcrafts/cgi-bin>
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted

RewriteEngine on
RewriteCond %{HTTP_HOST} =webmail.artandcrafts.com
RewriteRule ^(?!/.well-known)(.
) https://artandcrafts.com:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.artandcrafts.com
RewriteRule ^(?!/.well-known)(.*) https://artandcrafts.com:10000/ [R]
RemoveHandler .php
RemoveHandler .php5.6
RemoveHandler .php7.2
RemoveHandler .php7.3
RemoveHandler .php7.4
RemoveHandler .php8.0
RemoveHandler .php8.1
php_admin_value engine Off
FcgidMaxRequestLen 1073741824
SSLEngine on
SSLCertificateFile /home/artandcrafts/ssl.combined
SSLCertificateKeyFile /home/artandcrafts/ssl.key
SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1

AuthName “artandcrafts.com statistics”
AuthType Basic
AuthUserFile /home/artandcrafts/.awstats-htpasswd
require valid-user

Alias /dav /home/artandcrafts/public_html
ProxyPass /dav/ !
ProxyPassReverse /dav/ !
<Location /dav>
DAV on
AuthType Basic
AuthName “artandcrafts.com
AuthUserFile /home/artandcrafts/etc/dav.digest.passwd
Require valid-user
ForceType text/plain
Satisfy All
RemoveHandler .php
RemoveHandler .php5.6
RemoveHandler .php7.2
RemoveHandler .php7.3
RemoveHandler .php7.4
RemoveHandler .php8.0
RemoveHandler .php8.1
RewriteEngine off

<Proxy *>
allow from all

Redirect /mail/config-v1.1.xml /cgi-bin/autoconfig.cgi
Redirect /.well-known/autoconfig/mail/config-v1.1.xml /cgi-bin/autoconfig.cgi

This is a bug in the “disable mod_php” button implementation in 7.0.

I have Ubuntu 18.04 so I’m using /etc/apache2/sites-available/*.conf

I went to the artandcrafts.com.conf and I was unable to edit the file (the feature wasn’t available). How should I edit this file?

I copied the contents of the artandcrafts.com.conf file into Dreamweaver and did a search for php_ and the only one I can find is php_admin_value engine Off

Should I just eliminate this line to solve the problem?

Also… it seems there is a better way to edit the artandcrafts.com.conf file Probably dreamweaver will inject some code i don’t want! (but it does make finding all the instances of php_ easy) should I use nano?

DreamWeaver seems like bringing a nuclear warhead to a fistfight. I don’t know anything about DreamWeaver, but if it doesn’t have a plain old text editing mode, you definitely don’t want to use it to mess with configuration files.

You can use the text editor in File Manager (if you’re logged into Virtualmin as root) or you can use any command line text editor via an ssh session.

We’re working on a new release that will clean this up in the GUI, but it’s probably going to be a few hours, maybe even tomorrow, as new features could introduce new problems.

You could also ssh in and run sudo a2enmod php to get past this issue temporarily until we roll out a fix that properly cleans up after pushing that button. That would re-enable mod_php, which would make these directives meaningful to Apache again.

Thank you Joe… I’m running a backup on the whole installation right now before I change anything so that at least I won’t be any worse off than I am! As soon as that’s done I’ll go ahead and perform the edits and hopefully it will all work!

Thanks again for all your help! I can’t begin to tell you how invaluable your service is!!! If I still have a problem after the edits I’ll let you know. The backup should be done within an hour or so.

If you’re just editing Apache config files, you can probably just back those up (but having known-good, regular, backups is also mandatory for the happiness of your future self).

Thank you Joe! I probably have some of those somewhere… but I’ll make sure to create them just as soon as I get everything running! I have so many backups of so many things that the next problem is finding what I need!!!

Hello Joe…

Unfortunately neither of these solutions worked. I ssh’d in and entered sudo a2enmod php and got the following response

danwtsa@wtsa-ubuntu-main:~$ sudo a2enmod php
ERROR: Module php does not exist!
danwtsa@wtsa-ubuntu-main:~$

I just tried restarting apache2 after rebooting my service and this is what I just got…

● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: failed (Result: exit-code) since Thu 2022-05-05 14:38:52 EDT; 25s ago
Process: 24431 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)

May 05 14:38:52 wtsa-ubuntu-main systemd[1]: Starting The Apache HTTP Server…
May 05 14:38:52 wtsa-ubuntu-main apachectl[24431]: AH00526: Syntax error on line 146 of /etc/apache2/sites-enabled/artandcrafts.com.conf:
May 05 14:38:52 wtsa-ubuntu-main apachectl[24431]: Invalid command ‘php_admin_value’, perhaps misspelled or defined by a module not included
May 05 14:38:52 wtsa-ubuntu-main apachectl[24431]: Action ‘start’ failed.
May 05 14:38:52 wtsa-ubuntu-main apachectl[24431]: The Apache error log may have more information.
May 05 14:38:52 wtsa-ubuntu-main systemd[1]: apache2.service: Control process exited, code=exited status=1
May 05 14:38:52 wtsa-ubuntu-main systemd[1]: apache2.service: Failed with result ‘exit-code’.
May 05 14:38:52 wtsa-ubuntu-main systemd[1]: Failed to start The Apache HTTP Server.

Here is the apache2 error log

[Mon May 02 06:25:19.131017 2022] [mpm_prefork:notice] [pid 2472] AH00163: Apache/2.4.29 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1 configured – resuming normal operations
[Mon May 02 06:25:19.131053 2022] [core:notice] [pid 2472] AH00094: Command line: ‘/usr/sbin/apache2’
PHP Warning: Module ‘bcmath’ already loaded in Unknown on line 0
PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
PHP Warning: Module ‘soap’ already loaded in Unknown on line 0
PHP Warning: Module ‘bcmath’ already loaded in Unknown on line 0
PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
PHP Warning: Module ‘soap’ already loaded in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘pecl-imagick.so’ (tried: /usr/lib/php/20190902/pecl-imagick.so (/usr/lib/php/20190902/pecl-imagick.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/pecl-imagick.so.so (/usr/lib/php/20190902/pecl-imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: Module ‘imagick’ already loaded in Unknown on line 0
PHP Warning: Module ‘ssh2’ already loaded in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘pecl-imagick.so’ (tried: /usr/lib/php/20190902/pecl-imagick.so (/usr/lib/php/20190902/pecl-imagick.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/pecl-imagick.so.so (/usr/lib/php/20190902/pecl-imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: Module ‘bcmath’ already loaded in Unknown on line 0
PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
PHP Warning: Module ‘soap’ already loaded in Unknown on line 0
PHP Warning: Module ‘bcmath’ already loaded in Unknown on line 0
PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
PHP Warning: Module ‘soap’ already loaded in Unknown on line 0
PHP Warning: Module ‘imagick’ already loaded in Unknown on line 0
PHP Warning: Module ‘ssh2’ already loaded in Unknown on line 0
PHP Warning: Module ‘tidy’ already loaded in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘php_gmp.so’ (tried: /usr/lib/php/20190902/php_gmp.so (/usr/lib/php/20190902/php_gmp.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/php_gmp.so.so (/usr/lib/php/20190902/php_gmp.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘php_gmp.so’ (tried: /usr/lib/php/20190902/php_gmp.so (/usr/lib/php/20190902/php_gmp.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/php_gmp.so.so (/usr/lib/php/20190902/php_gmp.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: Module ‘tidy’ already loaded in Unknown on line 0
PHP Warning: Module ‘mcrypt’ already loaded in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘php_gmp.so’ (tried: /usr/lib/php/20190902/php_gmp.so (/usr/lib/php/20190902/php_gmp.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/php_gmp.so.so (/usr/lib/php/20190902/php_gmp.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘php_gmp.so’ (tried: /usr/lib/php/20190902/php_gmp.so (/usr/lib/php/20190902/php_gmp.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/php_gmp.so.so (/usr/lib/php/20190902/php_gmp.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘php_gmp.so’ (tried: /usr/lib/php/20190902/php_gmp.so (/usr/lib/php/20190902/php_gmp.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/php_gmp.so.so (/usr/lib/php/20190902/php_gmp.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘php_gmp.so’ (tried: /usr/lib/php/20190902/php_gmp.so (/usr/lib/php/20190902/php_gmp.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/php_gmp.so.so (/usr/lib/php/20190902/php_gmp.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘php_gmp.so’ (tried: /usr/lib/php/20190902/php_gmp.so (/usr/lib/php/20190902/php_gmp.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/php_gmp.so.so (/usr/lib/php/20190902/php_gmp.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘php_gmp.so’ (tried: /usr/lib/php/20190902/php_gmp.so (/usr/lib/php/20190902/php_gmp.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/php_gmp.so.so (/usr/lib/php/20190902/php_gmp.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: Module ‘mcrypt’ already loaded in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘php_gmp.so’ (tried: /usr/lib/php/20190902/php_gmp.so (/usr/lib/php/20190902/php_gmp.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/php_gmp.so.so (/usr/lib/php/20190902/php_gmp.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘php_gmp.so’ (tried: /usr/lib/php/20190902/php_gmp.so (/usr/lib/php/20190902/php_gmp.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/php_gmp.so.so (/usr/lib/php/20190902/php_gmp.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
[Mon May 02 10:04:45.169233 2022] [mpm_prefork:notice] [pid 2472] AH00171: Graceful restart requested, doing restart
[Mon May 02 10:04:48.653714 2022] [mpm_prefork:notice] [pid 2472] AH00163: Apache/2.4.29 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1 configured – resuming normal operations
[Mon May 02 10:04:48.653745 2022] [core:notice] [pid 2472] AH00094: Command line: ‘/usr/sbin/apache2’
PHP Warning: PHP Startup: Unable to load dynamic library ‘php_gmp.so’ (tried: /usr/lib/php/20190902/php_gmp.so (/usr/lib/php/20190902/php_gmp.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/php_gmp.so.so (/usr/lib/php/20190902/php_gmp.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: Module ‘imagick’ already loaded in Unknown on line 0
PHP Warning: Module ‘ssh2’ already loaded in Unknown on line 0
PHP Warning: Module ‘tidy’ already loaded in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘pecl-imagick.so’ (tried: /usr/lib/php/20190902/pecl-imagick.so (/usr/lib/php/20190902/pecl-imagick.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/pecl-imagick.so.so (/usr/lib/php/20190902/pecl-imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: Module ‘bcmath’ already loaded in Unknown on line 0
PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
PHP Warning: Module ‘soap’ already loaded in Unknown on line 0
[Mon May 02 10:05:30.169530 2022] [mpm_prefork:notice] [pid 2472] AH00171: Graceful restart requested, doing restart
[Mon May 02 10:05:33.650679 2022] [mpm_prefork:notice] [pid 2472] AH00163: Apache/2.4.29 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1 configured – resuming normal operations
[Mon May 02 10:05:33.650705 2022] [core:notice] [pid 2472] AH00094: Command line: ‘/usr/sbin/apache2’
PHP Warning: PHP Startup: Unable to load dynamic library ‘php_gmp.so’ (tried: /usr/lib/php/20190902/php_gmp.so (/usr/lib/php/20190902/php_gmp.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/php_gmp.so.so (/usr/lib/php/20190902/php_gmp.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: Module ‘bcmath’ already loaded in Unknown on line 0
PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
PHP Warning: Module ‘soap’ already loaded in Unknown on line 0
PHP Warning: Module ‘bcmath’ already loaded in Unknown on line 0
PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
PHP Warning: Module ‘soap’ already loaded in Unknown on line 0
PHP Warning: Module ‘imagick’ already loaded in Unknown on line 0
PHP Warning: Module ‘ssh2’ already loaded in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘pecl-imagick.so’ (tried: /usr/lib/php/20190902/pecl-imagick.so (/usr/lib/php/20190902/pecl-imagick.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/pecl-imagick.so.so (/usr/lib/php/20190902/pecl-imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: Module ‘bcmath’ already loaded in Unknown on line 0
PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
PHP Warning: Module ‘soap’ already loaded in Unknown on line 0
PHP Warning: Module ‘bcmath’ already loaded in Unknown on line 0
PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
PHP Warning: Module ‘soap’ already loaded in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘pecl-imagick.so’ (tried: /usr/lib/php/20190902/pecl-imagick.so (/usr/lib/php/20190902/pecl-imagick.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/pecl-imagick.so.so (/usr/lib/php/20190902/pecl-imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: Module ‘mcrypt’ already loaded in Unknown on line 0
PHP Warning: Module ‘imagick’ already loaded in Unknown on line 0
PHP Warning: Module ‘ssh2’ already loaded in Unknown on line 0
PHP Warning: Module ‘tidy’ already loaded in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘php_gmp.so’ (tried: /usr/lib/php/20190902/php_gmp.so (/usr/lib/php/20190902/php_gmp.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/php_gmp.so.so (/usr/lib/php/20190902/php_gmp.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: Module ‘tidy’ already loaded in Unknown on line 0
PHP Warning: Module ‘tidy’ already loaded in Unknown on line 0
PHP Warning: Module ‘tidy’ already loaded in Unknown on line 0
PHP Warning: Module ‘tidy’ already loaded in Unknown on line 0
PHP Warning: Module ‘tidy’ already loaded in Unknown on line 0
PHP Warning: Module ‘tidy’ already loaded in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘pecl-imagick.so’ (tried: /usr/lib/php/20190902/pecl-imagick.so (/usr/lib/php/20190902/pecl-imagick.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/pecl-imagick.so.so (/usr/lib/php/20190902/pecl-imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: Module ‘pspell’ already loaded in Unknown on line 0
PHP Warning: Module ‘bcmath’ already loaded in Unknown on line 0
PHP Warning: Module ‘bcmath’ already loaded in Unknown on line 0
PHP Warning: Module ‘bcmath’ already loaded in Unknown on line 0
PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
PHP Warning: Module ‘soap’ already loaded in Unknown on line 0
PHP Warning: Module ‘soap’ already loaded in Unknown on line 0
PHP Warning: Module ‘soap’ already loaded in Unknown on line 0
PHP Warning: Module ‘bcmath’ already loaded in Unknown on line 0
PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
PHP Warning: Module ‘soap’ already loaded in Unknown on line 0
PHP Warning: Module ‘imagick’ already loaded in Unknown on line 0
PHP Warning: Module ‘ssh2’ already loaded in Unknown on line 0
PHP Warning: Module ‘tidy’ already loaded in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘pecl-imagick.so’ (tried: /usr/lib/php/20190902/pecl-imagick.so (/usr/lib/php/20190902/pecl-imagick.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/pecl-imagick.so.so (/usr/lib/php/20190902/pecl-imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘pecl-imagick.so’ (tried: /usr/lib/php/20190902/pecl-imagick.so (/usr/lib/php/20190902/pecl-imagick.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/pecl-imagick.so.so (/usr/lib/php/20190902/pecl-imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘php_gmp.so’ (tried: /usr/lib/php/20190902/php_gmp.so (/usr/lib/php/20190902/php_gmp.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/php_gmp.so.so (/usr/lib/php/20190902/php_gmp.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘php_gmp.so’ (tried: /usr/lib/php/20190902/php_gmp.so (/usr/lib/php/20190902/php_gmp.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/php_gmp.so.so (/usr/lib/php/20190902/php_gmp.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: Module ‘mcrypt’ already loaded in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘php_gmp.so’ (tried: /usr/lib/php/20190902/php_gmp.so (/usr/lib/php/20190902/php_gmp.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/php_gmp.so.so (/usr/lib/php/20190902/php_gmp.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘php_gmp.so’ (tried: /usr/lib/php/20190902/php_gmp.so (/usr/lib/php/20190902/php_gmp.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/php_gmp.so.so (/usr/lib/php/20190902/php_gmp.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: Module ‘bcmath’ already loaded in Unknown on line 0
PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
PHP Warning: Module ‘soap’ already loaded in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘php_gmp.so’ (tried: /usr/lib/php/20190902/php_gmp.so (/usr/lib/php/20190902/php_gmp.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/php_gmp.so.so (/usr/lib/php/20190902/php_gmp.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘php_gmp.so’ (tried: /usr/lib/php/20190902/php_gmp.so (/usr/lib/php/20190902/php_gmp.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/php_gmp.so.so (/usr/lib/php/20190902/php_gmp.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘php_gmp.so’ (tried: /usr/lib/php/20190902/php_gmp.so (/usr/lib/php/20190902/php_gmp.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/php_gmp.so.so (/usr/lib/php/20190902/php_gmp.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: Module ‘bcmath’ already loaded in Unknown on line 0
PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
PHP Warning: Module ‘soap’ already loaded in Unknown on line 0
PHP Warning: Module ‘bcmath’ already loaded in Unknown on line 0
PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
PHP Warning: Module ‘soap’ already loaded in Unknown on line 0
PHP Warning: Module ‘bcmath’ already loaded in Unknown on line 0
PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
PHP Warning: Module ‘soap’ already loaded in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘php_gmp.so’ (tried: /usr/lib/php/20190902/php_gmp.so (/usr/lib/php/20190902/php_gmp.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/php_gmp.so.so (/usr/lib/php/20190902/php_gmp.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘php_gmp.so’ (tried: /usr/lib/php/20190902/php_gmp.so (/usr/lib/php/20190902/php_gmp.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/php_gmp.so.so (/usr/lib/php/20190902/php_gmp.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘php_gmp.so’ (tried: /usr/lib/php/20190902/php_gmp.so (/usr/lib/php/20190902/php_gmp.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/php_gmp.so.so (/usr/lib/php/20190902/php_gmp.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘php_gmp.so’ (tried: /usr/lib/php/20190902/php_gmp.so (/usr/lib/php/20190902/php_gmp.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/php_gmp.so.so (/usr/lib/php/20190902/php_gmp.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: Module ‘imagick’ already loaded in Unknown on line 0
PHP Warning: Module ‘ssh2’ already loaded in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘pecl-imagick.so’ (tried: /usr/lib/php/20190902/pecl-imagick.so (/usr/lib/php/20190902/pecl-imagick.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/pecl-imagick.so.so (/usr/lib/php/20190902/pecl-imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘pecl-imagick.so’ (tried: /usr/lib/php/20190902/pecl-imagick.so (/usr/lib/php/20190902/pecl-imagick.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/pecl-imagick.so.so (/usr/lib/php/20190902/pecl-imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘pecl-imagick.so’ (tried: /usr/lib/php/20190902/pecl-imagick.so (/usr/lib/php/20190902/pecl-imagick.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/pecl-imagick.so.so (/usr/lib/php/20190902/pecl-imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘pecl-imagick.so’ (tried: /usr/lib/php/20190902/pecl-imagick.so (/usr/lib/php/20190902/pecl-imagick.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/pecl-imagick.so.so (/usr/lib/php/20190902/pecl-imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: Module ‘bcmath’ already loaded in Unknown on line 0
PHP Warning: Module ‘bcmath’ already loaded in Unknown on line 0
PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
PHP Warning: Module ‘soap’ already loaded in Unknown on line 0
PHP Warning: Module ‘soap’ already loaded in Unknown on line 0
PHP Warning: Module ‘pspell’ already loaded in Unknown on line 0
PHP Warning: Module ‘pspell’ already loaded in Unknown on line 0
PHP Warning: Module ‘pspell’ already loaded in Unknown on line 0
PHP Warning: Module ‘pspell’ already loaded in Unknown on line 0
PHP Warning: Module ‘bcmath’ already loaded in Unknown on line 0
PHP Warning: Module ‘bcmath’ already loaded in Unknown on line 0
PHP Warning: Module ‘bcmath’ already loaded in Unknown on line 0
PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
PHP Warning: Module ‘soap’ already loaded in Unknown on line 0
PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
PHP Warning: Module ‘soap’ already loaded in Unknown on line 0
PHP Warning: Module ‘soap’ already loaded in Unknown on line 0
PHP Warning: Module ‘pspell’ already loaded in Unknown on line 0
PHP Warning: Module ‘pspell’ already loaded in Unknown on line 0
PHP Warning: Module ‘bcmath’ already loaded in Unknown on line 0
PHP Warning: Module ‘bcmath’ already loaded in Unknown on line 0
PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
PHP Warning: Module ‘soap’ already loaded in Unknown on line 0
PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
PHP Warning: Module ‘soap’ already loaded in Unknown on line 0
PHP Warning: Module ‘bcmath’ already loaded in Unknown on line 0
PHP Warning: Module ‘bcmath’ already loaded in Unknown on line 0
PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
PHP Warning: Module ‘bcmath’ already loaded in Unknown on line 0
PHP Warning: Module ‘soap’ already loaded in Unknown on line 0
PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
PHP Warning: Module ‘soap’ already loaded in Unknown on line 0
PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
PHP Warning: Module ‘soap’ already loaded in Unknown on line 0
PHP Warning: Module ‘bcmath’ already loaded in Unknown on line 0
PHP Warning: Module ‘bcmath’ already loaded in Unknown on line 0
PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
PHP Warning: Module ‘soap’ already loaded in Unknown on line 0
PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
PHP Warning: Module ‘soap’ already loaded in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘php_gmp.so’ (tried: /usr/lib/php/20190902/php_gmp.so (/usr/lib/php/20190902/php_gmp.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/php_gmp.so.so (/usr/lib/php/20190902/php_gmp.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: Module ‘bcmath’ already loaded in Unknown on line 0
PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
PHP Warning: Module ‘soap’ already loaded in Unknown on line 0
PHP Warning: Module ‘bcmath’ already loaded in Unknown on line 0
PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
PHP Warning: Module ‘soap’ already loaded in Unknown on line 0
[Thu May 05 10:44:06.660224 2022] [mpm_prefork:notice] [pid 2472] AH00169: caught SIGTERM, shutting down

I went to the website portion of Virtualmin and asked it to recheck the website and I got this

You haven’t tried either solution. :wink:

It seems likely the version of mod_php you have is different from the system-standard one. It would be one you installed, I guess (since we don’t install any mod_php in the current installation). So, maybe it’s a2enmod php7. Could be something else. I don’t know. You can check your available-modules directory to see what’s installed.

And, you didn’t remove all of the php_* directives, so Apache is still seeing directives it does not recognize.

But, please NOTE: You must only do one of these two things: Enable mod_php (whatever version of it you installed) temporarily until we roll an update that disables it cleanly or remove the php_* directives. Doing both will allow Apache to start, but will break all of your sites. mod_php is very disruptive, and everything has to be configured around either having it enabled or not. If you enable mod_php again, you cannot remove those directives, or your sites will try to run with mod_php and likely have permissions and handler problems.

1 Like

How about if I just delete the artandcrafts.com website altogether. Will that solve the problem? I went to the sites-available and went to the artandcrafts.com.conf file and I deleted the php_admin_value engine Off line because that was the only one I could find. I restarted Apache2 and it failed. So I put the php_admin_value engine Off line back in and I tried the a2enmod command and that returned that the php module didn’t exist

I’m not really using this website for anything so I could just delete it

No. Because you had mod_php installed enabled, Virtualmin will have added php directives to disable it for all sites that were configured to use other execution modes. You will have php_ directives in every config file in sites-available, and you’ll have to update all of them.

Again, mod_php is very disruptive. When it is installed/enabled, Virtualmin has to do a bunch of stuff to make it not break other execution modes for each domain.

OK… I only deleted them in the artandcrafts.com.conf file. So if I understand correctly every configuration file under sites-available (I have 26 files there) will need to have every line deleted that has a php_ in it.

Please confirm this is correct and I will do it. I don’t remember enabling it but I must have done it. Some of these sites have been on here for some time

Is editing all 26 files and removing every line with the php_ in it a better idea or would enabling the a2enmod a better idea? It sounds like since mod_php is such a disruptive thing that I may be better off editing all the files and eliminating the problem for the future too.

I looked in the mods-available subdirectory and found a few different php references. I’ve included a picture of that directory here:

Thanks for all your help Joe! When I edited all 26 files IT WORKED!!! You do amazing work and I thank you for all your support even when I seem a bit dense!!!

Dan Lewis