รวมสคริปต์สำหรับการอัพเกรดหรือติดตั้งเครื่องมือเพิ่มเติมสำหรับ CWP-CentOS Web Panel

http://www.linuxandubuntu.com/wp-content/uploads/2019/07/Install-amp-Configure-CentOS-Web-Panel.jpg

รวมสคริปต์สำหรับการอัพเกรดหรือติดตั้งเครื่องมือเพิ่มเติมสำหรับ CWP-CentOS Web Panel

At the time of writing this article, the available scripts are (36 scripts):

  1. add_alert – this is for development purposes. Use it to send messages to the admin dashboard. Use it as: /scripts/add_alert alert-type “text message” example: /scripts/add_alert alert-info “update PHP to 7.2”  # Available options: alert-danger, alert-success, alert-info, alert-warning, alert-dismissable
    # Example: “Hello world, this is my test message!”
  2. check_api – it’s a diagnostic tool for CWP support. The output looks like: [[email protected] ~]# /scripts/check_api User API port 2302 check: OK Oauth query check: OK User API folder check: OK External API port 2304 check: OK External API files and htaccess : OK CSF Firewall status check: ENABLED TCP_IN for port 2304 set in /etc/csf/csf.conf: FAILED TCP_OUT for port 2304 set in /etc/csf/csf.conf: FAILED
[[email protected] ~]

#

check_postqueue – shows how many emails were deferred. Output:

[[email protected] ~]

#

checkdb – it checks the server for bad tables.

clamd_fix_100_cpu_usagescript will fix clamd 100% cpu usage on the centos 7 servers 

cwp_bruteforce_protection – enables brute-force protection for ports 2030 and 2031

[[email protected] ~]

#

cwp_monitor – monitors CWP critical load

cwp_version – shows the CWP server version as:

[[email protected] ~]

#

cwpsrv_rebuild_user_conf – recreates CWP configuration files and restarts CWP.disk_check – it check the disk space used by some directories:

[[email protected] ~]

# freshclam – updates ClamAV definitions (not the program itself):

[[email protected] ~]

#

generate_hostname_ssl – generates a self-signed certificate for the hostname. We don’t recommend to use this script. Check our article on how to Set up an SSL certificate for hostname on CentOS Web Panel

install_api – installs CWP API configuration

install_imagick – installs Imagick

install_maldet – installs Maldet

install_net2ftp – installs net2ftp (a web-based FTP client)

install_supportKey – installs the CWP SSH Support key

list_domains – lists all the domains on the server:

[[email protected] ~]

#

list_subdomains – lists all subdomains

list_users – lists all users:

[[email protected] ~]

# mail_queue_stats –  shows mail stats:

[[email protected] ~]

#

mysql_fix_myisam_tables – fix MyISAM tables

mysql_pwd_reset – reset MySQL/MariaDB password for root user

mysql_set_max_connections – set the max_connections option in MySQL configuration

net_show_connections – show server connections

reload_cwpsrv – reloads CWP

restart_cwpsrv – restarts CWP

restart_httpd – restarts the httpd service

security_is_my_server_hacked – check services that are usually hacked

softaculous_fix_update – it installs Softaculous script

update_cwp – updates CWP to the latest version

[[email protected] ~]

#

update_ioncube – ionCube installer/updater

upgrade_mysql – updates MySQL and phpMyAdmin

user_backup – backup users’ files and databases

varnish_clear_cache – clears the varnish cache without restart 

whoowns – displays the owner of a domain:

[[email protected] ~]

#

You can also check our article on How to check if a domain is on the server  

Usage
sh /scripts/SCRIPT-NAME

Leave a Reply

iameveme