Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - overseer

Pages: 1 ... 75 76 [77] 78 79 ... 91
1141
Information / Re: CentOS Configuration File Locations (CWP)
« on: March 06, 2023, 07:01:20 AM »
That's a pretty vast question... I built my first CWP server and muddled around with the configs for roughly 2 weeks until I got things to a workable, satisfied state. It actually wasn't too bad because my years of cPanel experienced gave me a good reference point. Then I was able to build 2 more CWP servers in a matter of a few hours once that initial learning curve had been done. And then I was able to shuffle some accounts back & forth between them to better load balance and take advantage of more resources on one server.

1142
CentOS 8 Problems / Re: How to install docker on cwp?
« on: March 06, 2023, 06:56:29 AM »
Agreed, it's beyond a LAMP/LEMP stack + administration & user control panel -- that is what CWP is, so best to look elsewhere for a Docker platform.

1143
CentOS 8 Problems / Re: the cwp dosnt recive emails
« on: March 06, 2023, 06:55:00 AM »
Check your server's reputation with a multi-RBL checking service:
https://multirbl.valli.org

1144
CentOS 8 Problems / Re: nginx won't start after server reboot
« on: March 06, 2023, 06:52:11 AM »
But did you fix this problem:
Running CentOS 8 Stream with latest CWP Control Panel software.

1145
Information / Re: Cluster CWP (Multi-Server Manager) Availability
« on: March 06, 2023, 06:50:04 AM »
Sing it with me now:

99 bugs in the code...
You take one down, patch it up...
108 bugs in the code...

1146
Installation / Re: AlmaLinux
« on: March 06, 2023, 06:48:16 AM »
@overseer nagging doesn't always work.
I meant to nag a customer that won't upgrade their site. I do have some sway there, as I could force the issue, offer to help them upgrade, or threaten to drop them if they don't get onto this decade...

But yeah, not sure that nagging is going to get the CWP gears to move any faster or differently than they are...

1147
How to / Re: Where is CWP login page html
« on: March 06, 2023, 06:45:48 AM »
not if you
Code: [Select]
chattr -R +i /usr/local/cwpsrv/htdocs/admin/design/css

1148
Migration from other control panels / Re: BUG migration from CPanel
« on: March 06, 2023, 06:43:33 AM »
That script was done during the COVID quarantine lockdown in 2020. I took the opportunity to migrate all my cPanel servers to CWP :)
I reported the bugs I encountered and submitted the script to the dev team, so hopefully they applied some of that to the migration script.

Yes, the vps1.domain.com was an old hostname from cPanel. Funny, I had stepped from regular hosting, to VPS, to advanced dedicated, then stepped down to dedicated, then down to a high end VPS at the end of my cPanel time. So I had about 5 mixed hostnames in the cur directories, so I wanted to normalize them on the new server under CWP. So I only showed one example in the posted script. In reality I had 5 hostnames to contend with!

1149
CentOS 7 Problems / Re: Migration CWP -> CWP doesn't work...
« on: March 06, 2023, 06:38:46 AM »
For a successful CWP -> CWP Migration, you have to stand on your head, pat your belly, and rub your feet at the same time in order to make it work. But actually, I just had the opportunity to do a CWP -> CWP migration, so here was my solution to the various unhelpful errors (such as for API TOKEN):
Disable the firewall (CSF & LDF) on both servers.
On both servers, reset the r00t password to be 8 characters or fewer.
In
Code: [Select]
/etc/ssh/sshd_config set:
Code: [Select]
PermitRootLogin yes
StrictModes no
Restart sshd:
Code: [Select]
service sshd restartOn the source server, set up the API key (CWP Settings > API Manager) for CWP Migration using the default CWP template.
On the receiving server, use the interface in User Accounts > CWP->CWP Migration.
After successfully migrating the accounts, revert all changes to your SSH configuration, restart the ssh daemon, reset the r00t passphrases to strong ones, and re-enable the firewalls.

1150
High Performance / Re: Unable to retrieve Apache Server Status
« on: March 05, 2023, 04:33:06 AM »
Do you have mod_status installed & enabled?
https://www.linode.com/community/questions/2/solved-how-do-i-enable-the-server-status-page-in-apache
I don't see it on a default CWP install:
Code: [Select]
ls -al /usr/local/apache/modules

1151
PHP / Re: Install PHP 8.X - PHP Version Switcher
« on: March 05, 2023, 04:25:34 AM »
...it currently has 1GB RAM, I will be increasing it to 2GB RAM and testing again.
Ouch! And I thought my 16GB server was tight by modern standards! But several of my CentOS VMs only have 4-5GB allocated to them, so it is doable to provision them thin.

1152
Apache / Re: Way to set http and https on other ports as 80 and 443 ?
« on: March 05, 2023, 04:08:53 AM »
A cleaner way might be with iptables; I've done this on a cPanel server before:
nano /etc/sysconfig/iptables
Add:
Code: [Select]
-A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT

-A INPUT ! -i lo -p tcp -m conntrack --ctstate NEW -m tcp --dport 8080 -j ACCEPT

COMMIT

-A PREROUTING -p tcp --dport 8080 -j REDIRECT --to-ports 80

COMMIT
Then save & restart:
Code: [Select]
iptables-save
systemctl restart iptables

1153
Migration from other control panels / Re: BUG migration from CPanel
« on: March 05, 2023, 03:35:18 AM »
After a cPanel account import (and mail rsync), I had to run these 2 scripts to fix the mail import and permissions:
Code: [Select]
#!/bin/bash
# fix CWP Mail import
for user in $(ls /var/vmail/domain.com)
do
cd /var/vmail/domain.com/$user
find  .  -type d -exec chmod 755 {} \;
find  .  -type f -exec chmod 644 {} \;
rename 'vps1.domain.com' 'new.hostname.com' .*/cur/*
rename 'vps1.domain.com' 'new.hostname.com' cur/*
echo "fixed $user"
done
Fix permissions on $HOME:
Code: [Select]
#!/bin/bash
# fix CWP User $HOME

chown $1.$1 /home/$1
chmod 755 /home/$1
find  /home/$1/public_html  -type d -exec chmod 755 {} \;
find  /home/$1/public_html  -type f -exec chmod 644 {} \;
rm -rf /home/$1/home
echo "fixed $1 account."

1154
Yes, anything under /usr/local/cwpsrv you will have to clear the immutable bit.
Code: [Select]
chattr -i <file>

1155
Installation / Re: CentOS migration plan for 2024?
« on: March 05, 2023, 03:27:09 AM »
Based on Starburst's recommendation and other reading I have done, AlmaLinux 8 is my plan -- around the same timeframe as you. (Stream is lock-in, no way out if you go that route... Rocky is a rather rocky road, from what I hear.)

Pages: 1 ... 75 76 [77] 78 79 ... 91