Welcome to UltratechHost Forum, Guest. Please take the time to register if you haven't, or click

Tags
Author: UltratechHost - Replies: 0 - Views: 4841
Php scripts returning errors when using: php_flag and php_value
Symptom

You have added php_flag and/or php_value directives in your .htaccess file and your Php scripts used to work just fine. Now, your scripts do not work, what's the problem? Looking into your log /usr/local/apache/error_log file, you see the following errors:

Invalid command 'php_flag', perhaps mis-spelled or defined by a module not included in the server configuration
OR
Invalid command 'php_value, perhaps mis-spelled or defined by a module not included in the server co
Author: UltratechHost - Replies: 0 - Views: 7213
Invalid command 'php_admin_flag' error upon Apache start
If you are getting the following error when you are trying to start Apache:

Code:
Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration

Then you most likely have a misconfiguraiton in the php configuration file and the options.conf file.

To fix this, run the following as root:

Code:
./build all d
./build rewrite_confs

That should fix your issue.