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 - pcready.cl

Pages: [1] 2 3
1
MySQL / Re: Yum Manager and # yum update failing to update Maria SQL
« on: March 21, 2021, 12:19:05 PM »
For some strange reason, the manual upgrade MariaDB's installation does't auto enable the unit at systemd.
So, to resolve the CWP Dashboard problem, you simply enable mariadb:
Code: [Select]
# systemctl enable mariadb
Created symlink from /etc/systemd/system/mysql.service to /usr/lib/systemd/system/mariadb.service.
Created symlink from /etc/systemd/system/mysqld.service to /usr/lib/systemd/system/mariadb.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service.
[/quote]

Works for me, thanks!

2
CentOS-WebPanel GUI / Re: Dark Theme
« on: September 10, 2020, 02:00:10 AM »
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!"

Thanks!!!

3
Postfix / Re: Problems Postfix
« on: July 17, 2019, 03:23:33 AM »
Hi,

Basically, the error is saying that the CA is unknown and the connection is dropped. If you will look into your postfix config file /etc/postfix/main.cf, you will notice something like this:

smtpd_tls_key_file = /etc/pki/tls/private/srv.servername.com.key
smtpd_tls_cert_file = /etc/pki/tls/certs/srv.servername.com.crt
smtpd_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt
smtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt

What you need to do is it so change the CA file path to the correct one. In my case, it was:

smtpd_tls_CAfile = /etc/pki/tls/certs/srv.servername.com.bundle
smtp_tls_CAfile = /etc/pki/tls/certs/srv.servername.com.bundle

This happened when I changed the server hostname and installed a Let's Encrypt SSL for it, from the CWP interface. For some reason, it did not change the CA file path automatically. I hope this will help someone facing the same issues.

Works!!!

4
SSL / Re: FTP Cert Not Renew
« on: February 04, 2018, 10:36:30 PM »
I need help with this  :o

5
SSL / Re: FTP Cert Not Renew
« on: January 23, 2018, 11:10:59 PM »
Any?

6
SSL / FTP Cert Not Renew
« on: January 17, 2018, 11:18:12 AM »
I need to renew the FTP SSL, what is the command line? With the autorenew it is not done.

I have CWP7Pro in its latest version and rpm updates.



Thx

7
there is fix on centos forum

my fix:
use python3

yum install python34
yum install python34-setuptools
easy_install-3.4 pip
pip3 install pyspf
pip3 install py3dns
pip3 install pypolicyd-spf

change python3 path in /etc/postfix/master.cf
e.g.
policyd-spf unix - n n - 0 spawn user=nobody argv=/usr/bin/python3 /usr/libexec/postfix/policyd-spf

I hope this will help someone out there.

---------------------------------------
I didn't do this becouse I want to have my cwp compatible with master

No package python34 available.

I installed and complied 3.4.4 but keep getting permission issued in the maillog

post maillog error...

8
SPF / Re: policyd-spf skip_addresses not IP network
« on: October 30, 2017, 04:26:03 PM »
Solved this by:

1) installing pip for python 3 following this: https://stackoverflow.com/questions/32618686/how-to-install-pip-in-centos-7

2) then seeing what modules were missing by invoking the script from ssh with
Code: [Select]
sudo -u nobody /usr/bin/python3.4 /usr/libexec/postfix/policyd-spf     I added the following:
2a) module spf with
Code: [Select]
pip3 install pyspf2b) module dns with
Code: [Select]
pip3 install py3dns2c) module policydspfsupp with
Code: [Select]
pip3 install pypolicyd-spf
3) then changed back to python3 (as per the original solution above) in /etc/postfix/master.cf
Code: [Select]
user=nobody argv=/usr/bin/python3 /usr/libexec/postfix/policyd-spf
4) restarted postfix

thx!!! works perfect.

9
CentOS-WebPanel Bugs / Re: CSF/LDF + MODSEC dont work!!!
« on: August 17, 2017, 02:22:33 AM »
You can find instructions here
http://wiki.centos-webpanel.com/csflfd-firewall-configuration

Dont work for me... I need help, my CWP is PRO!! i paid for a year.

Works now, thx!!!  ;D ;D ;D

10
CentOS-WebPanel Bugs / Re: clamd is stopped....
« on: August 17, 2017, 02:21:57 AM »
same here, clamd uses 100% cpu every start and fail.

11
CentOS-WebPanel Bugs / Re: CSF/LDF + MODSEC dont work!!!
« on: August 09, 2017, 04:47:26 PM »
You can find instructions here
http://wiki.centos-webpanel.com/csflfd-firewall-configuration

Dont work for me... I need help, my CWP is PRO!! i paid for a year.

12
CentOS-WebPanel Bugs / Re: CSF/LDF + MODSEC dont work!!!
« on: August 07, 2017, 03:59:11 PM »
mmm, anybody?

13
CentOS-WebPanel Bugs / Re: CSF/LDF + MODSEC dont work!!!
« on: July 12, 2017, 06:07:22 AM »
@Administrator ???

14
CentOS-WebPanel Bugs / Re: CSF/LDF + MODSEC dont work!!!
« on: April 28, 2017, 01:47:48 PM »
Anybody?

15
CentOS-WebPanel Bugs / Re: CSF/LDF + MODSEC dont work!!!
« on: April 25, 2017, 08:46:06 AM »

Pages: [1] 2 3