Change PHP Version on virtual host

Operating system: Centos
OS version: 7

Hi There,

When I change PHP version from server configuration → php options in some virtual hosts it not changed
and some work for them,

I tried to remove cache restart apache, and change from CGI to fpm but the PHP version not updated

PHP 7.3.20 - phpinfo() still in 7.3

I faced this problem more than one time

Solved by alter manually
this file /etc/httpd/conf/httpd-le-ssl.conf
and edit this line
FCGIWrapper /home/demo/fcgi-bin/php7.3.fcgi .php
to which php version that i need
FCGIWrapper /home/demo/fcgi-bin/php7.4.fcgi .php

Why do you have that file?

I don’t get you which file

This file, Joe meant.

well manual tweaks and settings… perhaps human forget the changes in config files… who knows, you know how its done, new version in dev channel is released they do whatever it takes to update and even not thinking about it… - then when issue is ahead, - we all know where it going… its simple, its mod outside of virtualmin… best advice would be leave it…

What should be ?
or what I made wrong to correct it

Did I made anything wrong ? please advice

That file would not exist if you were using Virtualmin to manage Let’s Encrypt certs and configuration, it is an artifact of running certbot manually and choosing to have it create the configuration for you. You did something outside of the awareness of Virtualmin, and it broke things.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.