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.
1
Installation / Re: PHP is not installed
« on: July 30, 2026, 09:46:05 AM »
Thank you! I've restored the OS from a backup. Has your installation package fixed this issue? If so, we're ready to reinstall CWP7.
2
Installation / Re: PHP is not installed
« on: July 29, 2026, 01:56:26 AM »
I switched my OS to AlmaLinux 8, and PHP isn't installed either.
3
Installation / PHP is not installed
« on: July 29, 2026, 01:37:14 AM »
I installed CWP7 on Almalinux 9. After logging into CWP7, I found that PHP Version Switcher, PHP Selector 2, and PHP-FPM Selector all couldn't select a PHP version. Clicking on the manage option gave a blank. I reinstalled it once and saw the following error, but the next step of the installation completed, and I didn't see the PHP installation process.
Redirecting to /bin/systemctl reload httpd.service
Redirecting to /bin/systemctl reload httpd.service
Redirecting to /bin/systemctl reload httpd.service
grep: /var/log/cwp/services_action.log: No such file or directory
sed: can't read /opt/alt/php*/usr/php/php.ini: No such file or directory
sed: can't read /opt/alt/php*/usr/php/php.ini: No such file or directory
ls: cannot access 'php-fpm*.service': No such file or directory
warning: /var/tmp/rpm-tmp.mx0hiX: Header V4 DSA/SHA1 Signature, key ID 00f97f56: NOKEY
Redirecting to /bin/systemctl reload httpd.service
Redirecting to /bin/systemctl reload httpd.service
Redirecting to /bin/systemctl reload httpd.service
grep: /var/log/cwp/services_action.log: No such file or directory
sed: can't read /opt/alt/php*/usr/php/php.ini: No such file or directory
sed: can't read /opt/alt/php*/usr/php/php.ini: No such file or directory
ls: cannot access 'php-fpm*.service': No such file or directory
warning: /var/tmp/rpm-tmp.mx0hiX: Header V4 DSA/SHA1 Signature, key ID 00f97f56: NOKEY
4
Mod_Security / 403 Error
« on: June 05, 2026, 04:36:50 AM »
I installed Mod Security with OWASP rules, but when I access the website, it shows a 403 error. I followed the official CWP7 guide https://www.youtube.com/watch?v=pll0GUpSJ_Y, but I could not find my IP in the log. Why is this happening, and how can I fix the 403 error?
5
Mod_Security / Re: After installing Mod Security, Apache cannot start
« on: April 04, 2026, 12:55:00 AM »
OS: AlmaLinux release 9.6
Mod Security version: Mod Security has been uninstalled, I don't know
Ruleset. I tried OWASP old and Comodo WAF, and Apache cannot start with either.
Mod Security version: Mod Security has been uninstalled, I don't know
Ruleset. I tried OWASP old and Comodo WAF, and Apache cannot start with either.
6
Mod_Security / After installing Mod Security, Apache cannot start
« on: April 04, 2026, 12:37:39 AM »
After installing Mod Security, Apache cannot start. In the log, I saw the following error. How should I fix it?
Apr 4 00:26:59 li117 systemd[1]: Starting Web server Apache...
Apr 4 00:26:59 li117 kernel: Firewall: *UDP_OUT Blocked* IN= OUT=eth0 SRC=117.000.000.000 DST=110.000.000.000 LEN=
Apr 4 00:26:59 li117 apachectl[3256381]: httpd: Syntax error on line 513 of /usr/local/apache/conf/httpd.conf: Syntax error on line 2 of /usr/local/apache/conf.d/mod_security.conf: Cannot load /usr/lib64/ into server: /usr/lib64/: cannot read file data: Is a directory
Apr 4 00:26:59 li117 systemd[1]: httpd.service: Control process exited, code=exited, status=1/FAILURE
Apr 4 00:26:59 li117 systemd[1]: httpd.service: Failed with result 'exit-code'.
Apr 4 00:26:59 li117 systemd[1]: Failed to start Web server Apache.
Apr 4 00:26:59 li117 systemd[1]: Starting Web server Apache...
Apr 4 00:26:59 li117 kernel: Firewall: *UDP_OUT Blocked* IN= OUT=eth0 SRC=117.000.000.000 DST=110.000.000.000 LEN=
Apr 4 00:26:59 li117 apachectl[3256381]: httpd: Syntax error on line 513 of /usr/local/apache/conf/httpd.conf: Syntax error on line 2 of /usr/local/apache/conf.d/mod_security.conf: Cannot load /usr/lib64/ into server: /usr/lib64/: cannot read file data: Is a directory
Apr 4 00:26:59 li117 systemd[1]: httpd.service: Control process exited, code=exited, status=1/FAILURE
Apr 4 00:26:59 li117 systemd[1]: httpd.service: Failed with result 'exit-code'.
Apr 4 00:26:59 li117 systemd[1]: Failed to start Web server Apache.
7
CSF Firewall / Cannot enable Firewall
« on: March 17, 2026, 02:41:19 AM »
I ran [root@server ~]# csf -e
and it shows the following error
Error* The path to iptables is either not set or incorrect for IPTABLES [/sbin/iptables] in /etc/csf/csf.conf at /usr/local/csf/lib/ConfigServer/URLGet.pm line 39.
Compilation failed in require at /usr/sbin/csf line 34.
BEGIN failed--compilation aborted at /usr/sbin/csf line 34.
How should I fix it?
and it shows the following error
Error* The path to iptables is either not set or incorrect for IPTABLES [/sbin/iptables] in /etc/csf/csf.conf at /usr/local/csf/lib/ConfigServer/URLGet.pm line 39.
Compilation failed in require at /usr/sbin/csf line 34.
BEGIN failed--compilation aborted at /usr/sbin/csf line 34.
How should I fix it?
8
Apache / Re: Apache automatic shutdown
« on: November 26, 2025, 05:05:09 AM »
I checked, and I did not set up certificates for mail, webmail, ftp, or cPanel services. However, I still deleted the existing certificates and reapplied for my website (unselecting mail, webmail, FTP, or cPanel).
Let me see if this error occurs again.
Let me see if this error occurs again.
9
Apache / Apache automatic shutdown
« on: November 26, 2025, 01:36:59 AM »My VPS is running on CWP 0.9.8 and AlmaLinux 9.5. It has been running for several months, and everything was working fine before, but now Apache often stops automatically. When Apache stops automatically, I see the following entries in the error log
[Tue Nov 25 03:15:10.714565 2025] [ssl:warn] [pid 2664906:tid 2664906] AH01909: webmail.mydomain.com:443:0 server certificate does NOT include an ID which matches the server name
[Tue Nov 25 03:15:10.717558 2025] [mpm_event:notice] [pid 2664906:tid 2664906] AH00489: Apache/2.4.62 (Unix) OpenSSL/3.2.2 configured -- resuming normal operations
[Tue Nov 25 03:15:10.717580 2025] [core:notice] [pid 2664906:tid 2664906] AH00094: Command line: '/usr/local/apache/bin/httpd'
But the subdomain webmail.mydomain.com does not exist, and I haven't applied for an SSL certificate for this domain either.
And
It will also automatically stop when someone scans.
[Sat Nov 01 20:45:25.167806 2025] [:error] [pid 1265937:tid 1265968] [client 78.153.140.178:33986] File does not exist: /usr/local/apache/htdocs/app_dev.php
[Sat Nov 01 20:45:33.113079 2025] [:error] [pid 1266039:tid 1266056] [client 78.153.140.178:45744] File does not exist: /usr/local/apache/htdocs/test.php
[Sat Nov 01 22:13:54.412442 2025] [:error] [pid 1265937:tid 1265954] [client 78.153.140.176:46702] File does not exist: /usr/local/apache/htdocs/app_dev.php
[Sat Nov 01 22:13:54.836213 2025] [:error] [pid 1257726:tid 1257748] [client 78.153.140.176:46728] File does not exist: /usr/local/apache/htdocs/pinfo.php
[Sun Nov 02 02:00:58.269621 2025] [:error] [pid 1266038:tid 1266081] [client 78.153.140.203:52228] File does not exist: /usr/local/apache/htdocs/app_dev.php
[Sun Nov 02 03:44:08.863853 2025] [mpm_event:notice] [pid 1257719:tid 1257719] AH00492: caught SIGWINCH, shutting down gracefully
Please help!
10
Problems on other RedHat linux servers / Re: Logrotate did not generate the rotated log file
« on: September 22, 2025, 12:02:19 AM »
This is the result of the command.
Command:lsattr /usr/local/apache/domlogs/sample.com.log
Result: --------------e------- /usr/local/apache/domlogs/sample.com.log
Command:lsattr /usr/local/apache/domlogs/sample.com.log
Result: --------------e------- /usr/local/apache/domlogs/sample.com.log
11
Problems on other RedHat linux servers / Re: Logrotate did not generate the rotated log file
« on: September 21, 2025, 12:09:30 AM »
I checked the logrotate logs and found the following error:
error: error opening /usr/local/apache/domlogs/sample.com.log: Read-only file system
Then I checked the permissions and owner of this file. Its permissions are 644, and the owner is root. Both permissions and owner seem correct. Why is it still read-only?
error: error opening /usr/local/apache/domlogs/sample.com.log: Read-only file system
Then I checked the permissions and owner of this file. Its permissions are 644, and the owner is root. Both permissions and owner seem correct. Why is it still read-only?
12
Problems on other RedHat linux servers / Logrotate did not generate the rotated log file
« on: September 20, 2025, 01:07:45 AM »
Logrotate did not generate the rotated log file.
My config
AlmaLinux 9.6
CWP 0.9.8.1216
Contents of File: /etc/logrotate.d/sample.com.log
/usr/local/apache/domlogs/sample.com.log
{
missingok
daily
copytruncate
rotate 7
notifempty
}
However, this feature does not trigger automatically.
Manual triggering can generate new log files.
Why is this? How to automatically generate a new log file?
My config
AlmaLinux 9.6
CWP 0.9.8.1216
Contents of File: /etc/logrotate.d/sample.com.log
/usr/local/apache/domlogs/sample.com.log
{
missingok
daily
copytruncate
rotate 7
notifempty
}
However, this feature does not trigger automatically.
Manual triggering can generate new log files.
Why is this? How to automatically generate a new log file?
13
Installation / Re: AlmaLinux 8 or AlmaLinux 9
« on: July 30, 2025, 12:22:53 AM »
Thank you. I have decided to install AlmaLinux 9. By the way, how do I upgrade MariaDB?
14
Installation / AlmaLinux 8 or AlmaLinux 9
« on: July 28, 2025, 11:54:06 PM »
I want to do a fresh install of CWP, but I haven't decided between AlmaLinux 8 and AlmaLinux 9 yet.
I want to know what the default MariaDB version is for AlmaLinux 8. I need a MariaDB version above 10.5.
Also, I noticed that CWP based on AlmaLinux 9 is missing some features. Which features are those?
Additionally, I noticed that the installation page indicates “EL9 is in beta stage.” Is it suitable for use in a production environment?
I want to know what the default MariaDB version is for AlmaLinux 8. I need a MariaDB version above 10.5.
Also, I noticed that CWP based on AlmaLinux 9 is missing some features. Which features are those?
Additionally, I noticed that the installation page indicates “EL9 is in beta stage.” Is it suitable for use in a production environment?
15
Nginx / Nginx Set up redirects
« on: April 02, 2025, 09:06:57 AM »
My web servers are Nginx & Apache, I want to set up redirects, I added 301 code in htaccess but doesn't work, I don't know how to set up 301 redirects for Nginx.
301 redirects
Target: (.*?) ?roy1/.*?html
To: $1
301 redirects
Target: (.*?) ?roy1/.*?html
To: $1
