It wasnât resolved, at least it isnât in the latest stable now.
up to 2.3.1 latest version
then change the php to 8.0
reboot server
let me know
this is not a solution
but we are trying helping you out step by step
I tried. Updated cyberpanel last night but still unable to change php version.
What can I try next? I am doing a website migration but the export plugin doesn ot support this php version. Both add-on domain and main domain do not change since I updated cyberpanel 2 weeks ago
[EDIT] I have changed Vhost php version and now it worked
This saved me yeah. @Hulst88
You are right, editing the Vhost individually works!
But changing it using any of the two options CP provides does not work for 8.0 or up.
It works for 7.4 sometimes.
And yes you would then also need to go into Edit PHP configuration
to restart PHP.
Perhaps that should change, when you change PHP, it should restart PHP (At least for that vhost)
Here are the options that donât work.
Option 1:
Option 2:
actually i have already post about this procedure
and request if developer can put 1 line to auto restart php after changed success
If you know the line and place, i can make a pull.
unfortunately
i dont know
here the link about my post Prevent 404 error after add website - #2 by shoaibkk
maybe already put on developer roadmap
I checked GitHub and found only 7.3 in the apachevhosts.
Not sure how related that is.
cyberpanel/ApacheVhosts.py at v2.3.2-dev ¡ usmannasir/cyberpanel (github.com)
yeah⌠somewhere⌠at here⌠diemrw or someone talk about every config is using 7.3
I just found the solution (workaround).
Change the version in vHost Conf:
Choose one:
path /usr/local/lsws/lsphp72/bin/lsphp
path /usr/local/lsws/lsphp73/bin/lsphp
path /usr/local/lsws/lsphp74/bin/lsphp
path /usr/local/lsws/lsphp80/bin/lsphp
path /usr/local/lsws/lsphp81/bin/lsphp
save
Go to Change PHP and change the version in the one you choose in vHost Conf.
And click Change PHP
Itâs not nice, but it works as a workaround! Hope they will fix this!
Changing the PHP from the domain or subdomain does not change the Vhost file at all.
The only solution is to do what @phpfigureout said over, where you replace the line with the working one, then save and check again.
Also, thereâs a problem with Php 8.1, it just loads blank.
8.0 works fine.
Iâm having this problem too, vhost config of the domain looks good but wordpress is showing old php.
CP: 2.3.2
Commit: 60d048f82acbf3a35b626f0f33782c4c73e77b86
LiteSpeed Enterprise
Iâam having the same problem.
Vhost config shows the main Site is using Php 8.0, but php version is not changing subdomains version.
On the other hand, php current version should be shown automatically when entering the option to change it. Right now, you do not know what is the current one for main site or subdomains unless you run a script on each site.
Also, Php8.1 version seems not to be loaded in CP. It is just displayed as an option but no settings are displayed. It is not available yet right?
I have the same problem, but itâs not that WordPress PHP isnât updated, it is. Only does not show in the WordPress â List WordPress â WordPress Manager.
I have WordPress 8.0 installed on this site, checked in WordPress, which is correct, I set it to PHP 8.0
But this is what the manager shows:
Current Version: 2.3 ( Up-to-date: 13-10-2022)
A bit confusing, as now youâre never shure.
Just throwing this out there. I had the same problem on my multisite install. Make sure youâre updating the PHP path in the vhost for the domain youâre trying to affect. Basically, pull up the List Domains, click the Launch button next to your domain and edit the vhost there.
@usmannasir It seems that php 8.2 is missing files in /usr/local/lsws/lsphp82/bin
Do you know if thereâs an easy command to re-install or make these files?
8.1:
8.2:
By just running the uninstall and install command again depending upon the OS.
I saw that lsphp82.x86_64 8.2.16-2.el8 @litespeed-update wasnât installed.
Installing it fixed PHP 8.2