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.
1681
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."
1682
CentOS 6 Problems / Re: Can't update CWP Files (The encoded file expired) (can't update CWP files)
« on: March 05, 2023, 03:28:46 AM »
Yes, anything under /usr/local/cwpsrv you will have to clear the immutable bit.
Code: [Select]
chattr -i <file>
1683
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.)
1684
CentOS 7 Problems / Re: PHP versiyon error
« on: March 04, 2023, 10:21:45 PM »
Anything under /usr/local/cwpsrv runs under CWP's custom, untouchable PHP 7.2 (labeled as PHP 7.1). You have to install elsewhere to have control over it.
1685
E-Mail / Re: Roundcube update not working due to php version of cwpsrv
« on: March 04, 2023, 10:20:14 PM »
You should download the complete source from roundcube.net into your virtual host and follow the installation instructions. (It will entail creating a MySQL or comparable database.) Hopefully your PHP 7.4 version is compiled with all the required modules and options! But the installer will check that for you as well.
1686
How to / Re: CI / CD: CWP & Git
« on: March 04, 2023, 10:17:39 PM »
I think that's beyond the scope of what CWP is trying to accomplish. It aims to be an affordable LAMP/LEMP hosting control panel for basic web sites, with reseller features and client user panels. So probably best to look elsewhere for what you're trying to do.
1687
Other / Re: How to protect my files against download
« on: March 04, 2023, 10:15:17 PM »
[idea]I know, you can protect your php code with IonCube!
(Oh wait, the CWP Devs try that...)
(Oh wait, the CWP Devs try that...)
1688
E-Mail / Re: Roundcube update not working due to php version of cwpsrv
« on: March 04, 2023, 10:11:15 PM »
I imagine you would have to install it under a virtual host, not system-wide, so it meets the PHP requirements.
1689
E-Mail / Re: SMTP Error 451
« on: March 04, 2023, 10:08:28 PM »
Postfix has its own mail size delivery and quota settings. Dovecot does also. Welcome to the rabbit hole! This gets deep, FAST.
1690
Updates / Re: ClamAV update error
« on: March 04, 2023, 10:04:01 PM »
And you have ownership as clamupdate:clamupdate and NOT as root?
Code: [Select]
[root@srv]# ls -al /var/lib/clamav/
total 355648
drwxr-xr-x. 2 clamupdate clamupdate 80 Mar 4 15:40 .
drwxr-xr-x. 70 root root 4096 Feb 4 08:23 ..
-rw-r--r-- 1 clamupdate clamupdate 1430528 Feb 23 05:40 bytecode.cld
-rw-r--r-- 1 clamupdate clamupdate 192257024 Mar 4 03:40 daily.cld
-rw-r--r-- 1 clamupdate clamupdate 69 Nov 4 2021 freshclam.dat
-rw-r--r-- 1 clamupdate clamupdate 170479789 Sep 22 2021 main.cvd
1691
MySQL / Re: problem with start Mysql
« on: March 04, 2023, 09:55:16 PM »
Unless something changed recently, the Reset MySQL Root Password script was woefully out of date. Change it manually on the command line and check the 2 referenced files to make sure they agree with the newly reset password:
Code: [Select]
/usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php
/root/.my.cnf
1692
CentOS-WebPanel Bugs / Re: Emails screen not loading
« on: March 04, 2023, 09:51:52 PM »
Maybe the client made an e-mail address with an invalid character, revealing an unescaped bug in CWP?
https://stackoverflow.com/questions/17487058/how-to-solve-json-parse-bad-control-character-in-string-literal-in-this-code
https://stackoverflow.com/questions/17487058/how-to-solve-json-parse-bad-control-character-in-string-literal-in-this-code
1693
Apache / Re: Not all sites (Wordpress) are accessible
« on: March 04, 2023, 09:20:54 PM »
And you saw this, I hope?
https://serverfault.com/questions/775855/how-to-configure-apache-workers-for-maximum-concurrency
I would say off the cuff that you may want to consider running just Nginx and dump Apache if you are facing this type of problem regularly. Nginx is tuned for this style workload.
https://serverfault.com/questions/775855/how-to-configure-apache-workers-for-maximum-concurrency
I would say off the cuff that you may want to consider running just Nginx and dump Apache if you are facing this type of problem regularly. Nginx is tuned for this style workload.
Quote
Nginx, how do you eat an elephant? One bite at a time!
1694
How to / Re: Cookie free subdomain, how?
« on: March 04, 2023, 09:16:56 PM »
You don't need cookies unless you engineer the need into your code. DNS and apache can direct traffic appropriately otherwise...
1695
Information / Re: Autoresponder no edit no delete
« on: March 04, 2023, 09:15:34 PM »
If you self-host the image (anywhere), the [img] tag works to display it. (I can appreciate why post attachments are disabled here -- esp. since the forum software is 10 years out of day and is rife with bugs and security problems.)
