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.
1171
CentOS 7 Problems / Re: CWP admin login to white blank page
« on: August 27, 2021, 10:46:23 PM »
So, now just like this other post:
https://forum.centos-webpanel.com/index.php?topic=7380.0
I am seeing the exact same error:
https://forum.centos-webpanel.com/index.php?topic=7380.0
I am seeing the exact same error:
Code: [Select]
sh /scripts/update_cwp
====================================================
============= CentOS Web Panel Cron ================
====================================================
###########################
Firewall Flush Daily Blocks
###########################
######################
Update Server Packages
######################
PHP Warning: mysqli_connect(): (HY000/1045): Access denied for user 'postfix'@'localhost' (using password: YES) in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php on line 0
PHP Fatal error: Uncaught Error: Call to undefined function mysql_countRows() in /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php:0
Stack trace:
#0 {main}
thrown in /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php on line 0
1172
CentOS 7 Problems / Re: CWP admin login to white blank page
« on: August 27, 2021, 10:21:16 PM »
I am now encountering this exact issue on one of my 3 CWP Pro servers. I can view the hosted websites, login to webmail and via SSH. But attempting to load the CWP Pro Admin panel only shows a blank white screen. Thus far I have been able to determine that the /scripts directory is full of empty files, so it is not possible to do a CWP update by that means:
/usr/local/cwpsrv/htdocs/resources/admin/include/
So the CWP update run via cron will never complete because thie file it calls doesn't exist:
Code: [Select]
ls -al /scripts/scripts
total 12
drwxr-x--- 2 root root 4096 Aug 27 08:23 .
drwxr-x---. 3 root root 4096 Aug 27 08:23 ..
-rwxr-xr-x 1 root root 0 Aug 27 08:23 add_alert
-rwxr-xr-x 1 root root 0 Aug 27 08:23 apache_mpm_calculator
-rwxr-xr-x 1 root root 0 Aug 27 08:23 autossl_fix_tmp_path
-rwxr-xr-x 1 root root 0 Aug 27 08:23 autossl_generate_apache_conf
-rwxr-xr-x 1 root root 0 Aug 27 08:23 autossl_reload
-rwxr-xr-x 1 root root 0 Aug 27 08:23 cgroups_blkio
-rwxr-xr-x 1 root root 0 Aug 27 08:23 check_api
-rwxr-xr-x 1 root root 0 Aug 27 08:23 check_postqueue
-rwxr-xr-x 1 root root 0 Aug 27 08:23 checkdb
-rwxr-xr-x 1 root root 0 Aug 27 08:23 chroot_remove
-rwxr-xr-x 1 root root 0 Aug 27 08:23 clamd_fix_100_cpu_usage
-rwxr-xr-x 1 root root 0 Aug 27 08:23 cpanel_addhandlers
-rwxr-xr-x 1 root root 0 Aug 27 08:23 cwp_api
-rwxr-xr-x 1 root root 0 Aug 27 08:23 cwp_bruteforce_protection
-rwxr-xr-x 1 root root 0 Aug 27 08:23 cwp_monitor
-rwxr-xr-x 1 root root 0 Aug 27 08:23 cwp_set_memory_limit
-rwxr-xr-x 1 root root 0 Aug 27 08:23 cwp_version
-rwxr-xr-x 1 root root 0 Aug 27 08:23 cwpsecure_update_rules
-rwxr-xr-x 1 root root 0 Aug 27 08:23 cwpsrv_rebuild_user_conf
-rwxr-xr-x 1 root root 0 Aug 27 08:23 disk_check
-rwxr-xr-x 1 root root 0 Aug 27 08:23 dns_sync_slave2
-rwxr-xr-x 1 root root 0 Aug 27 08:23 dso_handler_remove
-rwxr-xr-x 1 root root 0 Aug 27 08:23 el8_stream_convert_to_cwp_stable
-rwxr-xr-x 1 root root 0 Aug 27 08:23 generate_hostname_ssl
-rwxr-xr-x 1 root root 0 Aug 27 08:23 hostname_ssl_restart_services
-rwxr-xr-x 1 root root 0 Aug 27 08:23 image_rebuild_server_config
-rwxr-xr-x 1 root root 0 Aug 27 08:23 install_acme
-rwxr-xr-x 1 root root 0 Aug 27 08:23 install_api
-rwxr-xr-x 1 root root 0 Aug 27 08:23 install_cbpolicyd
-rwxr-xr-x 1 root root 0 Aug 27 08:23 install_imagick
-rwxr-xr-x 1 root root 0 Aug 27 08:23 install_net2ftp
-rwxr-xr-x 1 root root 0 Aug 27 08:23 install_netdata
-rwxr-xr-x 1 root root 0 Aug 27 08:23 install_pure-ftpd_tls
-rwxr-xr-x 1 root root 0 Aug 27 08:23 install_supportKey
-rwxr-xr-x 1 root root 0 Aug 27 08:23 install_terminal
-rwxr-xr-x 1 root root 0 Aug 27 08:23 list_subdomains
-rwxr-xr-x 1 root root 0 Aug 27 08:23 mysql_fix_myisam_tables
-rwxr-xr-x 1 root root 0 Aug 27 08:23 mysql_set_max_connections
-rwxr-xr-x 1 root root 0 Aug 27 08:23 mysql_show_max_connections
-rwxr-xr-x 1 root root 0 Aug 27 08:23 net_show_connections
-rwxr-xr-x 1 root root 0 Aug 27 08:23 open_basedir-suphp
-rwxr-xr-x 1 root root 0 Aug 27 08:23 php_big_file_upload
-rwxr-xr-x 1 root root 0 Aug 27 08:23 reload_cwpsrv
-rwxr-xr-x 1 root root 0 Aug 27 08:23 restart_cwpsrv
-rwxr-xr-x 1 root root 0 Aug 27 08:23 restart_httpd
-rwxr-xr-x 1 root root 0 Aug 27 08:23 security_is_my_server_hacked
-rwxr-xr-x 1 root root 0 Aug 27 08:23 softaculous_fix_update
-rwxr-xr-x 1 root root 0 Aug 27 08:23 stats_goaccess
-rwxr-xr-x 1 root root 0 Aug 27 08:23 system_info
-rwxr-xr-x 1 root root 0 Aug 27 08:23 update_cwp
-rwxr-xr-x 1 root root 0 Aug 27 08:23 upgrade_mysql
-rwxr-xr-x 1 root root 0 Aug 27 08:23 user_backup
-rwxr-xr-x 1 root root 0 Aug 27 08:23 varnish_clear_cache
-rwxr-xr-x 1 root root 0 Aug 27 08:23 whoowns
I SCP'd that directory over from another CWP server. However, seeing that the update_cwp script is calling a cron run of another script, then I noticed that this directory is also empty!/usr/local/cwpsrv/htdocs/resources/admin/include/
So the CWP update run via cron will never complete because thie file it calls doesn't exist:
Code: [Select]
/usr/local/cwp/php71/bin/php -d max_execution_time=1000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php
What is my best course of recovery? Is there a way to manually re-update CWP without having to start over from scratch?
1173
Information / Re: Your server is NOT running CWP Secure Kernel !!!
« on: October 28, 2020, 03:34:25 AM »
Yes, I read that thread. It was locked, so I couldn't put in my plea to the developers there.
1174
Information / Your server is NOT running CWP Secure Kernel !!!
« on: October 27, 2020, 10:19:05 PM »
I can understand a single initial notice of the release of the CWP Secure Kernel, but speaking as one who has no need of it (I am running 3 VPS with paid CWP Professional with 1:1 dedicated sites and trusted admins/clients). I don't really appreciate the daily notifications -- they are annoying and distracting. I used to count on the notification feature for security updates, but now I don't clear it and just leave the single Secure Kernel notification. This is causing me to completely ignore the notification feature, making it worthless to me. Please stop the notification spam/ham and keep it "clean" to just server-related notices, not features or services available from CWP.
I do appreciate your development efforts, use and enjoy your products, pay for CWP Professional 3x, and have paid for incident support services several times. I check this forum and your main web site weekly/monthly for news & updates (still looking forward to full CentOS 8 support!) -- so I really prefer not to have unnecessary daily notifications on each of my servers.
I do appreciate your development efforts, use and enjoy your products, pay for CWP Professional 3x, and have paid for incident support services several times. I check this forum and your main web site weekly/monthly for news & updates (still looking forward to full CentOS 8 support!) -- so I really prefer not to have unnecessary daily notifications on each of my servers.
1175
CentOS-WebPanel GUI / Re: Enable NAT button keeps on coming up
« on: July 01, 2020, 02:45:02 PM »
Actually, I spoke too soon. After the next reboot & login, the NAT nag screen has returned. I can't see any obvious reason why, since my IP setup is static. On one server, it was setup without NetworkManager with static IF configs; the other 2 servers were setup with nmtui and set as static connections.
1176
Information / Re: What is mail_server_antispam.zip?
« on: July 01, 2020, 01:28:46 PM »
That and the erroneous SpamAssassin logfile, literally named
https://wiki.centos-webpanel.com/how-to-configure-spamassassin
Code: [Select]
${SAHOME}spamd.log
instead of substituting a variable for the filename, it literally has the variable as the filename... all thanks to literally following the directions here:https://wiki.centos-webpanel.com/how-to-configure-spamassassin
1177
Information / What is mail_server_antispam.zip?
« on: June 30, 2020, 09:59:37 PM »
On all 3 CWP systems I am running, there is a zip file on the filesystem root:
Code: [Select]
-rw-r--r-- 1 root root 41853 Apr 26 07:30 mail_server_antispam.zip
1178
CentOS-WebPanel GUI / Re: Enable NAT button keeps on coming even NAT is enable
« on: May 20, 2020, 05:13:48 PM »
This fix appears to work. Edit /usr/local/apache/conf/sharedip.conf. Change the first line to read:
Code: [Select]
<VirtualHost *:80>
Voila — no more erroneous NAT nag screen.
1179
CentOS-WebPanel GUI / Re: Enable NAT button keeps on coming even NAT is enable
« on: May 20, 2020, 02:50:47 PM »
Well, it went away for a day or two, but now the NAT settings detection dialog box still keeps coming back, even with no virtual bridges. A frequent annoyance to be sure.
1180
Migration from other control panels / Re: How to migrate emails from cpanel to CWP
« on: May 19, 2020, 09:55:19 AM »emails also cant be in an compressed form. Have to be uncompressed. In cPaenl You need to convert them to maildir but before check if You have email compression turn off in mailserver settings.BINGO! Can't highlight that information enough. On the cPanel Server, go to Mailserver Configuration and make sure that Compress Messages is off. I had converted Mdbox to Maildir before trying to import, but afterward everything was messed up (even though message stores were the right size). So I went back and looked at the cPanel server. Turned off Compress Messages, then had to convert BACK to Mdbox and then BACK AGAIN to Maildir. Then the Migration / rsync mail messages works as expected. (Well, then some permissions clean up).
1181
How to / Re: How to delete account manualy
« on: May 17, 2020, 08:26:11 PM »
I had a case where a deleted user was not in the CWP MySQL DB, but still left a trailing CentOS user and config files.
But then I had to do a
Code: [Select]
sudo userdel -f $USER
to delete the user account, home directory, and mail spool.But then I had to do a
Code: [Select]
locate $USER
to find other straggler files (SSL, MySQL DB backups, Apache logs, etc.). Then I manually deleted all those orphaned files. Then I could re-migrate the user from a cPanel server.
1182
Migration from other control panels / Re: email quotas set to 0/0 MB
« on: May 17, 2020, 04:04:14 AM »
I am seeing that, too on the latest CWP, attempting server migrations from cPanel. I don't know if the "0" setting means unlimited quota, or if it actual means a quota of 0MB.
1183
CentOS-WebPanel GUI / Re: Answering my own question
« on: May 15, 2020, 05:43:04 PM »
I'll answer my own question out of posterity, in case it will help someone else. Turns own the CentOS VM I was dabbling with had libvrtd enabled by default, instead of being a lean mean LAMP stack. So to fix the problem, you have to get rid of the virb0 and virbr0-nic virtual bridge interfaces.
Code: [Select]
systemctl stop libvirtd.service
systemctl disable libvirtd.service
brctl show
ip link set virbr0 down
brctl delbr virbr0
brctl show
ifconfig -a
Reboot if necessary and you should be left with just your primary en and loopback interfaces.
1184
CentOS-WebPanel GUI / Re: Enable NAT button keeps on coming even NAT is enable
« on: May 15, 2020, 05:24:28 PM »
I have this error too — even though I have a static IP at a datacenter, CWP is somehow "autodetecting" a NAT'd IP address. I have to dismiss the alert regularly.
1185
CentOS-WebPanel GUI / Re: Dark Theme
« on: May 15, 2020, 04:30:09 PM »
I wrote to the developer of the CWP Dark Theme variant on GitHub with some suggestions, but I'll post this here, too. As others point out, the admin theme customizations are overwritten with each update, so you have to call this script via cron after the update or manually run this script to re-apply the dark theme. I took the opportunity to clean up his code a bit, but this is what I am using.
Create the file:
Here is the updated script:
Create the file:
Code: [Select]
/scripts/dark_cwp
Set it as executable:Code: [Select]
chmod +x /scripts/dark_cwp
Here is the updated script:
Code: [Select]
#!/bin/bash
#=====================================#
# StingRay's Total Dark Theme for CWP #
#=====================================#
# Need to be a sudoer/root
sudo -p "Please authenticate to enable CWP Dark Theme (admin password): " printf "" || {
echo "Abort: could not authenticate" >&2
exit 1
}
echo "Applying Dark Theme to CWP..."
sudo chattr -i /usr/local/cwpsrv/htdocs/admin/design/css/custom.css
sudo chmod 644 /usr/local/cwpsrv/htdocs/admin/design/css/custom.css
sudo tee -a /usr/local/cwpsrv/htdocs/admin/design/css/custom.css <<'END' > /dev/null
/* DARK THEME */
html,.deleted
{
background:#000;
-webkit-filter:invert(1) hue-rotate(180deg)!important;
-moz-filter:invert(1) hue-rotate(180deg)!important;
filter:invert(1) hue-rotate(180deg)!important;
filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=0,xray=0,mirror=0,invert=1,opacity=1,rotation=2)!important;
-webkit-transition:100ms ease all;
transition:100ms ease all;
-o-transition-duration:100ms ease all
}
img,embed[flashvars],[type*=\"application/x-shockwave-flash\"],[type*=\"application/x-silverlight\"]
{
-webkit-filter:invert(1) hue-rotate(180deg)!important;
-moz-filter:invert(1) hue-rotate(180deg)!important;
filter:invert(1) hue-rotate(180deg)!important;
filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=0,xray=0,mirror=0,invert=1,opacity=1,rotation=2)!important;
}
tr > td > a > img,th > a > img
{
filter:url(\"data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'invert\'><feColorMatrix type=\'matrix\' values=\'-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0\$filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=0,xray=0,mirror=0,invert=0,opacity=1,rotation=2)!important
}
END
sudo chattr +i /usr/local/cwpsrv/htdocs/admin/design/css/custom.css
echo "Dark Theme applied successfully!"