> 10 окт. 2017 г., в 22:34, kasak <ka...@kasakoff.net> написал(а): > > > > 10.10.2017 12:52, kasak пишет: >>> 10 окт. 2017 г., в 10:53, Zé Loff <zel...@zeloff.org> написал(а): >>> >>> >>> On Mon, Oct 09, 2017 at 10:16:47PM +0300, kasak wrote: >>>> Hello everybody! >>>> >>>> Please look at my virtualhost config: >>>> >>>> <VirtualHost *:80> >>>> ServerName phpmyadmin >>>> DocumentRoot /var/www/htdocs/phpmyadmin >>>> >>>> <Directory /var/www/htdocs/phpmyadmin> >>>> Options FollowSymLinks >>>> DirectoryIndex index.php >>>> Require ip 192.168.0 >>>> </Directory> >>>> <IfModule mod_php7.c> >>>> php_value upload_max_filesize 40M >>>> php_value post_max_size 50M >>>> </IfModule> >>>> </VirtualHost> >>>> >>>> apache ignoring php values here, the upload size is still 2048 Kb defaults. >>>> >>>> >>> Which version of apache? Which version of PHP? Where did you get the >>> module? >>> >>> Is setting post_max_size on your /etc/php-*.ini (i.e. system-wide) a >>> viable option, or do you need a different default value for other >>> purposes? >>> >>> -- >>> >>> >> I am using packages >> apache-httpd-2.4.27p0 >> php-7.0.23 >> From ports, openbsd version is 6.2. >> >> Changing settings works from .htaccess works. But this is not the option, I >> need to change some php admin flags that can be changed only from httpd.conf >> or system-wide php.ini. >> >> >> > > Hello again! I was able to fix this issue by commenting out <ifmodule> lines. > I don't know why but it helped! This is strange, because the same config with > ifmodule lines worked well in linux. >
Hello again and sorry for the noise. I have finally understood where was real problem. I am using includes in my config files of apache. It seems that I have included my virtualhosts definitions before php module definition! So the <ifmodule mod_php7.c> conditions never been met, and so php options was not changing. Flipping my includes in httpd.conf resolved everything. By the way, why does we use «mod_php7.c» in configs? Here is the included in openbsd php.conf file: LoadModule php7_module /usr/local/lib/php-7.0/libphp7.so <IfModule mod_php7.c> AddType application/x-httpd-php .php .phtml .php3 AddType application/x-httpd-php-source .phps # Most php configs require this DirectoryIndex index.php </IfModule> First we load module named php7_module and after that we are trying to check not the name of module, but some .c file? Isn’t it more logical to check like this: <IfModule php7_module> ?