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.
Pages: [1] 2
1
Updates / Re: update 0.9.8.1239 remove all users database + postfix acc
« on: July 05, 2026, 09:44:26 PM »
/usr/local/cwpsrv/htdocs/resources/scripts/update_cwp and I get the new file temp_hacker_check updated (fixed) and version of cwpsrv: 1.15.10
Now there is an error on the script fix_cwpsrv_logs with syntax error on line 11 (missed semicolon at the end and more things the cwpsrv can't restart but stay active.
I opened a ticket, waiting for fix
Now there is an error on the script fix_cwpsrv_logs with syntax error on line 11 (missed semicolon at the end and more things the cwpsrv can't restart but stay active.
I opened a ticket, waiting for fix
2
Updates / fix_cwpsrv_logs broken and prevent cpwsrv to restart
« on: July 05, 2026, 02:35:02 PM »
Seems that in the new fix_cwpsrv_logs file there are some errors:
line 14 is not completed (I suppose lack of ";" at the end)
NEW_BLOCK=" map \$http_x_real_ip \$stvarni_user_ip {\n \"\" \$remote_addr;\n default \$http_x_real_ip;\n }\n\n log_format main '\$stvarni_user_ip - \$remote_user [\$time_local] \"\$request\" \$status \$body_byte$
But then no way to restart cwpsrv.service
- "$" at the end of the line 14 seems wrong
- system says : cwpsrv: [emerg] nknown "body_byte" variable (I suppose unknown)
- system says : cwpsrv: [warn] he "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /usr/local/cwpsrv/conf.d/api.conf:8 (Just warning, I suppose it should be "listen localhost ssl;")
I rewrite line 11 in cwpsrv.conf as "log_format main '$stvarni_user_ip - $remote_user [$time_local] $request $status';" so I could have cwpsrv.service restarted and have everything working.
line 14 is not completed (I suppose lack of ";" at the end)
NEW_BLOCK=" map \$http_x_real_ip \$stvarni_user_ip {\n \"\" \$remote_addr;\n default \$http_x_real_ip;\n }\n\n log_format main '\$stvarni_user_ip - \$remote_user [\$time_local] \"\$request\" \$status \$body_byte$
But then no way to restart cwpsrv.service
- "$" at the end of the line 14 seems wrong
- system says : cwpsrv: [emerg] nknown "body_byte" variable (I suppose unknown)
- system says : cwpsrv: [warn] he "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /usr/local/cwpsrv/conf.d/api.conf:8 (Just warning, I suppose it should be "listen localhost ssl;")
I rewrite line 11 in cwpsrv.conf as "log_format main '$stvarni_user_ip - $remote_user [$time_local] $request $status';" so I could have cwpsrv.service restarted and have everything working.
3
Other / Re: The CWPpro version 0.9.8.1239 update destroyed sshd and .ssh.
« on: July 02, 2026, 02:14:09 PM »
Same for me with Rocky8. Problem comes with the user "operator" who have as home directory /root (correct as it has task of maintenance). Script found that "operator" is a hacker 


??
You can take out operator from the list in the script but it will probably be updated.
The script set "operator" with a nologin shell (/sbin/nologin in /etc/passwd) but continue to consider it as dangerous (eval echo "~operator" still output /root).
As I don't know if it's safe to remove operator user (some people say yes) I change the home directory for that user: usermod -d /home operator.
Other thing incorrect: if the file /root/.ssh is configured as immutable (+i) then everyday it gets out as unprotected.
It seems to me that the script has been done with urgency for a specific case, but lack few things.



??You can take out operator from the list in the script but it will probably be updated.
The script set "operator" with a nologin shell (/sbin/nologin in /etc/passwd) but continue to consider it as dangerous (eval echo "~operator" still output /root).
As I don't know if it's safe to remove operator user (some people say yes) I change the home directory for that user: usermod -d /home operator.
Other thing incorrect: if the file /root/.ssh is configured as immutable (+i) then everyday it gets out as unprotected.
It seems to me that the script has been done with urgency for a specific case, but lack few things.
4
CentOS 8 Problems / Re: Remove permanently goaccess
« on: July 02, 2026, 12:32:10 PM »
It was doing the job correctly, but today it appears again
5
CentOS 8 Problems / Re: Remove permanently goaccess
« on: June 26, 2026, 09:57:27 AM »
Thanks a lot. I'll try it.
6
CentOS 8 Problems / Remove permanently goaccess
« on: June 25, 2026, 09:13:49 AM »
I don't need goaccess, I use Matomo. I removed goaccess (yum remove goaccess) but every day it's there again and working too building huge quantity of files. How can I get rid of it definitively? I suppose it's hard coded in cron.php, but I don't understand why.
7
CentOS 7 Problems / Re: NGINX php-fpm 502 and no sockets created
« on: January 05, 2023, 01:25:16 PM »
Check out if the USERNAME folder (websites) has write permission (755), otherwise le sock files wouldn'be be created
8
Installation / Re: nginx server socket file not created for one of my users
« on: January 05, 2023, 01:20:43 PM »
This is old, but I had the same problem and it has been solved checking the permission on the username folder where is stored the websites of this user. It has to be writable for the owner (perhaps 755)
9
CentOS-WebPanel Bugs / Migration and mysql stored procedure
« on: June 06, 2021, 09:45:42 PM »
When a migration between 2 cwp servers the mysql databases doesn't migrate the stored procedures and the events. It should be easy to fix it just adding --events and --routines parameters to the dump triggers are default.
Hope they do it
Hope they do it
10
CentOS-WebPanel Bugs / mysql script mysql_pwd_reset doesn't work
« on: June 05, 2021, 09:42:47 PM »
Password get changed in /root/my.conf and /usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php but then there is no change in mysql database
It's done with
systemctl stop mysqld
systemctl set-environment MYSQLD_OPTS="--skip-grant-tables"
systemctl start mysqld
mysql -u root
mysql> UPDATE mysql.user SET authentication_string = PASSWORD('MyNewPassword') WHERE User = 'root' AND Host = 'localhost';
mysql> FLUSH PRIVILEGES;
mysql> quit
systemctl stop mysqld
systemctl unset-environment MYSQLD_OPTS
systemctl start mysqld
mysql -u root -p
It's done with
systemctl stop mysqld
systemctl set-environment MYSQLD_OPTS="--skip-grant-tables"
systemctl start mysqld
mysql -u root
mysql> UPDATE mysql.user SET authentication_string = PASSWORD('MyNewPassword') WHERE User = 'root' AND Host = 'localhost';
mysql> FLUSH PRIVILEGES;
mysql> quit
systemctl stop mysqld
systemctl unset-environment MYSQLD_OPTS
systemctl start mysqld
mysql -u root -p
11
CSF Firewall / Re: CWP add temporary allow ip on login control panel
« on: June 03, 2021, 09:45:44 PM »
Sorry but what I mean is that when I login the admin panel cwp add an temporary entry in csf to allow for 24 hours my own client IP.
This is done on one server and not on the other with the same configuration. I would like to have it on both but I don't know how to do it.
Thanks
This is done on one server and not on the other with the same configuration. I would like to have it on both but I don't know how to do it.
Thanks
12
CSF Firewall / CWP add temporary allow ip on login control panel
« on: June 01, 2021, 02:00:04 PM »
I have 2 servers with the same configuration.
One add my ip when I login to the admin panel and the other not.
I don't remember having configured this out.
Where does this get configured
Thanks
One add my ip when I login to the admin panel and the other not.
I don't remember having configured this out.
Where does this get configured
Thanks
13
CentOS-WebPanel Bugs / CSF makes user cannot log through user panel
« on: May 14, 2021, 03:10:12 PM »
Port 2082 and 2083 are open in csf.conf and server is whitelisted
[root@xxx ~]# lsof -i :2083
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
httpd 3952 nobody 157u IPv4 470156 0t0 TCP localhost:45456->localhost :radsec (CLOSE_WAIT)
httpd 3952 nobody 162u IPv4 777864 0t0 TCP localhost:45588->localhost :radsec (CLOSE_WAIT)
httpd 3952 nobody 163u IPv4 929547 0t0 TCP localhost:45636->localhost :radsec (CLOSE_WAIT)
httpd 3952 nobody 164u IPv4 1023068 0t0 TCP localhost:45730->localhost :radsec (CLOSE_WAIT)
cwpsrv 4777 root 15u IPv4 408277 0t0 TCP *:radsec (LISTEN)
cwpsrv 4778 root 15u IPv4 408277 0t0 TCP *:radsec (LISTEN)
cwpsrv 4780 root 15u IPv4 408277 0t0 TCP *:radsec (LISTEN)
After logging user is pushed back to login page but if I flush th iptables rules through csf -f then user get logged and it works fine.
Any suggestion to fix it?
Thanks
[root@xxx ~]# lsof -i :2083
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
httpd 3952 nobody 157u IPv4 470156 0t0 TCP localhost:45456->localhost :radsec (CLOSE_WAIT)
httpd 3952 nobody 162u IPv4 777864 0t0 TCP localhost:45588->localhost :radsec (CLOSE_WAIT)
httpd 3952 nobody 163u IPv4 929547 0t0 TCP localhost:45636->localhost :radsec (CLOSE_WAIT)
httpd 3952 nobody 164u IPv4 1023068 0t0 TCP localhost:45730->localhost :radsec (CLOSE_WAIT)
cwpsrv 4777 root 15u IPv4 408277 0t0 TCP *:radsec (LISTEN)
cwpsrv 4778 root 15u IPv4 408277 0t0 TCP *:radsec (LISTEN)
cwpsrv 4780 root 15u IPv4 408277 0t0 TCP *:radsec (LISTEN)
After logging user is pushed back to login page but if I flush th iptables rules through csf -f then user get logged and it works fine.
Any suggestion to fix it?
Thanks
14
CentOS-WebPanel Bugs / Re: Cant login to CWP User :2083
« on: May 10, 2021, 10:21:00 PM »
Same problem with version 0.9.8.1061
No solution?
?
No solution?
?
15
CentOS 7 Problems / php.ini per folder or user
« on: May 10, 2021, 05:21:49 PM »
I have centos 7 and php-fpm 8.0
I created a file /home/USERNAME/php.ini with a new value for upload_max_filesize
But the value I get with phpInfo stay the same after reload php-fpm and restarted Apache
New php.ini is:
[PHP]
upload_max_filesize = 20M
Is php-fpm doesn't allow php.ini per folder?
Thanks
I created a file /home/USERNAME/php.ini with a new value for upload_max_filesize
But the value I get with phpInfo stay the same after reload php-fpm and restarted Apache
New php.ini is:
[PHP]
upload_max_filesize = 20M
Is php-fpm doesn't allow php.ini per folder?
Thanks
Pages: [1] 2
