Install error for centos 8

Setting up PHP session storage path...

--2021-11-28 08:20:04--  https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/CPScripts/setup_php_sessions.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.111.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3095 (3.0K) [text/plain]
Saving to: ‘/root/php_session_script.sh’

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

2021-11-28 08:20:04 (22.9 MB/s) - ‘/root/php_session_script.sh’ 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
#!/bin/bash
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
./cyberpanel.sh: 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