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.
196
E-Mail / Re: WordPress nail
« on: April 12, 2025, 06:17:57 PM »
Would need way more info to diagnose anything... Can you manually login to the site and check for updates, generate some backend activity? Install Wordfence -- that should make sure it is more "chatty" than it is currently.
197
PHP / Re: over core pipe limit error
« on: April 12, 2025, 06:15:37 PM »
Kind of a serious issue if you are getting (probably) 16 simultaneous process crashes that locked up your server. Check your system log for what event preceded the crashes and subsequent dumps.
198
MySQL / Re: /includes/class_core.php on line 311 error
« on: April 12, 2025, 02:32:33 PM »Code: [Select]
cd /usr/local/src
wget https://github.com/major/MySQLTuner-perl/archive/refs/tags/v2.6.0.tar.gz
tar xzvf v2.6.0.tar.gz
cp MySQLTuner-perl-2.6.0/mysqltuner.pl /usr/local/bin/
chmod +x /usr/local/bin/mysqltuner.pl
/usr/local/bin/mysqltuner.pl
200
Information / Re: check all autoSSL (Lets encrypt) that failed
« on: April 12, 2025, 01:48:04 PM »Code: [Select]
grep "Verification error" /root/.acme.sh/cwp_certs/acme.sh.log | less
201
MySQL / Re: /includes/class_core.php on line 311 error
« on: April 12, 2025, 01:45:35 PM »
Consider running a MySQL tuning script for recommendations for better performance:
https://github.com/major/MySQLTuner-perl
https://github.com/major/MySQLTuner-perl
202
E-Mail / Re: Email ids under 1 user not receiving emails
« on: April 12, 2025, 11:56:36 AM »
The storage server is IMAP (dovecot), so not being able to access. Try 770 permissions (which is what one CWP server has; oddly, the other one is 755 which came from a cPanel import):
Code: [Select]
chmod -R 770 /var/vmail
chown -R vmail:mail /var/vmail
203
MySQL / Re: /includes/class_core.php on line 311 error
« on: April 12, 2025, 11:47:35 AM »
The socket (/var/lib/mysql/mysql.sock) exists?
Can you run PHP 5.4?
Are you running it under PHP-FPM?
Can you run PHP 5.4?
Are you running it under PHP-FPM?
204
MySQL / Re: Can't delete MySQL user after "cPanel Account Restore"
« on: April 12, 2025, 11:45:42 AM »
And you tried from phpMyAdmin (logged in as root)?
205
MySQL / Re: howto export all databases and users with privel
« on: April 11, 2025, 09:31:08 PM »
CWP -> CWP Migration under AlmaLinux 8.
206
E-Mail / Re: Email ids under 1 user not receiving emails
« on: April 11, 2025, 09:29:30 PM »Code: [Select]
chown -R vmail:mail /var/mail
chmod -R 755 /var/vmail
207
Information / Re: Goaccess stopped working
« on: April 11, 2025, 09:26:48 PM »
The beauty of customizability -- my domlogs look like this. I got away from _log a long time ago in favor of .log, which is more easily read in external log reader & stats programs:
Code: [Select]
-rw-r--r-- 1 nobody root 0 Apr 11 14:23 domain.com.error.log
-rw-r--r-- 1 nobody root 0 Apr 11 14:23 domain.com.log
-rw-r--r-- 1 nobody root 0 Apr 10 14:23 domain.bytes
-rw-r--r-- 1 nobody root 202 Mar 31 02:51 domain.com.error.log-20250331.gz
-rw-r--r-- 1 nobody root 286 Apr 1 01:37 domain.com.error.log-20250401.gz
-rw-r--r-- 1 nobody root 294 Apr 3 01:42 domain.com.error.log-20250403.gz
-rw-r--r-- 1 nobody root 4129 Apr 5 02:33 domain.com.error.log-20250405.gz
-rw-r--r-- 1 nobody root 856 Apr 6 20:20 domain.com.error.log-20250407.gz
-rw-r--r-- 1 nobody root 767 Apr 8 00:20 domain.com.error.log-20250408.gz
-rw-r--r-- 1 nobody root 432 Apr 9 19:06 domain.com.error.log-20250410.gz
-rw-r--r-- 1 nobody root 121 Mar 31 02:51 domain.com.log-20250331.gz
-rw-r--r-- 1 nobody root 196 Apr 1 01:37 domain.com.log-20250401.gz
-rw-r--r-- 1 nobody root 262 Apr 3 01:42 domain.com.log-20250403.gz
-rw-r--r-- 1 nobody root 11656 Apr 5 02:33 domain.com.log-20250405.gz
-rw-r--r-- 1 nobody root 6594 Apr 6 20:20 domain.com.log-20250407.gz
-rw-r--r-- 1 nobody root 6507 Apr 8 00:20 domain.com.log-20250408.gz
-rw-r--r-- 1 nobody root 5983 Apr 9 19:06 domain.com.log-20250410.gz
208
CWP API / Re: Enquiry about API
« on: April 11, 2025, 01:12:08 PM »
Doesn't look to be too painful to add manually (pretty simple, actually):
https://shouts.dev/articles/how-to-install-supervisor-on-centos
https://shouts.dev/articles/how-to-install-supervisor-on-centos
209
Installation / Re: How to Lock (and Restore) “Select WebServers” in CWP Panel & SSH
« on: April 10, 2025, 11:59:22 PM »
The previous advice was for shell scripts under /scripts -> /usr/local/cwpsrv/htdocs/resources/scripts
To accomplish what you want, in a root shell, edit this file with nano:
To accomplish what you want, in a root shell, edit this file with nano:
Code: [Select]
nano /usr/local/cwpsrv/htdocs/resources/admin/modules/WebServers_manage.php
insert an exit(0) on the next line after the leading php stanza, before all the encoded PHP code:Code: [Select]
<?php //0042b
// Copyright CentOS WebPanel, Decoding is FORBIDDEN
// All Rights Reserved. www.centos-webpanel.com
if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'$
?>
exit(0)
If you want it to survive a CWP update, you could make it immutable:Code: [Select]
chattr +i /usr/local/cwpsrv/htdocs/resources/admin/modules/WebServers_manage.php
To reverse the process, unset the immutable bit and remove the exit(0) line.
210
Installation / Re: How to Lock (and Restore) “Select WebServers” in CWP Panel & SSH
« on: April 10, 2025, 10:57:22 AM »
You could probably move the switcher script to another place to hide it (from yourself?), but each CWP update may restore it. Or you could always put an exit 0 line under the shebang line of script to make it inert (again, each CWP update may reset the change):
Code: [Select]
#!/bin/bash
exit 0