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 ... 82 83 [84] 85 86 ... 91
1246
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...

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

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

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

1250
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

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

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

1253
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

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

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

1256
CentOS-WebPanel GUI / Re: How to fix Importing Customizer Settings error
« on: January 29, 2023, 10:58:51 PM »
Did you set your WordPress permissions according to the WP documentation recommendations?

1257
CentOS 7 Problems / Re: inner page url not working
« on: January 29, 2023, 10:57:18 PM »
is the page URL generated from a script (PHP) or does it reference an actual path in the file tree?

1258
CentOS 7 Problems / Re: Change Server Date & Time
« on: January 29, 2023, 05:59:45 PM »
Thanks for the link -- I double checked all my servers and one was off, so that was helpful!

For reference, to check your system timezone:
Code: [Select]
timedatectlTo set your timezone:
Code: [Select]
sudo timedatectl set-timezone America/New_York

1259
Backup / Re: BUG? Backup BETA vmail more than 2GB
« on: January 29, 2023, 04:24:31 PM »
This a good reason for manual backups. I use rsync to backup /var/vmail to another server offsite, but you could use it to backup mail locally to the same disk in another location.

1260
E-Mail / Re: spamassassin.service: Failed with result 'start-limit-hit'
« on: January 29, 2023, 12:52:38 PM »
The -d option for spamassassin is for "daemonize" or, run as a background service.

If you edit the /etc/sysconfig/spamassassin file according to the wiki, you will want to do your main configuration changes to:
/etc/spamassassin/local.cf

A few directives to get it working:
Code: [Select]
rewrite_header Subject *SPAM*
report_safe 0
required_score  5.0
required_hits   5.0
use_bayes 1
bayes_auto_learn 1
bayes_ignore_header X-Bogosity
bayes_ignore_header X-Spam-Flag
bayes_ignore_header X-Spam-Status

If you do want to use the additional configuration in /usr/share/spamassasin, you will also have to add this directive in your /etc/spamassassin/local.cf main config file:
Code: [Select]
include /usr/share/spamassassin/

Pages: 1 ... 82 83 [84] 85 86 ... 91