php_value auto_prepend - causing 500 error?
I have a project which uses the following in .htaccess:
php_value auto_prepend_file /home/-path-here/prepend.php
This works fine on my local WAMP server and on another server, just not on this new one.
I have full access to 开发者_Go百科the server.
I'm thinking I need to enable php_value
something like php.ini or with easyapache?
To allow php_value
in .htaccess
files, the AllowOverride directive for that directory must be configured appropriately.
AllowOverride All
would do it, but that might be to general. Then again, I do not know whether a stricter setting exists that still lets you put PHP configuration options in .htaccess
.
For obvious reasons AllowOverride
cannot be set in the .htaccess
itself.
Furthermore, as Col. Shrapnel mentioned, PHP must be used as Apache module to be able to change PHP's configuration settings via Apache's configuration. Check the Apache error log to see the actual reason.
精彩评论