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.
226
CentOS 7 Problems / Re: Cannot managed dababase MySQL from CWP7
« on: March 31, 2022, 10:11:17 AM »
Did you change the password using the script /scripts/mysql_pwd_reset?
If not, you need to run it to change the password again.
Otherwise please advise that you did use the script, and we will have to troubleshoot further.
If not, you need to run it to change the password again.
Otherwise please advise that you did use the script, and we will have to troubleshoot further.
227
CentOS Configuration / Re: cron task not executed manually
« on: March 31, 2022, 10:06:12 AM »
Because the button on the webpage invokes the same command that the crontab does. The issue is, that when you add a crontab, it is actually added to the users actual crontab on the system. However, when run manually, PHP tries running the command. Because the code is encrypted, I can't say as to why it doesn't work, but generally PHP uses "exec, system", or one of many commands to perform operations on the system. Generally though, PHP needs you specify full path (Ex: /bin/bash /full/path/to/script.sh), whereas crontab can simply execute the script directly.
That's why I mentioned checking the log. If you don't see anything in those logs, check /usr/local/cwpsrv/logs/ to see if there is anything there.
That's why I mentioned checking the log. If you don't see anything in those logs, check /usr/local/cwpsrv/logs/ to see if there is anything there.
228
iptables / Re: ssh brute force attacks to random ports/users
« on: March 30, 2022, 10:50:39 PM »
You should be using csf firewall /etc/csf/csf.conf
Using iptables directly can cause you serious issues if you do something wrong. Plus using CSF, you have LFD: Look for the below options in csf.conf
RESTRICT_SYSLOG = "3"
LF_SSHD = "5"
LF_SSHD_PERM = "1"
Using iptables directly can cause you serious issues if you do something wrong. Plus using CSF, you have LFD: Look for the below options in csf.conf
RESTRICT_SYSLOG = "3"
LF_SSHD = "5"
LF_SSHD_PERM = "1"
229
iptables / Re: ssh brute force attacks to random ports/users
« on: March 30, 2022, 09:51:25 PM »
fail2ban is your answer
230
CentOS Configuration / Re: cron task not executed manually
« on: March 30, 2022, 09:07:11 AM »
Cron tasks cannot be run manually. When you run the command from php, it's mimicking cron running, but it's actually php running the script. Could be a permission issue as to why it's not running. Check /usr/local/apache/domlogs/(domain).error.log to see why the script doesn't run when executed from web.
231
Installation / Re: What distro to go for..
« on: March 29, 2022, 10:29:14 PM »I'm not sure about the fear for centos 8 stream with delayed cwp repos. I'm running it.
Did I make a mistake?
The issue with CentOS, is that there is no "In Place" upgrade option. If you go 8, when 9 comes out, you will have to do a complete reinstall. Unlike Ubuntu/Debian, where you can simply change the version in apt, and do an in place upgrade. Not sure about the other 2 listed if that is possible.
232
CentOS 7 Problems / Re: I change server IP adress and every website stop working.
« on: March 29, 2022, 06:10:14 AM »
That's fine.
233
CentOS 7 Problems / Re: I change server IP adress and every website stop working.
« on: March 29, 2022, 05:26:01 AM »
is 87.121.167.48 still listed as an IP in CWP. If it is, remove it, and try rebuilding vhosts again
234
CentOS 7 Problems / Re: I change server IP adress and every website stop working.
« on: March 29, 2022, 04:26:13 AM »
Can you post one of the config files from
If Nginx: /etc/nginx/conf.d/vhosts
if apache: /usr/local/apache/conf.d/vhosts
If Nginx: /etc/nginx/conf.d/vhosts
if apache: /usr/local/apache/conf.d/vhosts
235
CentOS 7 Problems / Re: I change server IP adress and every website stop working.
« on: March 29, 2022, 03:49:18 AM »
I see that you use remote DNS for your domains. Did you update the A records for the domains to point to the new ip?
236
CentOS 7 Problems / Re: I change server IP adress and every website stop working.
« on: March 29, 2022, 02:57:32 AM »
To Start, Log into CWP Admin.
First go here:
admin/index.php?module=ip_manager
Make sure the NEw IP is assigned
Then
admin/index.php?module=settings
Set the shared IP to the new IP
Then
/admin/index.php?module=WebServers_conf
Check Rebuild all webservers on save, and click save.
If you have any sites that use an individual config, they will need to be rebuilt as well:
admin/index.php?module=WebServers_domain
Now. If you have removed the Old IP (Or plan to), You will have to rebuild your mailservers as well. Everything on your system is tied to the original IP (especially SSL based software). So we need to know if you are keeping the old IP, or removing it. But the initial step above will get your started.
First go here:
admin/index.php?module=ip_manager
Make sure the NEw IP is assigned
Then
admin/index.php?module=settings
Set the shared IP to the new IP
Then
/admin/index.php?module=WebServers_conf
Check Rebuild all webservers on save, and click save.
If you have any sites that use an individual config, they will need to be rebuilt as well:
admin/index.php?module=WebServers_domain
Now. If you have removed the Old IP (Or plan to), You will have to rebuild your mailservers as well. Everything on your system is tied to the original IP (especially SSL based software). So we need to know if you are keeping the old IP, or removing it. But the initial step above will get your started.
237
CentOS 7 Problems / Re: I change server IP adress and every website stop working.
« on: March 29, 2022, 02:05:12 AM »
You need to rebuild all of the Config files in CWP
238
MySQL / Re: Problem Danger: MySQL - BAD CONFIGURATION DETECTED
« on: March 28, 2022, 03:22:27 AM »
I'm honestly at a loss mate. Everyting "Looks" good.
The only thing I can think of is to run the following scripts and see what happens:
/scripts/update_cwp
/scripts/cwp_update_all
/scripts/restart_cwpsrv
The only thing I can think of is to run the following scripts and see what happens:
/scripts/update_cwp
/scripts/cwp_update_all
/scripts/restart_cwpsrv
239
MySQL / Re: Problem Danger: MySQL - BAD CONFIGURATION DETECTED
« on: March 28, 2022, 02:19:55 AM »240
MySQL / Re: Problem Danger: MySQL - BAD CONFIGURATION DETECTED
« on: March 28, 2022, 12:32:03 AM »
Please post the results of the following command:
tail -n 50 /usr/local/cwpsrv/logs/error_log
tail -n 50 /usr/local/cwpsrv/logs/error_log