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 ... 68 69 [70] 71
1036
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.

1037
Information / Re: What is mail_server_antispam.zip?
« on: July 01, 2020, 01:28:46 PM »
That and the erroneous SpamAssassin logfile, literally named
Code: [Select]
${SAHOME}spamd.loginstead 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

1038
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

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

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

1041
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).

1042
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.
Code: [Select]
sudo userdel -f $USERto 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.

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

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

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

1046
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:
Code: [Select]
/scripts/dark_cwpSet 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!"

1047
Suggestions / Re: Customize CSS in admin panel
« on: May 15, 2020, 04:23:09 PM »
You have to remove the immutable bit before making changes to the CSS files; and it is better practice to add to custom.css
Code: [Select]
sudo chattr -i /usr/local/cwpsrv/htdocs/admin/design/css/custom.css
sudo chmod 644 /usr/local/cwpsrv/htdocs/admin/design/css/custom.css

As mentioned, updates wipe out this file, so you have to call cron after updates to re-inject your code. Put something like this in a script:
Code: [Select]
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

/* CSS CUSTOMIZATIONS */
{ blah }
END
(I am using this to inject the dark_cwp customizations into the CSS.)

1048
Migration from other control panels / HH : MM : SS
« on: May 13, 2020, 10:33:02 PM »
No specific HH : MM : SS ? Just any random time?
Is it typically Croatia (GMT +2) working hours?

1049
CentOS-WebPanel Bugs / Apache vhosts contain typo
« on: May 13, 2020, 10:19:27 PM »
Every Apache vhost in /usr/local/apache/conf.d/vhosts/ contains a typo:
Code: [Select]
ProxyPassReverse /roundcube https://127.0.0.1:2031/roudcube/should be
Code: [Select]
ProxyPassReverse /roundcube https://127.0.0.1:2031/roundcube/(missing the n in roundcube )

1050
Migration from other control panels / new version?
« on: May 13, 2020, 10:15:24 PM »
I've been running a CWP server for a year now, but haven't really gotten into the forum or really had many issues until now. Now I am attempting to move several cPanel VPS servers into CWP-driven VMs and running into migration issues.

So when is the nightly update release schedule?

Pages: 1 ... 68 69 [70] 71