F
F
FernandoErrNando2016-03-03 14:14:15
PHP
FernandoErrNando, 2016-03-03 14:14:15

Why doesn't php_admin_value work in site config?

Let's say we set the directives max_execution_time = 300,
mbstring.func_overload=2 in php.ini, and the following values ​​in the Apache config:

<VirtualHost *:8080>
    ServerName test.local
    ServerAlias www.test.local
    ServerAdmin [email protected]
    DocumentRoot /var/www/sites/test.local
    <Directory /var/www/sites/test.local>
      AllowOverride All
    </Directory>

    <Directory /var/www/sites/test.local/folder>
      php_admin_value max_input_time 600
      php_admin_value mbstring.func_overload 0
    </Directory>
</VirtualHost>

Question: Why are the values ​​of the set variables in the folder folder still used from php.ini?
UPD1: Question 2: Can this be done using nginx?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
FernandoErrNando, 2016-03-06
@FernandoErrNando

In fact, everything works, only the problem was that there was a parameter in .htaccess that tried to set mb.function_overload, which is now impossible , so the values ​​​​were taken by default. As far as I understand, this has been going on since version 5.2.8.

V
Viktor Taran, 2016-03-04
@shambler81

1 which mod php mod_apache mod_fastCGI php-fpm ?
What OS, in Debian there are several things like these php.ini by default, and they can also be different for each site.
phpinfo to the studio, on this page

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question