How to change PHP version for web

I can’t change PHP


CP 2.3.4
Centos 8
i try
killall lsphp
systemctl restart lsws
reboot etc. Nothing happend.
In my Prestashop i steel see PHP 7.2.34

<VirtualHost *:80>

    ServerName xxx.pl
    ServerAlias www.xxx.pl
    ServerAdmin [email protected]
    SuexecUserGroup xxx4749 xxx4749
    DocumentRoot /home/xxx.pl/public_html
    Alias /.well-known/acme-challenge /usr/local/lsws/Example/html/.well-known/acme-challenge
    CustomLog /home/xxx.pl/logs/xxx.pl.access_log combined
    AddHandler application/x-httpd-php74 .php
    <IfModule LiteSpeed>
        CacheRoot lscache
        CacheLookup on
    </IfModule>

</VirtualHost>

<VirtualHost *:443>

    ServerName xxx.pl
    ServerAlias www.xxx.pl
    ServerAdmin [email protected]
    SuexecUserGroup xxx4749 xxx4749
    DocumentRoot /home/xxx.pl/public_html
    CustomLog /home/xxx.pl/logs/xxx.pl.access_log combined
    <IfModule LiteSpeed>
            CacheRoot lscache
            CacheLookup on
        </IfModule>
        SSLEngine on
    SSLVerifyClient none
    SSLCertificateFile /etc/letsencrypt/live/xxxs.pl/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/xxx.pl/privkey.pem
    AddHandler application/x-httpd-php74 .php
</VirtualHost>

Hello @Tadeusz

image

On that child domain list do you see the table title Launch click it on respective cyberpanel icon and change php in website manager

Hello @josephgodwinke
i did as you suggested, then i did server restart and i still see PHP 7.2 :frowning:

vhost on my subdomain.
image

Have you tried to change 72 to 74 ?

Shouldn’t that just change for me?
Automatically?
After manual change, get the intended effect. But it’s unintuitive.
Then, what’s the point of PHP’s reversion feature if it doesn’t work?

It should you could try run cyberpanel upgrade script but we are trying to figure out where the issue is to help everyone including yourself