Project not listening to PHP7.2-FPM conf
up vote
0
down vote
favorite
I have a Linux Mint 19 setup that's running Apache2 and two version of PHP-FPM:
- 7.1
- 7.2
I got my 7.1 site up and running but now I'm trying to get my other site to run on php7.2 but it's not working and I'm not sure how to resolve. It's loading PHP7.1 despite the configuration I've added.
Site .htaccess file looks like this:
AddHandler php72-fcgi .php
And my vhost:
<VirtualHost *:80>
ServerName proj2.local
DocumentRoot /var/www/proj2
<Directory /var/www/proj2>
# This is to forward all PHP to php-fpm.
<FilesMatch .php$>
SetHandler "proxy:fcgi://127.0.0.1:9500"
SetHandler application/x-httpd-php
</FilesMatch>
Options Indexes FollowSymLinks
AllowOverride All
</Directory>
</VirtualHost>
And my www.conf has only one change in it (from default):
listen = 127.0.0.1:9500
I ran after the changes:
$ sudo service apache2 restart
$ sudo service php7.2-fpm restart
I created a info.php in proj2 directory and it displays information for PHP7.1. Why is it pointing to PHP7.1 and not PHP7.2?
php apache fpm
add a comment |
up vote
0
down vote
favorite
I have a Linux Mint 19 setup that's running Apache2 and two version of PHP-FPM:
- 7.1
- 7.2
I got my 7.1 site up and running but now I'm trying to get my other site to run on php7.2 but it's not working and I'm not sure how to resolve. It's loading PHP7.1 despite the configuration I've added.
Site .htaccess file looks like this:
AddHandler php72-fcgi .php
And my vhost:
<VirtualHost *:80>
ServerName proj2.local
DocumentRoot /var/www/proj2
<Directory /var/www/proj2>
# This is to forward all PHP to php-fpm.
<FilesMatch .php$>
SetHandler "proxy:fcgi://127.0.0.1:9500"
SetHandler application/x-httpd-php
</FilesMatch>
Options Indexes FollowSymLinks
AllowOverride All
</Directory>
</VirtualHost>
And my www.conf has only one change in it (from default):
listen = 127.0.0.1:9500
I ran after the changes:
$ sudo service apache2 restart
$ sudo service php7.2-fpm restart
I created a info.php in proj2 directory and it displays information for PHP7.1. Why is it pointing to PHP7.1 and not PHP7.2?
php apache fpm
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a Linux Mint 19 setup that's running Apache2 and two version of PHP-FPM:
- 7.1
- 7.2
I got my 7.1 site up and running but now I'm trying to get my other site to run on php7.2 but it's not working and I'm not sure how to resolve. It's loading PHP7.1 despite the configuration I've added.
Site .htaccess file looks like this:
AddHandler php72-fcgi .php
And my vhost:
<VirtualHost *:80>
ServerName proj2.local
DocumentRoot /var/www/proj2
<Directory /var/www/proj2>
# This is to forward all PHP to php-fpm.
<FilesMatch .php$>
SetHandler "proxy:fcgi://127.0.0.1:9500"
SetHandler application/x-httpd-php
</FilesMatch>
Options Indexes FollowSymLinks
AllowOverride All
</Directory>
</VirtualHost>
And my www.conf has only one change in it (from default):
listen = 127.0.0.1:9500
I ran after the changes:
$ sudo service apache2 restart
$ sudo service php7.2-fpm restart
I created a info.php in proj2 directory and it displays information for PHP7.1. Why is it pointing to PHP7.1 and not PHP7.2?
php apache fpm
I have a Linux Mint 19 setup that's running Apache2 and two version of PHP-FPM:
- 7.1
- 7.2
I got my 7.1 site up and running but now I'm trying to get my other site to run on php7.2 but it's not working and I'm not sure how to resolve. It's loading PHP7.1 despite the configuration I've added.
Site .htaccess file looks like this:
AddHandler php72-fcgi .php
And my vhost:
<VirtualHost *:80>
ServerName proj2.local
DocumentRoot /var/www/proj2
<Directory /var/www/proj2>
# This is to forward all PHP to php-fpm.
<FilesMatch .php$>
SetHandler "proxy:fcgi://127.0.0.1:9500"
SetHandler application/x-httpd-php
</FilesMatch>
Options Indexes FollowSymLinks
AllowOverride All
</Directory>
</VirtualHost>
And my www.conf has only one change in it (from default):
listen = 127.0.0.1:9500
I ran after the changes:
$ sudo service apache2 restart
$ sudo service php7.2-fpm restart
I created a info.php in proj2 directory and it displays information for PHP7.1. Why is it pointing to PHP7.1 and not PHP7.2?
php apache fpm
php apache fpm
asked Nov 8 at 14:17
treyBake
2,6552830
2,6552830
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53209591%2fproject-not-listening-to-php7-2-fpm-conf%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password