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 ... 38 39 [40] 41 42 ... 127
586
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?

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

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

589
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

590
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

591
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

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

593
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

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

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

596
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
}

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

599
I would offer to step in and help you, but it's hard to get in the middle of another tech's work. Also, I wouldn't claim to be as proficient as Igor, either. I hope you get your ticket resolved satisfactorily, soon.

If you have backups, can you not just load them in via mysql CLI or phpMyAdmin?
Code: [Select]
mysql -u root -p -e "create database database_name"
mysql -u root -p database_name < database_name.sql

600
MySQL / Re: mySQL user
« on: April 05, 2025, 03:31:50 PM »
Definitely not how my server behaves. I login to the /pma link as a user account with their password and I can only see the DB that the user owns, not the extent of the full server-wide DB.

When under a user control panel, you go to the Databases > phpMyAdmin link:
https://yourserver.tld:2083/cwp_SESSIONID/username/?module=pma
should forward you to:
https://yourserver.tld:2087/pma/index.php?route=/&route=%2F

Is that what you see happening? And what if you directly load PMA?
https://yourserver.tld:2087/pma/
Do you get a login screen where you can login as a user?

Pages: 1 ... 38 39 [40] 41 42 ... 127