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.
1
E-Mail / Re: upgrade spamassassin
« on: August 18, 2025, 02:12:31 PM »
You need to switch Centos' repos to Vault:
To do it:
1. Disable the vanilla Centos' repositories:
using favorite text editor and put following content into the file:
3. Clean yum's cache
4. Update outdated binary packages to the latest version provided by repository Centos' valut repository
Please note you do it your own risk.
To do it:
1. Disable the vanilla Centos' repositories:
Code: [Select]
cd /etc/yum.repos.d/
mv CentOS-Base.repo CentOS-Base.repo_orig
2. Create and open the file /etc/yum.repos.d/CentOS-Base.repo using favorite text editor and put following content into the file:
Code: [Select]
[base]
name=CentOS-$releasever - Base
baseurl=http://vault.centos.org/7.9.2009/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
[updates]
name=CentOS-$releasever - Updates baseurl=http://vault.centos.org/7.9.2009/updates/$basearch/
gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
[extras]
name=CentOS-$releasever - Extras baseurl=http://vault.centos.org/7.9.2009/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
3. Clean yum's cache
Code: [Select]
yum clean all
4. Update outdated binary packages to the latest version provided by repository Centos' valut repository
Code: [Select]
yum update
Please note you do it your own risk.
2
Apache / Re: Issues with image displaying
« on: August 18, 2025, 09:41:46 AM »![]()
Above is a screenshot of the same logo image, one on the left is the correct color the one on the right which is in the previewer in WP shows the "2" in black.
Do you have some optimization plugins installed for your WP website ? Such plugins could create lightweight samples of the original images by reducing the size (height/weight), color palette, etc of the original images and then display the created sample images on the website to make it loading faster.
So I think there is such problem.
3
Apache / Re: Issues with image displaying
« on: August 16, 2025, 09:41:26 AM »
If you access the image over the direct link and it looks bad but if the image is downloaded from your server/vps on your local computer then opened using some image viewer and it looks good then it sounds very very strange.
I think you missed something.
I think you missed something.
4
CSF Firewall / Re: How to add *.domain.com to CSF Firewall
« on: August 15, 2025, 09:38:59 PM »
Just minor changes:
1.Open the file:
/etc/csf/csf.allow
2. Put the following line into the file:
4. Put the following content into the file:
5. Make the file executable:
The idea is the same. Additionally the script checks the exit code of "wget" to avoid strange behavior if the file can't be downloaded.
1.Open the file:
/etc/csf/csf.allow
2. Put the following line into the file:
Code: [Select]
Include /etc/csf/csf.hetrixtools.allow
3. Create and open the file /etc/cron.daily/hetrixtools_whitelist using your favorite text editor (vi,ee,nano, etc).4. Put the following content into the file:
Code: [Select]
#!/bin/bash
wget -O /tmp/uptime-monitor-ips.txt https://hetrixtools.com/resources/uptime-monitor-ips.txt > /dev/null 2>&1
if [ $? -ne 0 ]
then
echo "Can't download the file"
exit 1
fi
cat /tmp/uptime-monitor-ips.txt | awk '{print $2 ,"#", $1}' > /tmp/hetrixtools.ips
diff /etc/csf/csf.hetrixtools.allow /tmp/hetrixtools.ips > /dev/null 2>&1
error=$?
if [ $error -ne 0 ]
then
echo "files are different or some file absents"
cat /tmp/hetrixtools.ips > /etc/csf/csf.hetrixtools.allow
rm -f /tmp/hetrixtools.ips /tmp/uptime-monitor-ips.txt
csf -r
fi
5. Make the file executable:
Code: [Select]
chmod 755 /etc/cron.daily/hetrixtools_whitelist
The idea is the same. Additionally the script checks the exit code of "wget" to avoid strange behavior if the file can't be downloaded.
5
Updates / Re: How to update phpMyAdmin to latest version without breaking CWP?
« on: August 15, 2025, 12:57:49 PM »
According to:
https://docs.phpmyadmin.net/en/latest/setup.html#upgrading-from-an-older-version
if phpMyAdmin doesn't work after upgrade then:
https://docs.phpmyadmin.net/en/latest/setup.html#upgrading-from-an-older-version
Code: [Select]
cd /usr/local/cwpsrv/var/services
mv pma pma_old
wget https://files.phpmyadmin.net/phpMyAdmin/5.2.2/phpMyAdmin-5.2.2-all-languages.zip
unzip phpMyAdmin-5.2.2-all-languages.zip
rm -rf phpMyAdmin-5.2.2-all-languages.zip
mv phpMyAdmin-5.2.2-all-languages pma
cp pma_old/config.inc.php pma
chown -R cwpsvc:cwpsvc pma
if phpMyAdmin doesn't work after upgrade then:
Code: [Select]
cd /usr/local/cwpsrv/var/services
rm -rf pma
mv pma_old pma
6
CSF Firewall / Re: How to add *.domain.com to CSF Firewall
« on: August 15, 2025, 10:27:59 AM »
Here is a simple solution to block access to the server from the networks used by AhrefBot:
1.Open the file:
/etc/csf/csf.deny
2. Put the following line into the file:
4. Put the following content into the file:
5. Make the file executable:
What does it do ?
The script /etc/cron.daily/ahrefbot_blocker will be executed by the server every day. The script downloads the list of IPs used by the ahrefbot and compares it with the list of networks/ips in the file /etc/csf/csf.ahrefbot.deny. If the files have some difference then content of /tmp/ahrefbot.ips is copited into /etc/csf/csf.ahrefbot.deny and csf is reloaded. If no difference then nothing happens.
1.Open the file:
/etc/csf/csf.deny
2. Put the following line into the file:
Code: [Select]
Include /etc/csf/csf.ahrefbot.deny
3. Create and open the file /etc/cron.daily/ahrefbot_blocker using your favorite text editor (vi,ee,nano, etc).4. Put the following content into the file:
Code: [Select]
#!/bin/bash
wget -O /tmp/crawler-ip-ranges https://api.ahrefs.com/v3/public/crawler-ip-ranges > /dev/null 2>&1
cat /tmp/crawler-ip-ranges |grep "/" | awk -F\" '{print $4}' > /tmp/ahrefbot.ips
diff /etc/csf/csf.ahrefbot.deny /tmp/ahrefbot.ips > /dev/null 2>&1
error=$?
if [ $error -ne 0 ]
then
echo "files are different or some file absents"
cat /tmp/ahrefbot.ips > /etc/csf/csf.ahrefbot.deny
rm -f /tmp/ahrefbot.ips /tmp/crawler-ip-ranges
csf -r
fi
5. Make the file executable:
Code: [Select]
chmod 755 /etc/cron.daily/ahrefbot_blocker
What does it do ?
The script /etc/cron.daily/ahrefbot_blocker will be executed by the server every day. The script downloads the list of IPs used by the ahrefbot and compares it with the list of networks/ips in the file /etc/csf/csf.ahrefbot.deny. If the files have some difference then content of /tmp/ahrefbot.ips is copited into /etc/csf/csf.ahrefbot.deny and csf is reloaded. If no difference then nothing happens.
7
Apache / Re: Issues with image displaying
« on: August 15, 2025, 09:31:07 AM »
Do the images look bad when they are accessed over the direct links as demonstrated below ?
example:
https://domain.com/images/pic.png
https://domain.com/images/pic2.png
Or does some PHP script handles the images ?
example:
https://domain.com/img.php?pic=image.png
https://domain.com/img.php?pic=image2.png
Is there some nginx/apache module like mod_pagespeed ?
example:
https://domain.com/images/pic.png
https://domain.com/images/pic2.png
Or does some PHP script handles the images ?
example:
https://domain.com/img.php?pic=image.png
https://domain.com/img.php?pic=image2.png
Is there some nginx/apache module like mod_pagespeed ?
8
CSF Firewall / Re: How to add *.domain.com to CSF Firewall
« on: August 14, 2025, 10:52:24 PM »
To make ahrefbot unable to access your server you need to block the IPs of the hosts used by the ahrefbot. You can obtain the IPs here:
https://help.ahrefs.com/en/articles/78658-what-is-the-list-of-your-ip-ranges
Just put the IPs into:
/etc/csf/csf.deny
and then restart CSF.
Please pay attention the IPs (networks) used by the bot can be changed from time to time. So it is better to obtain and update the IPs in CSF using the script from the following link:
https://api.ahrefs.com/v3/public/crawler-ip-ranges
and then restart csf.
https://help.ahrefs.com/en/articles/78658-what-is-the-list-of-your-ip-ranges
Just put the IPs into:
/etc/csf/csf.deny
and then restart CSF.
Please pay attention the IPs (networks) used by the bot can be changed from time to time. So it is better to obtain and update the IPs in CSF using the script from the following link:
https://api.ahrefs.com/v3/public/crawler-ip-ranges
and then restart csf.
9
Apache / Re: Issues with image displaying
« on: August 14, 2025, 10:14:58 PM »
Has the problem been appearing once the images were uploaded ? Did you upload the images over FTP or some PHP script (CMS) or in some other way ?
10
E-Mail / Re: Roundcube - Connection Error - Sending a particular email
« on: August 07, 2025, 12:26:48 PM »
Roundcube logs:
/usr/local/cwpsrv/var/services/roundcube/logs/errors.log
Mail logs:
/var/log/maillog
/var/log/dovecot.log
If there is nothng inside Roundcube logs, check the section "LOGGING/DEBUGGING" of the file:
/usr/local/cwpsrv/var/services/roundcube/config/defaults.inc.php
and change the settings according to your requirements.
/usr/local/cwpsrv/var/services/roundcube/logs/errors.log
Mail logs:
/var/log/maillog
/var/log/dovecot.log
If there is nothng inside Roundcube logs, check the section "LOGGING/DEBUGGING" of the file:
/usr/local/cwpsrv/var/services/roundcube/config/defaults.inc.php
and change the settings according to your requirements.
11
CWP API / Re: Issue creating user accounts via API on Alma Linux 9 with CWP
« on: August 07, 2025, 10:56:10 AM »
Check CWP logs to investigate the problem. The log files are located in:
/usr/local/cwpsrv/logs/
/usr/local/cwp/php71/var/log/
/usr/local/cwpsrv/logs/
/usr/local/cwp/php71/var/log/
12
Apache / Re: Apache auto turn off on AlmaLinux 9.x
« on: June 23, 2025, 07:55:17 AM »
Why is there is a 'vultr.guest' account on the server.
That's the account showing that is killing your Apache.
'vultr.guest' isn't the account. It is the part of the server's hostname.
13
Updates / Re: Roundcube vulnerability
« on: June 21, 2025, 08:43:55 AM »
What error did you get ?
14
Apache / Re: Apache auto turn off on AlmaLinux 9.x
« on: June 19, 2025, 07:04:38 PM »
I think there is no sense to use CentOS nowadays. If I have to select CentOS or AlmaLinux then my vote for AlmaLinux .
15
Apache / Re: Apache auto turn off on AlmaLinux 9.x
« on: June 19, 2025, 10:42:03 AM »
'oom-kill' in the message:
makes me think your VPS is Out Of Memory (oom).
Check the resource usage and RAM consumption.
Code: [Select]
Jun 19 01:19:35 vultr.guest systemd[1]: httpd.service: Failed with result 'oom-kill'.
makes me think your VPS is Out Of Memory (oom).
Check the resource usage and RAM consumption.