After using “migrate_phpmyadmin.sh” and “apt full-upgrade” to Debian 11, Apache is now down. All other services are working.
root@vps:~# 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 Tue 2021-11-02 22:19:32 CET; 12h ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 58145 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
CPU: 25ms
Nov 02 22:19:32 hostname.domain.tld systemd[1]: Starting The Apache HTTP Server...
Nov 02 22:19:32 hostname.domain.tld apachectl[58148]: AH00526: Syntax error on line 25 of /etc/apache2/conf.d/domains/websub.domain.tld.conf:
Nov 02 22:19:32 hostname.domain.tld apachectl[58148]: Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration
Nov 02 22:19:32 hostname.domain.tld apachectl[58145]: Action 'start' failed.
Nov 02 22:19:32 hostname.domain.tld apachectl[58145]: The Apache error log may have more information.
Nov 02 22:19:32 hostname.domain.tld systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Nov 02 22:19:32 hostname.domain.tld systemd[1]: apache2.service: Failed with result 'exit-code'.
Nov 02 22:19:32 hostname.domain.tld systemd[1]: Failed to start The Apache HTTP Server.
cat /var/log/apache2/error.log:
[Tue Nov 02 11:18:12.631066 2021] [mpm_prefork:notice] [pid 83135] AH00171: Graceful restart requested, doing restart
[Tue Nov 02 11:18:12.881082 2021] [:notice] [pid 83135] mod_ruid2/0.9.8 enabled
[Tue Nov 02 11:18:12.891619 2021] [ssl:warn] [pid 83135] AH01909: 195.201.126.66:443:0 server certificate does NOT include an ID which matches the server name
[Tue Nov 02 11:18:12.892103 2021] [mpm_prefork:notice] [pid 83135] AH00163: Apache/2.4.51 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1k configured -- resuming normal operations
[Tue Nov 02 11:18:12.892249 2021] [core:notice] [pid 83135] AH00094: Command line: '/usr/sbin/apache2'
[Tue Nov 02 11:18:12.892261 2021] [mpm_prefork:notice] [pid 83135] AH00171: Graceful restart requested, doing restart
[Tue Nov 02 11:18:13.052284 2021] [:notice] [pid 83135] mod_ruid2/0.9.8 enabled
[Tue Nov 02 11:18:13.064081 2021] [ssl:warn] [pid 83135] AH01909: 195.201.126.66:443:0 server certificate does NOT include an ID which matches the server name
[Tue Nov 02 11:18:13.068570 2021] [mpm_prefork:notice] [pid 83135] AH00163: Apache/2.4.51 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1k configured -- resuming normal operations
[Tue Nov 02 11:18:13.068597 2021] [core:notice] [pid 83135] AH00094: Command line: '/usr/sbin/apache2'
[Tue Nov 02 11:23:47.383353 2021] [mpm_prefork:notice] [pid 83135] AH00170: caught SIGWINCH, shutting down gracefully
[Tue Nov 02 11:24:08.775428 2021] [ssl:warn] [pid 749] AH01909: 195.201.126.66:443:0 server certificate does NOT include an ID which matches the server name
[Tue Nov 02 11:24:08.793227 2021] [suexec:notice] [pid 749] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Tue Nov 02 11:24:09.109209 2021] [:notice] [pid 785] mod_ruid2/0.9.8 enabled
[Tue Nov 02 11:24:09.161981 2021] [ssl:warn] [pid 785] AH01909: 195.201.126.66:443:0 server certificate does NOT include an ID which matches the server name
[Tue Nov 02 11:24:09.181753 2021] [mpm_prefork:notice] [pid 785] AH00163: Apache/2.4.51 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1k configured -- resuming normal operations
[Tue Nov 02 11:24:09.181791 2021] [core:notice] [pid 785] AH00094: Command line: '/usr/sbin/apache2'
[Tue Nov 02 13:06:19.506821 2021] [php7:error] [pid 825] [client 45.146.164.110:0] script '/var/www/html/index.php' not found or unable to stat
[Tue Nov 02 14:19:08.320381 2021] [php7:error] [pid 825] [client 43.248.96.136:0] script '/var/www/html/lixuan.php' not found or unable to stat
[Tue Nov 02 14:25:36.203148 2021] [mpm_prefork:notice] [pid 785] AH00171: Graceful restart requested, doing restart
[Tue Nov 02 14:25:36.405656 2021] [:notice] [pid 785] mod_ruid2/0.9.8 enabled
I found in the forum the thread with the error “AH00526: Syntax error on line 25 of /etc/apache2/conf.d/domains/” but I am not able to understand the solution.
Could you please suggest me a command that does what is indicated in this thread? After that should I make any adjustments in the panel GUI? Thank you.
Translated with www.DeepL.com/Translator (free version)