php_value in .htaccess causes 500 Internal Server Error #1663
Comments
More than likely a PHP error. What's the error log say? |
Thanks for the quick response, where on the vagrant box should I look for the error log? I tried /var/log/apache2/error.log but the errors in there don't seem related to this unless I'm mistaken
|
Puphpet uses php-fpm which has its own separate error log.
|
I've checked both of those but they are empty, so I'm guessing it's not a PHP issue? |
Not everything is a Puphpet problem. Always remember that the Puphpet is just a compilation of third party modules. Most often the problem is the configuration of these modules. https://github.com/puppetlabs/puppetlabs-apache#allow_override |
Hello, I've done some looking around in the Apache error logs & researching online and it appears the problem is that because PHP is running as FastCGI, as opposed to an Apache module, and php_value isn't allowed in the .htaccess file when PHP is running as CGI. I've not really found a solution to this though, other than loading it as an Apache module I don't think there is. Would anyone have any ideas on how have Apache ignore php_value & other unknown values in the htaccess file? AllowOverride does have a Nonfatle option but that seems to cause other problems with statements in .htaccess files. |
#1663 (comment) Ignore php value in .htaccess
|
@stiig Sorry for taking so long to get back to you but that looks like just what I need. |
Yes, just make sure you're using |
Hello,
I'm trying to get a site running which sets some "php_value"s in the .htaccess file, however with this configuration I just get a server 500 error, if I remove those "php_value" bits it works fine.
Does anyone know what I've done incorrectly here?
Thanks,
Neil.
The text was updated successfully, but these errors were encountered: