Recent Posts

Pages: 1 [2] 3 4 ... 10
11
How to / Re: Clear alerts & notifications from CLI?
« Last post by 6Sense on December 11, 2025, 04:57:00 AM »
Yup, works too!
12
How to / Re: Clear alerts & notifications from CLI?
« Last post by overseer on December 11, 2025, 04:30:35 AM »
Bravo! But if I'm not missing something, wouldn't it be easiest to empty the notifications like so:
Code: [Select]
echo '[]' > /usr/local/cwpsrv/htdocs/resources/admin/include/libs/notifications/notifications.json
13
How to / Re: Clear alerts & notifications from CLI?
« Last post by 6Sense 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)

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.py

You can also set up up cron job to run it as often as you wish
14
How to / Re: Clear alerts & notifications from CLI?
« Last post by 6Sense 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

15
E-Mail / Re: Roundcube - Connection Error (Failed to reach server)
« Last post by Starburst on December 08, 2025, 02:25:08 PM »
Also what version of PHP and OS are you running?
16
Apache / Re: Apache 2.4.66 released on 2025-12-04
« Last post by overseer on December 08, 2025, 02:09:34 PM »
Great, thanks!

And on the other side of the tracks, if you need Nginx 1.28 with brotli compression, this guide is a good one:
https://www.alphagnu.com/topic/10-enable-brotli-compression-on-nginx-cwp-and-on-linux-os-for-official-nginx/#comment-12
17
E-Mail / Re: Roundcube - Connection Error (Failed to reach server)
« Last post by overseer on December 08, 2025, 02:02:50 PM »
If it's automated login from the panel, should be using an API key to authenticate. Could be an odd gremlin. Try logging out/logging back in. Or could be some specific problem with the account. Can you test logging in manually? Are you able to reset the user credentials without interrupting customer access?
18
Apache / Apache 2.4.66 released on 2025-12-04
« Last post by Starburst on December 08, 2025, 01:15:48 PM »
For those who are using Apache, they released 2.4.66 on 2025-12-04


We've posted the new KB article and script to help admins update:

https://starburst.help/control-web-panel-cwp/control-web-panel-cwp-admin-tutorials/update-apache-to-2-4-66-in-cwp-on-almalinux-8-9/
19
E-Mail / Re: Roundcube - Connection Error (Failed to reach server)
« Last post by Starburst on December 08, 2025, 01:10:03 PM »
Make sure you have the IMAP option enabled when you built PHP.
20
How to / Re: Clear alerts & notifications from CLI?
« Last post by overseer on December 08, 2025, 11:56:05 AM »
I poked around one day but didn't come up with any solid answers.
Pages: 1 [2] 3 4 ... 10