500 Internal Server Error with php-fpm

[Thu May 04 13:01:48.378031 2017] [core:alert] [pid 13353:tid 547981033904] [client 192.168.0.120:44978] /var/www/owncloud/htdocs/.htaccess: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration

The problem is that the .htaccess file shipped with owncloud 10 do not protect the php_value directives and probably a lot of server relay on php-fpm instead of the php module.
Editing the .htaccess this way:

<IfModule mod_php7.c>
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
</IfModule>

fixes the 500 error but owncloud keeps complaining that .htaccess has been modified.......

See:

i have the sampe problem but i dont' undertsand the solution.
i have ubuntu 16.04
mysql
php 7
apache2
owncloud 10

new installation

thanks

Replace your .htaccess with the one provided in [1] and note that your installation can break at any time (or even show additional issues) if you don't use one of the following combinations:

  • Apache + mod_php (officially supported and the only setup where ownCloud is tested with)
  • nginx + php-fpm (community supported, few developers are using that one)

[1] https://raw.githubusercontent.com/owncloud/core/8cbda87eabc39e8db2ae8d3b117333f4bdf79c7a/.htaccess

thanks
I made this change but now don't see the wizard installation page but the page in php
<?php
/**
* @author Jörn Friedrich Dreyer jfd@butonic.de
* @author Lukas Reschke lukas@statuscode.ch
* @author Morris Jobke hey@morrisjobke.de
* @author Philipp Schaffrath github@philippschaffrath.de
* @author RealRancor fisch.666@gmx.de
* @author Robin Appelman icewind@owncloud.com
* @author Sergio Bertolín sbertolin@solidgear.es
* @author Thomas Müller thomas.mueller@tmit.eu
* @author Vincent Petry pvince81@owncloud.com
*
* @copyright Copyright (c) 2017, ownCloud GmbH
* @license AGPL-3.0
*
* This code is free software: you c
ectt...

why?
thanks

This means you have misconfigured your environment / your webserver in a way that it doesn't process PHP files any more.

I believe too
last week install ubuntu and oc in 4 hour.. this time don't good :frowning:
ok thanks reinstall all .
One question: if i want to install mysql , is right this command?
https://doc.owncloud.org/server/10.0/admin_manual/installation/source_installation.html#ubuntu-installation-label
with
apt-get install apache2 mysql-server libapache2-mod-php7.0

As this question is nothing ownCloud specific just have a look at various well known howtos how tu install such a LAMP stack like:

ok thanks
sorry for off topic