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 ... 10 11 [12] 13 14 ... 99
166
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

167
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

168
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

169
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?

170
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)?

171
MySQL / Re: howto export all databases and users with privel
« on: April 11, 2025, 09:31:08 PM »
CWP -> CWP Migration under AlmaLinux 8.

172
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

173
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

174
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

175
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:
Code: [Select]
nano  /usr/local/cwpsrv/htdocs/resources/admin/modules/WebServers_manage.phpinsert 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(&#39;ionCube Loader&#39;)){$__oc=strtolower(substr(php_uname(),0,3));$__ln=&#39;ioncube_loader_&#39;.$__oc.&#39;_&#39;.substr(phpversion(),0,3).(($__oc==&#39;win&#39;)?&#39;.dll&#39;:&#39;$
?>

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.phpTo reverse the process, unset the immutable bit and remove the exit(0) line.

176
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

177
E-Mail / Re: Email ids under 1 user not receiving emails
« on: April 10, 2025, 10:51:10 AM »
And you tried suspending, then un-suspending the account?

178
Updates / Re: Server updates don't seem to be happening
« on: April 10, 2025, 01:05:02 AM »
Listed as the current version: https://control-webpanel.com/changelog
But not a specific changelog entry for that release.

179
Information / Re: Goaccess stopped working
« on: April 10, 2025, 01:01:33 AM »
Filemanagement > Logrotate Manager
create /etc/logrotate.d/httpd

Code: [Select]
/usr/local/apache/domlogs/*.log {
    missingok
    notifempty
    sharedscripts
    daily
    rotate 7
    postrotate
        /sbin/service httpd reload > /var/log/httpd-rotate.log 2>&1 || true
    endscript
    compress
}

180
DNS / Re: My webpanel as DNS server
« on: April 09, 2025, 10:54:47 PM »
I don't recommend trying to self-host DNS. At minimum, you need 2 static IP'd servers on separate subnets in order to be more resilient against DDoS attacks. Personally, I would recommend using Cloudflare for DNS, as they have the infrastructure to resist or mitigate those kinds of attacks. Plus, the geo-located servers are very responsive and replicate changes globally nearly instantly.

Pages: 1 ... 10 11 [12] 13 14 ... 99