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 ... 64 65 [66] 67 68 ... 80
976
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

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

978
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

979
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."

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

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

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

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

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

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

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

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

988
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

989
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

990
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

Pages: 1 ... 64 65 [66] 67 68 ... 80