Install error for centos 8

Setting up PHP session storage path...

--2021-11-28 08:20:04--
Resolving (,,, ...
Connecting to (||:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3095 (3.0K) [text/plain]
Saving to: ‘/root/’

/root/               100%[=====================================================================================>]   3.02K  --.-KB/s    in 0s

2021-11-28 08:20:04 (22.9 MB/s) - ‘/root/’ saved [3095/3095]

ls: cannot access '/usr/local/lsws': No such file or directory
ls: cannot access '/usr/local/lsws': No such file or directory
Redirecting to /bin/systemctl restart lsws.service
Failed to restart lsws.service: Unit lsws.service not found.
lsphp: no process found
Installing PHP Session cleaning cron
Checking cleansessions file
for version in $(ls /usr/local/lsws|grep lsphp); do echo ""; echo "PHP $version"; session_time=$(/usr/local/lsws/${version}/bin/php -i |grep -Ei 'session.gc_maxlifetime'| grep -Eo "[[:digit:]]+"|sort -u); find -O3 "/var/lib/lsphp/session/${version}" -ignore_readdir_race -depth -mindepth 1 -name 'sess_*' -type f -cmin "${session_time}" -delete; done
grep: /usr/local/lsws/lsphp*: No such file or directory
sed: no input files
mkdir: cannot create directory ‘/usr/local/lsws/cyberpanel-tmp’: No such file or directory
./ line 1501: cd: /usr/local/lsws/cyberpanel-tmp: No such file or directory

Please use Almalinux 8. Also you have provided no other details for us to check

Please suggest me a server. I have run cyberpanel on centos 7 and centos 8 before. I did not encounter any problems. We use it heavily. I’ve never used Almalinux before. Now Cyberpanel can only be used with almalinux ?

It is not like cyberpanel runs only in almalinux. Usman suggested almalinux because it’s a fork of centos8 and developed by cloudlinux team. As centos is nearing end of life, almalinux is taking the legacy of centos forward.

With regards to your issue, you havent provided much details about the error. Also, centos 7 will have many issues with repos as the repos are getting outdated with no updates lately.

With the partial log provided, it seems lsws is not installed on your server for various reasons. One major reason might be that your server has some root permission issue.

Would you let me know who is your server provider? And how are you installing cyberpanel? Is it via hosting provider’s cyberpanel image or installing from ssh manually?

1 Like