multiPHP version w Vhost - directive PHPINIDir not working
Posted: 29. May 2019 23:53
Hi,
I configured my apache to have php 56.and 7.2 running together.
I created a VHost where I want to have 7.2 running -> fine
Now, I would like to use a specific php.ini . I use the option
but it is not working
what am I missing ?
here is the Vhost config
ErrorLog ${APACHE_LOG_DIR}/error80.log
CustomLog ${APACHE_LOG_DIR}/access80.log combined
PHPINIDir /var/www/html2
php_value session.save_path /tmp
Thanks !
I configured my apache to have php 56.and 7.2 running together.
I created a VHost where I want to have 7.2 running -> fine
Now, I would like to use a specific php.ini . I use the option
but it is not working
what am I missing ?
here is the Vhost config
- Code: Select all
DocumentRoot /var/www/html2
<Directory "/var/www/html2">
allow from all
Options None
Require all granted
</Directory>
<FilesMatch \.php$>
# Apache 2.4.10+ can proxy to unix socket
SetHandler "proxy:unix:/var/run/php/php7.2-fpm.sock|fcgi://localhost/"
</FilesMatch>
ErrorLog ${APACHE_LOG_DIR}/error80.log
CustomLog ${APACHE_LOG_DIR}/access80.log combined
PHPINIDir /var/www/html2
php_value session.save_path /tmp
Thanks !