Bug 1288633 - php_values in "/etc/httpd/conf.d/owncloud.conf" respectively "/etc/httpd/conf.d/owncloud-defaults.inc" 'are not set'
php_values in "/etc/httpd/conf.d/owncloud.conf" respectively "/etc/httpd/conf...
Status: CLOSED EOL
Product: Fedora EPEL
Classification: Fedora
Component: owncloud (Show other bugs)
el6
Unspecified Linux
unspecified Severity unspecified
: ---
: ---
Assigned To: Igor Gnatenko
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-12-04 15:02 EST by Thomas Bruecker
Modified: 2016-04-05 05:39 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-04-05 05:39:41 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Thomas Bruecker 2015-12-04 15:02:04 EST
Description of problem:
E.g. when loading from "http://<server_name>/owncloud" "php_post_max_size" should
be set by "/etc/httpd/conf.d/owncloud.conf" to 10G, but it is still set to the
default "Master value" of 8M, etc.
see Summary.

Version-Release number of selected component (if applicable): 7.0.11-1.el6.noarch

Additional involved packages:
* httpd-2.2.15-47_7.el6
* php-5.3.3-46.el6_6.i686

How reproducible: always.

I skip your next proposed paragraphs and make it short:
* the files in  "/etc/httpd/conf.d/" are read by  "/etc/httpd/conf/httpd.conf"
  by the statement "Include conf.d/*.conf" at ca. line# 221 in the file
  "/etc/httpd/conf/httpd.conf".

* according to the description of the apache-2.2-Include-Directive in the
  apache-documentation, the files are read by the above statement in
  alphabetical order; so
  1st is read "/etc/httpd/conf.d/owncloud.conf" with its included file
     "/etc/httpd/conf.d/owncloud-defaults.inc" which contains the
     "php_value"-specifications.
  2nd is read "/etc/httpd/conf.d/php.conf"

* the module "modules/libphp5.so" is loaded by "/etc/httpd/conf.d/php.conf",
  so this module is not yet loaded when (finally)
  "/etc/httpd/conf.d/owncloud-defaults.inc" gets loaded.

* "/etc/httpd/conf.d/owncloud-defaults.inc" has the following statements for
  the "php_value"s ( the "[...]" are statements omitted by me, or comments):
  "
    <IfModule mod_php5.c>
       [...]
       [e.g] php_value php_post_max_size 10G
       [...]
      </IfModule>
  ".
* because "libphp5.so" is not yet loaded when interpreting the above
  conditional statement, no "php_value"s are set.

* you may test this, by replacing the original "/usr/share/owncloud/index.php"-
  file by a file "/usr/share/owncloud/index.php" containing:
  "
    <?php
      phpinfo();
    ?>
  "
* if you e.g. rename the file "/etc/httpd/conf.d/owncloud.conf" to
  "/etc/httpd/conf.d/powncloud.conf" ('after "php.conf"'), then everything
  works correctly (besides: [I suppose you may not add cyclic-depending-bugs]
  see "Attachment" [following soon]).
Comment 1 Thomas Bruecker 2015-12-04 16:27:10 EST
* actually I have made a mistake above it is not 'see "Attachment"' but it
  should be: 'see Additional Comments:".
* here the completion: to have work it correctly, you must also solve
  Bug 1288650 .
Comment 2 Thomas Bruecker 2015-12-04 17:31:03 EST
"/etc/httpd/conf.d/owncloud.conf" and "/etc/httpd/conf.d/owncloud-defaults.inc"
are from the package "owncloud-httpd-7.0.11-1.el6.noarch"
Comment 3 James Hogarth 2016-04-05 05:39:41 EDT
The EPEL6 version of owncloud is about to have it's final update of 7.0.13

That is the point this gets EOL'd and will be retired.

If the 7.0.13 update does not solve this for you please migrate to the supported EL7 release or the supported upstream release for EL6.

Note that despite the identical naming I have confirmed that the httpd 2.4 + mod_php in EL7 does not exhibit this issue and correctly displays the max 10G size.

Note You need to log in before you can comment on or make changes to this bug.