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
CentOS 8 Problems / Re: Problems installing packages and updates with Almalinux8
« on: March 22, 2025, 11:47:46 PM »
If most of your sites are based on Wordpress and WooCommerce addon then it is better to use the PHP version recommended by Wordpress:
https://wordpress.org/about/requirements/
However, 8.2 would be ok.
Yes, you are right.
https://wordpress.org/about/requirements/
However, 8.2 would be ok.
Quote
Some always recommend the latest possible version, but I think that not all plugins or themes are compatible, right?
Yes, you are right.
2
CentOS 8 Problems / Re: Problems installing packages and updates with Almalinux8
« on: March 19, 2025, 04:40:14 PM »
Did you add some extra repositories or install binary packages (.RPMs) manually ?
3
MySQL / Re: mariadb error during update
« on: March 16, 2025, 11:03:58 AM »
What is SWAP ? SWAP is a technology used to emulate RAM using any item recognized as block device. In other words it "expands" amount of available RAM using disk mounted locally/remotely. However, SWAP isn't so fast as RAM even if SSD/NVMe drives are used for swapping. So huge swap disk has no sense because than more intense SWAP is used by the server/computer than slower the server/computer works.
In case your server has 2Gb of RAM then create SWAP disk (mount a file as a swap disk) of size 2Gb-4Gb (2Gb is recommended).
In case your server has 2Gb of RAM then create SWAP disk (mount a file as a swap disk) of size 2Gb-4Gb (2Gb is recommended).
4
Updates / Re: Server updates don't seem to be happening
« on: March 15, 2025, 12:05:48 PM »
You need to upgrade MariaDB to 10.6 or more recent version. You can find how to upgrade MariaDB here:
https://wiki.centos-webpanel.com/mariadb-upgrade-to-new-version
just adapt the instructions according to your requirements.
If you decide to upgrade MariaDB to
https://wiki.centos-webpanel.com/mariadb-upgrade-to-new-version
just adapt the instructions according to your requirements.
If you decide to upgrade MariaDB to
5
Mod_Security / Re: 19GB modsec_audit.log
« on: March 15, 2025, 10:39:15 AM »
It will be executed automatically on daily bases. All files located in the folder /usr/local/apache/logs/ with the names "log" at the end:
something.log
something_log
somethinglog
will be checked for their size. If the file size is over than 100Mb the log file will be rotated.
something.log
something_log
somethinglog
will be checked for their size. If the file size is over than 100Mb the log file will be rotated.
6
CentOS 7 Problems / Re: Move /var/vmail to /home/vmail
« on: March 14, 2025, 01:39:50 PM »Quote
The symbolic link is allready made.
The folder /var/vmail contains only 2 clients left, The rest of 10 mail clients are allready moved to /home/vmail
The link doesn't exist. There could be the symlink OR folder. Check it once again.
7
Mod_Security / Re: 19GB modsec_audit.log
« on: March 14, 2025, 01:35:07 PM »
Create the file:
/etc/logrotate.d/httpd
with the following content:
It will rotate files called like "anythinglog" located in the folder /usr/local/apache/logs/
/etc/logrotate.d/httpd
with the following content:
Code: [Select]
/usr/local/apache/logs/*log
{
missingok
notifempty
sharedscripts
copytruncate
compress
postrotate
if [ -f /usr/local/apache/logs/httpd.pid ]; then
kill -USR1 `cat /usr/local/apache/logs/httpd.pid`
fi
endscript
maxsize 100M
}
It will rotate files called like "anythinglog" located in the folder /usr/local/apache/logs/
8
CentOS 9 Problems / Re: wp_remote_post() failed
« on: March 13, 2025, 10:08:07 PM »
You server can connect to the port 443 (https) of www.paypal.com when the firewall is disabled. So try to connect to www.paypal using curl:
You should get headers from the server and raw HTML if connection is established. In other case, if the connection fails, check response headers.
Code: [Select]
curl -i -X POST -A "WooCommerce/9.7.1; https://testsimulazione.it" https://www.paypal.com/cgi-bin/webscr
You should get headers from the server and raw HTML if connection is established. In other case, if the connection fails, check response headers.
9
CentOS 7 Problems / Re: Move /var/vmail to /home/vmail
« on: March 13, 2025, 06:03:47 PM »
remove /var/vmail and create a symlink from /var/vmail to /home/vmail:
Code: [Select]
rm -rf /var/vmail
ln -s /home/vmail /var/vmail
10
CentOS 9 Problems / Re: wp_remote_post() failed
« on: March 13, 2025, 05:09:28 PM »
Ok, install traceroute and telnet using dnf:
the run the commands from the previous post again.
Code: [Select]
dnf -y install telnet traceroute
the run the commands from the previous post again.
11
CentOS 9 Problems / Re: wp_remote_post() failed
« on: March 13, 2025, 12:48:44 PM »
Disable firewall and then in shell run:
show us results and run firewall on your vps/server again.
Code: [Select]
telnet www.paypal.com 443
traceroute www.paypal.com
iptables -L -n
show us results and run firewall on your vps/server again.
12
CentOS 7 Problems / Re: Move /var/vmail to /home/vmail
« on: March 13, 2025, 12:39:42 PM »
The access permissions 777 or 770 not always are correct. Some applications/system services check access permissions and if they aren't strict enough the service fails for security reasons.
Check the files/folders inside /home/vmail/DOMAIN.COM. The should belong to "USER:vmail".
No, you don't need to restart cwp,nginx,apache.
Check mail and roundube log files. The log files are the best friend for INVESTIGATION. Currently we are guessing where the problem is.
Check the files/folders inside /home/vmail/DOMAIN.COM. The should belong to "USER:vmail".
No, you don't need to restart cwp,nginx,apache.
Check mail and roundube log files. The log files are the best friend for INVESTIGATION. Currently we are guessing where the problem is.
13
CentOS 7 Problems / Re: Move /var/vmail to /home/vmail
« on: March 13, 2025, 09:10:03 AM »
1. Make sure dovecot is up and works.
2. Make sure access permissions and owner of the folder:
/home/vmail
are correct.
3. Check mail logs to investigate the problem:
/var/log/maillog
4. If you decided to move some system folder to another location then I recommend to follow the steps like:
2. Make sure access permissions and owner of the folder:
/home/vmail
are correct.
3. Check mail logs to investigate the problem:
/var/log/maillog
4. If you decided to move some system folder to another location then I recommend to follow the steps like:
Code: [Select]
mv /var/vmail /home/
ln -s /home/vmail /var/vmail
14
CentOS 9 Problems / Re: wp_remote_post() failed
« on: March 12, 2025, 04:53:25 PM »
Hi,
The function name wp_remote_post() allows me think the function sends some post request to some host. To investigate the problem you need to know where the function wp_remote_post() sends the request to (host) and then emulate the request using "curl" or similar utility, make attempt to connect to the host using "telnet", etc.
Anyway, the problem could be caused by bad DNS resolvers, firewall, error in your script, etc.
The function name wp_remote_post() allows me think the function sends some post request to some host. To investigate the problem you need to know where the function wp_remote_post() sends the request to (host) and then emulate the request using "curl" or similar utility, make attempt to connect to the host using "telnet", etc.
Anyway, the problem could be caused by bad DNS resolvers, firewall, error in your script, etc.
15
CentOS-WebPanel GUI / Re: login user panel
« on: March 11, 2025, 10:53:36 PM »
Almalinux 9 / RockyLinux 9 ? If so check this thread:
https://forum.centos-webpanel.com/other/i-have-problem-with-users-panel-login-page-it-show-to-me-failed-cwp-alma-linux9/msg49587/
https://forum.centos-webpanel.com/other/i-have-problem-with-users-panel-login-page-it-show-to-me-failed-cwp-alma-linux9/msg49587/