Due to a problem I don’t remember, quite some time ago I had to change php from fpm to module. Now I am trying to revert back to its previous state, but I get an error message from Apache on restart:
# systemctl restart apache2
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details.
# systemctl status apache2.service
× apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Sat 2025-02-08 18:05:14 CET; 58s ago
Duration: 8min 46.053s
Docs: https://httpd.apache.org/docs/2.4/
Process: 1013214 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
CPU: 33ms
Feb 08 18:05:14 vps.DOMAIN.TLD systemd[1]: Starting apache2.service - The Apache HTTP Server...
Feb 08 18:05:14 vps.DOMAIN.TLD apachectl[1013216]: AH00526: Syntax error on line 26 of /etc/apache2/conf.d/domains/camino.DOMAIN.TLD.conf:
Feb 08 18:05:14 vps.DOMAIN.TLD apachectl[1013216]: Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration
Feb 08 18:05:14 vps.DOMAIN.TLD systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Feb 08 18:05:14 vps.DOMAIN.TLD systemd[1]: apache2.service: Failed with result 'exit-code'.
Feb 08 18:05:14 vps.DOMAIN.TLD systemd[1]: Failed to start apache2.service - The Apache HTTP Server.
# nano /etc/apache2/conf.d/domains/camino.DOMAIN.TLD.conf
#=========================================================================#
# Default Web Domain Template #
# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
# https://hestiacp.com/docs/server-administration/web-templates.html #
#=========================================================================#
<VirtualHost 195.201.126.66:8080>
ServerName camino.DOMAIN.TLD
ServerAdmin [email protected]
DocumentRoot /home/admin/web/camino.DOMAIN.TLD/public_html
ScriptAlias /cgi-bin/ /home/admin/web/camino.DOMAIN.TLD/cgi-bin/
Alias /vstats/ /home/admin/web/camino.DOMAIN.TLD/stats/
Alias /error/ /home/admin/web/camino.DOMAIN.TLD/document_errors/
#SuexecUserGroup admin admin
CustomLog /var/log/apache2/domains/camino.DOMAIN.TLD.bytes bytes
CustomLog /var/log/apache2/domains/camino.DOMAIN.TLD.log combined
ErrorLog /var/log/apache2/domains/camino.DOMAIN.TLD.error.log
IncludeOptional /home/admin/conf/web/camino.DOMAIN.TLD/forcessl.apache2.conf*
<Directory /home/admin/web/camino.DOMAIN.TLD/public_html>
AllowOverride All
Options +Includes -Indexes +ExecCGI
php_admin_value open_basedir /home/admin/web/camino.DOMAIN.TLD/public_html:/home/admin/tmp
php_admin_value upload_tmp_dir /home/admin/tmp
php_admin_value session.save_path /home/admin/tmp
php_admin_value sys_temp_dir /home/admin/tmp
</Directory>
<Directory /home/admin/web/camino.DOMAIN.TLD/stats>
AllowOverride All
</Directory>
<IfModule mod_ruid2.c>
RMode config
RUidGid admin admin
RGroups www-data
</IfModule>
<IfModule mpm_itk.c>
AssignUserID admin admin
</IfModule>
IncludeOptional /home/admin/conf/web/camino.DOMAIN.TLD/apache2.conf_*
IncludeOptional /etc/apache2/conf.d/*.inc
</VirtualHost>
What should I change in camino.DOMAIN.TLD.conf? If I switch back to module everything works fine and I can restart.
HestiaCP 1.9.2 on Debian 12.