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.
16
How to / Re: Clear alerts & notifications from CLI?
« on: December 11, 2025, 04:02:52 AM »
A python solution is to create the below file called clear_notices.py in /usr/local/cwpsrv/htdocs/resources/admin/include/libs/notifications (when executed it simply replaces the notification data which is stored in an array with an empty array)
You can then run in via the terminal
You can also set up up cron job to run it as often as you wish
Code: [Select]
import json
filename = 'notifications.json'
clear_notifications = []
try:
with open(filename, 'w') as json_file:
json.dump(clear_notifications, json_file, indent=4)
print(f"Successfully edited '{filename}' to be an empty array [].")
except FileNotFoundError:
print(f"Error: The file '{filename}' was not found.")
except Exception as e:
print(f"An error occurred: {e}")You can then run in via the terminal
Code: [Select]
cd /usr/local/cwpsrv/htdocs/resources/admin/include/libs/notifications
python3 clear_notices.pyYou can also set up up cron job to run it as often as you wish
17
How to / Re: Clear alerts & notifications from CLI?
« on: December 10, 2025, 10:17:21 AM »
The below is the json file you'd need to alter to be an empty array, it houses the notifications. It can't be empty though, must always contain an empty array eg: [] - or the GUI will crash. There are JSON terminal tools like js & sponge etc that can edit the file if your brave. Alernatively you can execute a python script to overwrite the file contents with empty array
/usr/local/cwpsrv/htdocs/resources/admin/include/libs/notifications/notifications.json
/usr/local/cwpsrv/htdocs/resources/admin/include/libs/notifications/notifications.json
18
How to / Re: Change Domain path to subfolder?
« on: December 07, 2025, 11:44:01 PM »
The below will search & list all files for your pathway string in the directory you are currently in
Code: [Select]
grep -r "/home/account/public_html/public" .
19
How to / Re: Change Domain path to subfolder?
« on: December 06, 2025, 05:56:01 AM »
Yep @overseer is on to what I was referring to with the VHosts 
TBH I perfer to keep servers stock as I find it hard to remember what custom mods I've made to each months later.
If you want to update all PHP files within your public folder (obviously not if you've moved the site there already) you can use the below. It should find & replace all 'old_pathway' to 'new_pathway' in all PHP files within the directory you run it in.

TBH I perfer to keep servers stock as I find it hard to remember what custom mods I've made to each months later.
If you want to update all PHP files within your public folder (obviously not if you've moved the site there already) you can use the below. It should find & replace all 'old_pathway' to 'new_pathway' in all PHP files within the directory you run it in.
Code: [Select]
find . -name "*.php" -exec sed -i 's/old_pathway/new_pathway/g' {} \;
20
How to / Re: Change Domain path to subfolder?
« on: December 06, 2025, 01:10:13 AM »
Might seem like a dumb question can't you just update the path that the PHP script points to?
Would be an easy fix and you wouldn't have to mess around with 301 redirects or man handling Virtual Host files
Would be an easy fix and you wouldn't have to mess around with 301 redirects or man handling Virtual Host files
21
Apache / Re: Apache automatic shutdown
« on: November 27, 2025, 01:47:03 AM »
CWP seems to produce that [ssl-warn] for any SAN you haven't enabled but it is just a warning & wouldn't be causing the restart. I also don't think your access attempts to /usr/local/apache/htdocs/ would do that either. Something is sending a SIGWINCH command to apache which is gracefully restarting as per its design.
I'd check your cron logs and/all other logs to see if you can find what is requesting it.
I'd check your cron logs and/all other logs to see if you can find what is requesting it.
22
CSF Firewall / Re: 100's of suspicious emails an hour
« on: November 17, 2025, 01:45:02 AM »
You always have the most interesting issues I must say
23
How to / Re: How to upgrade nginx to the latest version
« on: November 06, 2025, 11:36:25 AM »
Follow the instructions from @cbstudiomx post in https://forum.centos-webpanel.com/nginx/how-to-update-nginx-version-to-version-1-26-2/
It should update to the latest for you eg: 1.28
It should update to the latest for you eg: 1.28
24
CentOS-WebPanel Bugs / Re: Issues with PHP version swither (php_switch_v2)
« on: October 28, 2025, 04:46:43 AM »
My experience is CWP does require some server admin knowledge in order to maintain or at least the want to learn. This is however something that I personally enjoy. Updates & fixes can take time but they do come (they are pretty much on to the critical ones), not bad for a small outfit.
I can understand that it’s not for everyone but if you want a glossy server OS with the support of a corporate organisation behind it (we all know who that is) your going to have to pay for it.
I can understand that it’s not for everyone but if you want a glossy server OS with the support of a corporate organisation behind it (we all know who that is) your going to have to pay for it.
25
PHP / Re: When will PHP 8.4 be released in CWP?
« on: October 24, 2025, 12:34:08 AM »
@djprmf We can see your website sweet cheeks. Stock WP install with a downloaded theme, out of the box plugins and lack of responsive design for a mobile device.
No offence but just saying I think we've all got a pretty good idea how prolific your business enterprise is. Your tech knowledge is appreciated but you may choose to drop the big man attitude. I'm sure we'll all get along better then.
No offence but just saying I think we've all got a pretty good idea how prolific your business enterprise is. Your tech knowledge is appreciated but you may choose to drop the big man attitude. I'm sure we'll all get along better then.
26
CentOS-WebPanel Bugs / Re: [CRITICAL] Multiple CWP Servers Infected – Arbitrary PHP Code Execution via Publ
« on: October 20, 2025, 04:29:29 AM »
I use a Key file access for SSH access rather than password authentication. It requires you to have the cert on each puter you use to access but it pretty much ends the success of any bots trying to brute force SSH as they need the cert.
27
CentOS-WebPanel Bugs / Re: [CRITICAL] Multiple CWP Servers Infected – Arbitrary PHP Code Execution via Publ
« on: October 09, 2025, 09:38:26 PM »
Hi djprmf,
Thank you for contribution in the 1st paragraph, it is correct and may yet proove helpful to someone.
Your 2nd paragraph however is simply a personal attack on a well respected member of our community to which I and many other members in this forum do not appreciate. Please reframe from such outbursts or if you cannot simply STFU.
Thank you for contribution in the 1st paragraph, it is correct and may yet proove helpful to someone.
Your 2nd paragraph however is simply a personal attack on a well respected member of our community to which I and many other members in this forum do not appreciate. Please reframe from such outbursts or if you cannot simply STFU.
28
PHP / Re: Anti-Change Log
« on: August 29, 2025, 05:44:55 AM »
Ipv6 module would be nice too, it's been coming soon in the change log for a long time now.
Well that's my Christmas list
Well that's my Christmas list
29
Updates / Re: Apache Update Script 404 Error Starburst KB
« on: August 12, 2025, 01:20:57 AM »
Is a typo in the pathway. Should be the below
wget --no-cache --output-document="apache-rebuild.sh" https://dl.starburst.help/cwp_fixes/apache-2465-rebuild.sh
wget --no-cache --output-document="apache-rebuild.sh" https://dl.starburst.help/cwp_fixes/apache-2465-rebuild.sh
30
Mod_Security / Re: WordPress or WooCommerce, have a conflict with the OWASP CRS v4.16.0
« on: July 25, 2025, 12:19:43 AM »
There is more than 1 global_disabled_rules.conf file in the mix.
It depends how you set your modsec up (eg: which one is it pointed to).
It depends how you set your modsec up (eg: which one is it pointed to).
