CentOS 9 stream CWP installation problem

Started by Dizzy, December 16, 2024, 04:11:39 PM

Previous topic - Next topic

Dizzy

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?

overseer

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.)

Dizzy

Quote from: 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.)

You do not understand:) I create a new droplet and try install a clear server with cwp for creation a new websites

cyberspace

Quote from: Dizzy on December 16, 2024, 04:11:39 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.

Dizzy

Quote from: cyberspace on December 16, 2024, 06:41:45 PM
Quote from: Dizzy on December 16, 2024, 04:11:39 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 :)

Starburst

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.

Dizzy

Quote from: 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.

Please post it here. I'm looking for a list like this.

Starburst

From a clean AL9 install:

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

dnf install dnf-plugins-core

dnf install elrepo-release epel-release -y

crb enable

dnf --refresh update

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

dnf --refresh update

dnf install clamav* clamd

dnf clean all

cd /usr/local/src

wget http://centos-webpanel.com/cwp-el9-latest

sh cwp-el9-latest

dnf install spamassassin amavis

dnf install php-cli libsodium libsodium-devel php-sodium php-pecl-zip  php-pecl-mailparse php-mbstring php-pear php-devel php-pecl-imagick

pecl channel-update pecl.php.net

After that is more customizing how you want the server.

Dizzy

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

overseer

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!

Starburst

Yea, install AlmaLinux 9, not CentOS stream.
Sounds like there's a pretty major config error somewhere.

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?

Dizzy

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 :)

Starburst

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.

KGIII

Quote from: 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.

<snip>

The directions you gave actually worked. The directions in the installation guide did nothing of the sort.

Thanks!

Is there a reason why the given default instructions don't work? I tried them many times, following them exactly each time (other than the first try). Each time was on a clean server. Each one was freshly installed.

Ah well. I didn't want to necropost, bringing up an old thread, but I figured bringing some light to this being a viable method to get CWPPro installed.

ghoste

Quote from: 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.

dnf install dnf-plugins-core

dnf install elrepo-release epel-release -y

..............................

Hello everyone,

Can anyone help me with this issue? I've tried 5–6 times on fresh VPS installations with AlmaLinux 9 Minimal. After installing CWP Panel, I try to upgrade MariaDB, but it always fails. I followed the procedures and steps shared by Sandeep B. and Starburst, but no luck so far.

If I use AlmaLinux 8 instead, the MariaDB upgrade works correctly, unlike on AlmaLinux 9. I'm not saying everything is perfect on AlmaLinux 8, but at least the MariaDB upgrade process completes successfully there.

Also, regarding the CWP installation on AlmaLinux 9: nowhere on the official website does it clearly mention that all the additional packages and configurations shared here on the forum need to be installed manually.

Wouldn't it make more sense to update the sh cwp-el9-latest installation script so it installs newer and fully compatible versions of Apache, Nginx, MariaDB, Postfix, Dovecot, Roundcube, and the other required services by default?

Honestly, every time we open a more serious ticket with the CWP team, it gets closed quickly and we are redirected to the forum or support email, and then asked to leave a review for the response or "solution" we received. 🙂

What do you guys think?