Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.htaccess broken due to php_value commands #27891

Closed
keppler opened this issue May 15, 2017 · 2 comments
Closed

.htaccess broken due to php_value commands #27891

keppler opened this issue May 15, 2017 · 2 comments

Comments

@keppler
Copy link

keppler commented May 15, 2017

Plain installation of ownCloud (eg. tar xvf owncloud-10.0.0.tar.bz2) leads to an "500 Internal Server Error" when running on Apache httpd without mod_php (eg. with FastCGI).

The reason is a sloppy .htaccess file:

<IfModule mod_php5.c>
  php_value always_populate_raw_post_data -1
</IfModule>

php_value upload_max_filesize 513M
php_value post_max_size 513M
php_value memory_limit 512M
php_value mbstring.func_overload 0
php_value default_charset 'UTF-8'
php_value output_buffering 0

The bug is obvious: the php_value commands need all to be inside the corresponding <IfModule> block. Otherwise Apache httpd will report this error:

[Mon May 15 17:58:49.077496 2017] [core:alert] [pid 3510:tid 140036636915456] [client X.X.X.X:XXXX] /XXX/.htaccess: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration

Automatic deployment of ownCloud is broken on non-mod_php environments. Please consider automated tests in FastCGI environments.

@keppler keppler closed this as completed May 15, 2017
@keppler
Copy link
Author

keppler commented May 15, 2017

(done with 8cbda87 - didn't realize that it was already fixed in trunk)

@lock
Copy link

lock bot commented Aug 1, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants