CyberPanel Community

ClosedChange default php to v8.0

10 replies
jo
josephgodwinke #2

Hello @MyIDKaTePe

You need to create a symbolic link to version 8.0 e.g.

ln -s /usr/local/lsws/lsphp80/bin/php /usr/bin/php

This sets default php for CyberPanel installation as 8.0.x

jo
josephgodwinke #4

Run

# see all php processes running
ps -aux | grep php
# kill them the linux way
killall -9 php 
# OR sth more complex
ps -efw | grep php | grep -v grep | awk '{print $2}' | xargs kill

Then try link php8.0 again

MK
Mirza Khadnezar S [sick] #5


still same…

why not added menu on cyberpanel admin dashboard to change default php version?

jo
josephgodwinke #6

Run this first then symbolic link

rm -Rf /usr/bin/php
MK
Mirza Khadnezar S [sick] #9

already do that… see the screenshot

jo
josephgodwinke #10

You can force if symlink exists like this

# ln -s source_file symbolic_link
ln -sf /usr/bin/php /usr/local/lsws/lsphp80/bin/php
MK
Mirza Khadnezar S [sick] #11

it’s working…

but

[root@xxxx ~]# php -v
-bash: php: command not found

Sign in to reply