Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Apache container does not recognize php_value in .htaccess #583

Open
mikeschinkel opened this issue Jul 22, 2019 · 4 comments
Open

Apache container does not recognize php_value in .htaccess #583

mikeschinkel opened this issue Jul 22, 2019 · 4 comments
Assignees
Labels

Comments

@mikeschinkel
Copy link
Member

On a Apache container issue, I am getting the following error in the Apache logs:

[Mon Jul 22 23:37:17.845081 2019] [core:alert] [pid 7:tid 140033393052392] [client 172.42.0.1:56708] /var/www/localhost/htdocs/.htaccess: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration

This is because .htaccess has the following command in it:

php_value short_open_tag 0

I absolutely can work around this, so it is not a critical issue, but it is a common thing that might appear in an .htaccess file so it would be nice to figure out why it does not recognize it and fix it.

@mikeschinkel mikeschinkel added this to To do in Component Support via automation Jul 22, 2019
@tedmasterweb
Copy link

tedmasterweb commented Jul 23, 2019 via email

@mikeschinkel
Copy link
Member Author

@tedmasterweb Thanks for the follow up! That code in .htaccess came from client code that I can't (yet) update, so I think probably their hosting is ignoring it somehow.

@tedmasterweb
Copy link

It is ignoring it because it is the wrong directive. It should be php_flag and not php_value. Make sense or am I missing something?

@mikeschinkel
Copy link
Member Author

@tedmasterweb Makes total sense, and thanks for bringing this up and keeping me from chasing my tail on this one. I should have said that before.

What's confusing me is why it is not causing failure for others, but that is of course not relevant to WPLib Box.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
Development

No branches or pull requests

3 participants