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]
1
Updates / new Monit cfg
« on: February 15, 2025, 12:04:00 AM »Quote
set daemon 300 # Check services at 5-minute intervals
with start delay 45 # Wait 45 seconds before starting checks
set log syslog # Log output to syslog
set logfile /var/log/monit.log # Additionally log to a specific file
set pidfile /var/run/monit.pid # Define PID file location
set idfile /var/.monit.id # Monit ID file location
set statefile /var/.monit.state # Monit state file location
set mailserver localhost # Mailserver for sending alerts
set alert your email # Alert email address
set eventqueue
basedir /var/monit # Event queue directory
slots 100 # Number of slots in the event queue
# HTTP interface settings
set httpd port 2812 and
use address localhost # Only listen on localhost
allow localhost # Allow connections from localhost
allow admin:xxxxxx # Use a strong password and consider using HTTPS
ssl enable
pemfile /etc/pki/tls/private/hostname.pem # Correct path to SSL certificate
# Include additional configuration files
include /etc/monit.d/*
# Apache monitoring
check process apache with pidfile /var/run/httpd/httpd.pid
start program = "/usr/bin/systemctl start httpd.service" with timeout 15 seconds
stop program = "/usr/bin/systemctl stop httpd.service"
# Nginx monitoring
check process nginx_service with pidfile /var/run/nginx.pid
start program = "/usr/bin/systemctl start nginx.service" with timeout 15 seconds
stop program = "/usr/bin/systemctl stop nginx.service"
# System monitoring
check system localhost
if loadavg (1min) > 4 then alert
if loadavg (5min) > 2 then alert
if memory usage > 75% then alert
if swap usage > 25% then alert
if cpu usage (user) > 70% then alert
if cpu usage (system) > 30% then alert
if cpu usage (wait) > 20% then alert
2
CloudLinux / Cloud Linux Installer
« on: December 27, 2024, 11:00:43 PM »
this dont work anymore
Cloud Linux Installer
You need to have CloudLinux License.
wget //repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy
sh cldeploy -k YOUR-KEY
cd /usr/local/src/
wget //dl1.centos-webpanel.com/files/c_scripts/cloudlinux.sh
/////////////////////////////////////////////////////////////
wget repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy
sh cldeploy -k YOUR-KEY
cd /usr/local/src/
wget dl1.centos-webpanel.com/files/c_scripts/cloudlinux.sh
sh cloudlinux.sh
sh cloudlinux.sh
Cloud Linux Installer
You need to have CloudLinux License.
wget //repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy
sh cldeploy -k YOUR-KEY
cd /usr/local/src/
wget //dl1.centos-webpanel.com/files/c_scripts/cloudlinux.sh
/////////////////////////////////////////////////////////////
wget repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy
sh cldeploy -k YOUR-KEY
cd /usr/local/src/
wget dl1.centos-webpanel.com/files/c_scripts/cloudlinux.sh
sh cloudlinux.sh
sh cloudlinux.sh











3
CentOS 7 Problems / SQL cfg
« on: September 19, 2022, 05:09:06 PM »
if i copy cfg from /etc/my.cnf.d/server.cnf to /etc/my.cnf will it binde and run off that cfg ?
only way got it to work is using phpadmin Run SQL query/queries on server
SET GLOBAL sql_mode = "NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
1) Open the /etc/my.cnf file by accessing your server via SSH or SFTP with root authority.
(If you do not have root access, these process must be provided by people who are authorized to access the server root.)
2) Add the sql_mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" definition to the bottom of the file "my.cnf" and save it.
If your server does not accept ", you can define without ". If this doesn't work, you can just define it as sql_mode=
The definition you add should be under the [mysqld] line. If your file does not contain the line [mysqld], you can add it manually.
only way got it to work is using phpadmin Run SQL query/queries on server
SET GLOBAL sql_mode = "NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
1) Open the /etc/my.cnf file by accessing your server via SSH or SFTP with root authority.
(If you do not have root access, these process must be provided by people who are authorized to access the server root.)
2) Add the sql_mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" definition to the bottom of the file "my.cnf" and save it.
If your server does not accept ", you can define without ". If this doesn't work, you can just define it as sql_mode=
The definition you add should be under the [mysqld] line. If your file does not contain the line [mysqld], you can add it manually.
4
CentOS-WebPanel Bugs / Redirects tab
« on: September 04, 2022, 05:11:03 PM »
Cant get Redirects to stay up button keep going away.
Feature Manager i give plans all redirect and still dont come up only when it want to.
Feature Manager i give plans all redirect and still dont come up only when it want to.
5
CentOS 7 Problems / web server keep going down
« on: September 03, 2022, 02:56:12 PM »
last 5 days my web server keep going down in the AM around 2am - 9am BIND DNS Server, Postfix Mail Server, Dovecot IMAP/POP3 Server be down
Apache version: Apache/2.4.52
PHP version: 7.4.30 + 8.0+ 8.1+
Nginx & Varnish & Apache
Apache version: Apache/2.4.52
PHP version: 7.4.30 + 8.0+ 8.1+
Nginx & Varnish & Apache
6
CentOS-WebPanel Bugs / Change Password to login
« on: November 30, 2021, 03:15:23 PM »Random Generator come out like ths

ikeW8UxWND5M{"sEcho":0,"iTotalRecords":"2","iTotalDisplayRecords":0,"aaData":[]}
7
CentOS-WebPanel Bugs / Cron job not working right
« on: November 28, 2021, 11:44:16 PM »
cant get the cron job stay working
only time it works when i hit the go button ?
only time it works when i hit the go button ?
Pages: [1]