Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In .htaccess I've added

php_value "SID"

This seems to have no effect, however, and no errors are thrown in error_log. Other rewrite rules in the same .htaccess file are working as expected.

Why isn't htaccess following this php_value directive? And is there a way to test if php_values or php_flags are being used?

PHP 5.3.8 is running as an Apache 2.2.21 module, not CGI.

UPDATE: Adding php_value "SID" to default-server.conf works as intended. I'm still not sure how this doesn't work in the .htaccess though. In default-server.conf I have 'AllowOverride All' and 'Options All' (for testing this).

share|improve this question
Does setting other php_values work in the .htaccess file? Can you verify by having a page display the output of phpinfo() ? – becomingwisest Jan 11 '12 at 0:05
Could you suggest a php_value to test for? What should I verify via phpinfo? – Isius Jan 11 '12 at 0:19
up vote 2 down vote accepted

It turns out I am using virtual hosts but was editing my default-server.conf file. Once I realized this and edited the correct file in the vhost.d directory the php_value setting was picked up from the .htaccess file as expected.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.