apache - Apache2.4 - PHP 5.6 and PHP7.1 running at the same time -
i'm looking run both php 5.6 , 7.1 in development server (debian 9), apache. know nginx can handle this, need apache.
here confs
# main configuration file, running php7.1 <virtualhost xx.xx.xx.xx:80> servername www.mydomain.com serveralias mydomain.com documentroot /var/www/mydomain.com/html </virtualhost> <virtualhost xx.xx.xx.xx:80> servername xx.xx.xx.xx <directory /> deny </directory> </virtualhost> # php 5.6 <virtualhost xx.xx.xx.xx:80> servername foo.mydomain.com documentroot /var/www/foo.mydomain.com/html <filesmatch \.php$> sethandler "proxy:unix:/var/run/php/php5.6-fpm.sock" </filesmatch> </virtualhost>
the 7.1 working, while 5.6 returns 404. !
similar problem have been asked. go link. please read on given link. may help. run multiple php version on apache serve using fast-cgi
Comments
Post a Comment