Cobra Forum

Plesk Panel => Webserver => Topic started by: Suhitha on Dec 29, 2025, 03:30 AM

Title: Unable to start Apache on a Plesk server: Invalid command 'php_admin_value'
Post by: Suhitha on Dec 29, 2025, 03:30 AM
Question: Unable to start Apache on a Plesk server: Invalid command 'php_admin_value'


Applicable to:


Symptoms


server.example.com httpd[13145]: AH00526: Syntax error on line 2 of /var/www/vhosts/system/example.com/conf/vhost.conf:
server.example.com httpd[13145]: Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration


Cause

Apache module mod_php5 is outdated and is disabled for security reasons.

Note: The issue may appear for different mod_php5 modules such as php_flag or php_admin_flag.


Resolution

1.Connect to the Plesk via SSH.

2.Open the file vhost_ssl.conf that appears in the error message in a text editor. In this example, we are using the vi editor:

# vi /var/www/vhosts/system/example.com/conf/vhost_ssl.conf

3.Comment out the string with php_admin_value directive by placing a # (hash) character at the beginning of each line:

#<Directory /home/httpd/vhosts/example.com/httpdocs>
#php_admin_value open_basedir "/home/httpd/vhosts/example.com/httpdocs:/tmp"
#</Directory>
4.Save the changes and close the file.

5.Repair web-server configuration using the command:

# plesk repair web -y