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 ... 61 62 [63] 64 65 ... 71
931
Installation / Re: CWP Host SSL with Cockpit?
« on: February 01, 2023, 04:21:28 PM »
I don't have any direct experience with Cockpit yet -- just Webmin. But I would imagine you could SCP the key and certs needed to the host system from the VM. Just be aware you will need to update the certs every 90 days if using LetsEncrypt SSL.

932
E-Mail / Re: I can rececive emails, but cannot send any emails
« on: February 01, 2023, 04:14:40 PM »
DNS correct with an MX record in place? Verify with dig.
CSF firewall set with SMTP ports (25, 465, 587) open?
Are you starting without Clam and Amavis and SpamAssassin in the mail transport chain for simplicity?

933
I can validate this fix also. Thanks!

934
Backup / Re: BUG? Backup BETA vmail more than 2GB
« on: February 01, 2023, 12:38:32 AM »
manual backup = SCP or rsync (nothing to do with the web-based control panel).

935
Information / Re: PHOTO ATTACHEMENTS
« on: January 31, 2023, 04:22:14 AM »
The [ img ]  tag works as you would expect, the image file just needs to be hosted somewhere.

936
E-Mail / Re: Email filters in CWP Web Panel?
« on: January 31, 2023, 04:19:32 AM »
You can also block via SpamAssassin (I'm pretty aggressive here -- even risking blocking Alphabet's .xyz domain):
Code: [Select]
# blacklist TLDs
blacklist_from *@*.casa
blacklist_from *@*.work
blacklist_from *@*.top
blacklist_from *@*.live
blacklist_from *@*.cam
blacklist_from *@*.pro
blacklist_from *@*.click
blacklist_from *@*.link
blacklist_from *@*.diet
blacklist_from *@*.party
blacklist_from *@*.zip
blacklist_from *@*.date
blacklist_from *@*.club
blacklist_from *@*.rest
blacklist_from *@*.bar
blacklist_from *@*.xyz
blacklist_from *@*.sbs
blacklist_from *@*.shop

937
CSF Firewall / Re: How to block China traffic?
« on: January 31, 2023, 04:15:04 AM »
edit /etc/csf/csf.conf
Code: [Select]
CC_DENY = "BG,CN,KP,RU,NG"(Sorry if it's your country, but this list includes the top 5 hacking countries in my US-based observation.)
Code: [Select]
service csf restart

938
Backup / Re: little worried to use cwp
« on: January 31, 2023, 04:05:10 AM »
Bulletproof:
Code: [Select]
mysql  database_name < file.sql

939
Files to edit are (if you are using PHP 8.1 -- whatever version you are using):
/opt/alt/php-fpm81/usr/etc/php-fpm.d/www.conf.default

and nginx vhost config:
/etc/nginx/conf.d/vhosts/yourdomain.com.ssl.conf
under the http section.

940
Nginx / Re: All my site are now showing 502 Bad Gateway nginx/1.20.2
« on: January 31, 2023, 02:50:26 AM »
Need to see some error logs to nail it down...

941
Other / Re: Create new disk (home2) because /home is full
« on: January 30, 2023, 06:16:36 PM »
You can mount other storage (block devices) in the filesystem manually with the mount command, then automate it with /etc/fstab. So on your additional storage, you could make that be dedicated to a large user account and mount it at /home/biguser (after moving the current home to the side: /home.biguser.temp). Then move their stuff from the temp named directory to the new /home/biguser directory.

Or you could implement something in user space with FUSE.

This is just a large overview sketch, as the devil is in the implementation details -- and that's up to you!

942
You would also have to delete this section of the vhost conf (/usr/local/apache/conf.d/vhosts/yourdomain.com.conf):
Code: [Select]
<VirtualHost 111.111.111.111:80>
        ServerName webmail.yourdomain.com

        <IfModule mod_proxy.c>
                ProxyRequests Off
                ProxyPreserveHost On
                ProxyVia Full
                ProxyPass / http://127.0.0.1:2095/
                ProxyPassReverse / http://127.0.0.1:2095/

                <Proxy *>
                        AllowOverride All
                </Proxy>
        </IfModule>

        <IfModule mod_security2.c>
                SecRuleEngine Off
        </IfModule>

</VirtualHost>
(For completeness, you do this for both the plain .conf and the .ssl.conf files.)

943
Apache / Re: Apache Webserver not working and shows error 502
« on: January 30, 2023, 05:55:03 PM »
Can you give us:
Code: [Select]
systemctl status -i httpd.serviceand
Code: [Select]
journalctl -xeAlso a tail -25 of your Apache error_log would be helpful, too.

944
Change your relevant version's php.ini: max_execution_time = 180 (tripling the default, at least)
Edit: /opt/alt/php-fpmXX/usr/etc/php-fpm.d/www.conf.default to include
Code: [Select]
fastcgi_read_timeout = 3000And edit your nginx config to include (in the http section):
Code: [Select]
fastcgi_read_timeout 3000;Then reload php-fpm and nginx:
Quote
service phpXX-fpm reload
service nginx reload

945
Actually, this is not an nginx error; this is a php-fpm error. When installing a new PHP version, it does not carry over your existing user conf files from an existing PHP version to the newly built one. You have to copy the user conf from an existing version of PHP and then edit the paths inside the file as appropriate (ie simply changing php71 to be php56 in this case).

Pages: 1 ... 61 62 [63] 64 65 ... 71