Control Web Panel

WebPanel => CentOS-WebPanel Bugs => Topic started by: Dizzy on December 16, 2024, 04:11:39 PM

Title: CentOS 9 stream CWP installation problem
Post by: Dizzy on December 16, 2024, 04:11:39 PM
Hi there
On the server already installed php+mysql (mariadb) and webpages working well.
But I can`t finish cwp installation.
When I check the server for suitability for installing the panel using the command:
curl http://dl1.centos-webpanel.com/files/s_scripts/sinfo.sh|sh
I got next:
Apache PHP info:
sh: line 46: /usr/local/bin/php: No such file or directory

Apache starts script check:
grep: /etc/init.d/httpd: No such file or directory

but PHP and Apache are working well.

Who knows how to solve this problem?
Title: Re: CentOS 9 stream CWP installation problem
Post by: overseer on December 16, 2024, 04:57:08 PM
Start over with a fresh installation and run CWP migration to move the sites over. (It will be faster than trying to troubleshoot a broken installation.)
Title: Re: CentOS 9 stream CWP installation problem
Post by: Dizzy on December 16, 2024, 05:39:12 PM
Start over with a fresh installation and run CWP migration to move the sites over. (It will be faster than trying to troubleshoot a broken installation.)

You do not understand:) I create a new droplet and try install a clear server with cwp for creation a new websites
Title: Re: CentOS 9 stream CWP installation problem
Post by: cyberspace on December 16, 2024, 06:41:45 PM
On the server already installed php+mysql (mariadb) and webpages working well.
But I can`t finish cwp installation.

The server must be clean without  nginx, apache, php, mysql/mariadb.
Title: Re: CentOS 9 stream CWP installation problem
Post by: Dizzy on December 16, 2024, 07:51:53 PM
On the server already installed php+mysql (mariadb) and webpages working well.
But I can`t finish cwp installation.

The server must be clean without  nginx, apache, php, mysql/mariadb.

But when I try install on clear server I got much more problems :)
Title: Re: CentOS 9 stream CWP installation problem
Post by: Starburst on December 17, 2024, 05:19:39 AM
You can't have Anything installed prior to CWP, or is will not work.

I posted in the forums I quick little list of what to install and how to install CWP on AlmaLinux 9.

Can report it it here if needed.
Title: Re: CentOS 9 stream CWP installation problem
Post by: Dizzy on December 17, 2024, 08:18:48 AM
You can't have Anything installed prior to CWP, or is will not work.

I posted in the forums I quick little list of what to install and how to install CWP on AlmaLinux 9.

Can report it it here if needed.

Please post it here. I'm looking for a list like this.
Title: Re: CentOS 9 stream CWP installation problem
Post by: Starburst on December 17, 2024, 08:34:18 AM
From a clean AL9 install:

If there are a few packages already installed, don't worry.

Code: [Select]
dnf install dnf-plugins-core
Code: [Select]
dnf install elrepo-release epel-release -y
Code: [Select]
crb enable
Code: [Select]
dnf --refresh update
Code: [Select]
dnf install nano wget ipset ebtables iptables ipset-service uuid uuid-devel libuuid-devel m4 pcre pcre-devel zlib-devel perl-DBD-MySQL perl-IPC-Cmd perl-Pod-Html perl-Sys-Hostname perl-libwww-perl.noarch perl-LWP-Protocol-https.noarch perl-GDGraph libtool s-nail htop sysstat python3-perf ImageMagick ImageMagick-devel nmap make -y
Code: [Select]
dnf --refresh update
Code: [Select]
dnf install clamav* clamd
Code: [Select]
dnf clean all
Code: [Select]
cd /usr/local/src
Code: [Select]
wget http://centos-webpanel.com/cwp-el9-latest
Code: [Select]
sh cwp-el9-latest
Code: [Select]
dnf install spamassassin amavis
Code: [Select]
dnf install php-cli libsodium libsodium-devel php-sodium php-pecl-zip  php-pecl-mailparse php-mbstring php-pear php-devel php-pecl-imagick
Code: [Select]
pecl channel-update pecl.php.net
After that is more customizing how you want the server.
Title: Re: CentOS 9 stream CWP installation problem
Post by: Dizzy on December 17, 2024, 09:42:50 AM
Thanks a lot!
Got first error :)
[root@srv ~]# dnf install elrepo-release epel-release -y
Last metadata expiration check: 0:02:24 ago on Tue 17 Dec 2024 09:39:25 AM UTC.
No match for argument: elrepo-release
Error: Unable to find a match: elrepo-release
Title: Re: CentOS 9 stream CWP installation problem
Post by: overseer on December 17, 2024, 06:19:47 PM
Going back to your thread title, hopefully you are not trying to use CentOS 9 Stream... We are recommending AlmaLinux 9 for production server use!
Title: Re: CentOS 9 stream CWP installation problem
Post by: Starburst on December 17, 2024, 06:24:57 PM
Yea, install AlmaLinux 9, not CentOS stream.
Sounds like there's a pretty major config error somewhere.

Code: [Select]
dnf install elrepo-release epel-release -y
Those are 2 standard repos, especially EPEL that CWP needs to install.
That code line of course uses dnf, and the -y is answering yes, to install them.

Then once you have EPEL installed, and run dnf --refresh update, it will update itself.

Are you behind a NAT, or is this a public server?
Title: Re: CentOS 9 stream CWP installation problem
Post by: Dizzy on December 17, 2024, 08:05:26 PM
I use the same CentOs 9 stream :) I try to build a webserver on https://cloud.digitalocean.com/. And I do not have any experience with AlmaLinux :)
Title: Re: CentOS 9 stream CWP installation problem
Post by: Starburst on December 18, 2024, 12:30:00 AM
That's probably why you are having problems connecting to ELRepo & EPEL.

digital ocean is a hacker haven and have been blacklisted on allot of networks.

I know ELRepo has Vultr's ASN blocked.
Probably do with do also.