Changing PHP version not working on latest 2.1.2 update

here the link about my post :frowning: 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

Did you guys find a way to change the PHP version on subdomains? @usmannasir

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!

1 Like

@usmannasir

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.