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 ... 117 118 [119] 120 121 ... 127
1771
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.

1772
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

1773
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

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

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

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

1777
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!

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

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

1780
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

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

1782
DNS / Re: DigitalOcean DNS or CWP7 DNS?
« on: January 30, 2023, 04:37:55 AM »
I guess it depends on if you are already using the Cloudflare infrastructure -- DDoS protection, caching, optimization, etc. If so it totally makes sense to use their 1.1.1.1 DNS. Since I'm using their DNS servers for my domains, changes are near instantaneously propagated worldwide.

1783
CentOS 7 Problems / Re: Change Server Date & Time
« on: January 30, 2023, 02:42:07 AM »
Military background, eh? Not Greenwich, London, UK?
https://time.is/Z

1784
Suggestions / Re: Cwp.user branding logo in CWP.Pro systems.
« on: January 29, 2023, 11:59:16 PM »
Hover over the broken image icon and see the path the link is looking for the logo.

1785
SSL / Re: Why SSL Doesn't work with WWW version of Website?
« on: January 29, 2023, 11:57:06 PM »
The difference between an A record vs CNAME is an extra DNS lookup. In case of the CNAME the after figuring out that www is a CNAME to example.com, another look will be done for example.com.

If you are planning on using a CDN or a 3 party acceleration service (Cloudflare), then a CNAME becomes important. Example a lookup of www.google.com results in the following. See the difference in TTL of www.l.google.com and www.google.com:

Code: [Select]
www.google.com.     36545   IN  CNAME   www.l.google.com.
www.l.google.com.   294     IN  A       209.85.153.104
This gives the flexibility of changing the A record, keeping a lower TTL, doing fancy stuff like geo-redirection, if using 3rd party services.

In this case, it doesn't matter since both are pointing both to the same IP (domain=www) -- as is commonly the case with smaller sites.

Pages: 1 ... 117 118 [119] 120 121 ... 127