CyberPanel Community

How to change PHP version for web

Ta
Tadeusz #1

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 xxx@gmail.com
    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 xxx@gmail.com
    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>
6 replies
jo
josephgodwinke #2

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

Ta
Tadeusz #4

vhost on my subdomain.
image

jo
josephgodwinke #5

Have you tried to change 72 to 74 ?

Ta
Tadeusz #7

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?

jo
josephgodwinke #8

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

Sign in to reply