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 - rcschaff

Pages: 1 ... 46 47 [48] 49 50 ... 57
706
SSL / Re: SSL_ERROR_BAD_CERT_DOMAIN after SSL renewal
« on: February 24, 2020, 03:14:43 PM »
I would try rebuilding all vhosts then.  That seems very odd.  Could be possible that the certificate renewal failed.  check /var/log/cwp/cwp_sslmod.log for any errors.

707
PHP / Re: manual install php fpm
« on: February 24, 2020, 02:41:16 PM »
CWP builds PHP from source, which is why they can choose where to install it, and specifically what mods to compile.  If you want that ability, spend the $12/year and get pro.

Otherwise, follow the google directions, and pray for the best.

708
SSL / Re: SSL_ERROR_BAD_CERT_DOMAIN after SSL renewal
« on: February 24, 2020, 02:37:33 PM »
Unless your modified a vhost, nothing should break. You can rebuild JUST that one domains vhosts as well.

CWP  -> Webserver Settings -> Webservers Domain Config

709
Let's try this again.

The more information you can provide, the more someone can help you.
1)  What setup are you running.  Apache, NGINX+ Apache, ...  ***CWP -> Webserver Settings -> Select Webserver **
2)  If you don't mine, post the domain your having trouble with.
3)  check your error log, and possibly post the last 30 lines or so right after you try to hit the page.  Of course this error log will depend on #1. 

710
DNS / Re: Suddenly ns1 and ns2 resolves to nothing...
« on: February 24, 2020, 02:29:07 PM »
1)  Find out why bind/named failed. Check the error logs /var/log
2)  Your NS servers should ALWAY have an IP if setup correctly. You should register your nameservers/host records with your domain registar.
3)  Even if 2 is true and you bind has failed on both servers nothing will resolve.  But if even 1 is running you should be able to resolve dns, albeit a few failures.  So keep the serves up

711
SSL / Re: SSL_ERROR_BAD_CERT_DOMAIN after SSL renewal
« on: February 24, 2020, 02:24:03 PM »
rebuild the config files.  It's a weird bug that doesn't always happen, but does on occasion.

712
Installation / Re: centos 7 with virtualbox
« on: February 24, 2020, 02:22:55 PM »
1)  Used a bridged network.   A NAT network treats your host computer as a router behind a router.
2)  Setup your IP issued on you VM's IP as a DMZ.
3)  Make sure no port forwarding rules are setup to other boxes, they will override DMZ
4)  Make sure CWP is in NAT mode.
5)  After setting CWP to NAT mode, rebuild all configs.

713
New Modules / Re: [Module] CWP_2FA
« on: February 24, 2020, 01:22:06 AM »
Video uploaded to the GitHub Page

714
CentOS 7 Problems / Re: Nagios Xi and CWP Pro problem
« on: February 23, 2020, 10:26:01 PM »
Out of curiosity, does the service shut down after an update.
 Do you really need to restart the entire server, or can you just restart the service...

715
New Modules / Re: Two Factor Authorization Mod
« on: February 22, 2020, 04:27:52 AM »
Module moved to github: https://github.com/rcschaff82/cwp_2fa

Created new topic noting so and locking this one.

716
New Modules / [Module] CWP_2FA
« on: February 22, 2020, 04:27:06 AM »
I have decided to move the module to github. 

Please visit: https://github.com/rcschaff82/cwp_2fa

717
New Modules / Re: Two Factor Authorization Mod
« on: February 22, 2020, 04:03:40 AM »

718
New Modules / Re: Two Factor Authorization Mod
« on: February 22, 2020, 03:54:45 AM »
Go-to the end of #!/bin/sh and hit enter after the h.  For some reason a carriage return was added to the end of the line.

719
New Modules / Re: Two Factor Authorization Mod
« on: February 22, 2020, 03:45:51 AM »
Remove the first line.  Didn't realize it copied

720
New Modules / Re: Two Factor Authorization Mod
« on: February 22, 2020, 03:30:56 AM »
Use this, as I forgot to update the check of the user configs was changed as well.
/root/watch.sh
Code: [Select]
#!/bin/sh
pid=` ps aux | grep -v grep | pgrep -f cron.php`
check_user()
{
echo "//////////User Checks//////////"
cd /usr/local/cwpsrv/var/services/users/login
if [ "$(tail -1 index.php)" == "?>" ] ; then
                return
        fi
chattr -i .
chattr -i *
echo "Moving Files"
cp -f index.php abcdefg.php
cp -f login.php index.php
chattr +i *
chattr +i .
}
check_configs()
{
echo "//////////Config Checks//////////"
FILES=/usr/local/cwpsrv/conf.d/users/*
for f in $FILES
do
if ! grep -q "/home/google" $f; then
    echo updateing $f
     sed -i -re 's@open_basedir(.*)(";)@\1:/home/google\2@' $f
fi
done
if grep -q "open_basedir = /tmp" /usr/local/cwpsrv/conf.d/users.conf; then
updating users.conf
sed -i "s@fastcgi_param   PHP_ADMIN_VALUE \"open_basedir = /tmp@fastcgi_param   PHP_ADMIN_VALUE \"open_basedir = /home/:/tmp@g" /usr/local/cwpsrv/conf.d/users.conf

fi
/usr/local/cwpsrv/bin/cwpsrv -s reload
find /home/*/.conf/cwp.ini -exec sed -i "s@original@modified@g" {} +

}
check_admin()
{
echo "//////////Admin Checks//////////"
        cd /usr/local/cwpsrv/htdocs/admin/login/
        if [ "$(tail -1 index.php)" == "?>" ] ; then
                return
        fi
        echo "Moving Admin"
        chattr -i .
        chattr -i *
        ls | grep -P "[a-z0-9]{16}" | xargs -d"\n" rm
        RAND_CHARS=$(openssl rand -hex 16)
        mv index.php $RAND_CHARS.php
        cp index_working.php index.php
        sed -i "s@define(\"DO_LOGIN\",\"\");@define(\"DO_LOGIN\",\"$RAND_CHARS.php\");@g" index.php
        chattr +i *
        chattr +i .
}
if [ "$pid" != "" ]; then
while [ -e /proc/$pid ]
do
    sleep .6
done
fi
echo "Start Checks"
check_user
check_admin
check_configs


Pages: 1 ... 46 47 [48] 49 50 ... 57