cPanelと同様に、CWPは / scriptsで使いやすいスクリプトを提供します ディレクトリ。 / scripts ディレクトリは、 / usr / local / cwpsrv / htdocs / resources / scriptsへのショートカットです。
[root@cwp1 ~]# ls -l /scripts
lrwxrwxrwx 1 root root 42 Mar 24 07:06 /scripts -> /usr/local/cwpsrv/htdocs/resources/scripts
[root@cwp1 ~]#この記事を書いている時点で、利用可能なスクリプトは(36スクリプト)です:
-  add_alert –これは開発を目的としています。管理ダッシュボードにメッセージを送信するために使用します。次のように使用します: /scripts/add_alert alert-type "text message" example: /scripts/add_alert alert-info "update PHP to 7.2" #使用可能なオプション:alert-danger、alert-success、alert-info、alert-warning、alert-dismissable 
 #例:「こんにちは、これが私のテストメッセージです!」
-  check_api –これはCWPサポートの診断ツールです。出力は次のようになります: [root@cwp1 ~]# /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 [root@cwp1 ~]# 
-  check_postqueue –延期された電子メールの数を示します。出力: [root@cwp1 ~]# /scripts/check_postqueue 37 [root@cwp1 ~]# 
-  checkdb –サーバーに不良テーブルがないかチェックします。 
-  clamd_fix_100_cpu_usage – scriptは、centos7サーバーでのclamd100%cpuの使用を修正します 
-  cwp_bruteforce_protection –ポート2030および2031のブルートフォース保護を有効にします [root@cwp1 ~]# /scripts/cwp_bruteforce_protection CWP Scripts ################################ Redirecting to /bin/systemctl restart lfd.service You need to restart Firewall for changes to affect!! csf -r [root@cwp1 ~]# 
-  cwp_monitor –CWPの重要な負荷を監視します 
-  cwp_version –CWPサーバーのバージョンを次のように表示します。 [root@cwp1 ~]# /scripts/cwp_version 0.9.8.592 [root@cwp1 ~]# 
-  cwpsrv_rebuild_user_conf – CWP構成ファイルを再作成し、CWPを再起動します。 
-   disk_check  –一部のディレクトリで使用されているディスク容量をチェックします:[root@cwp1 ~]# /scripts/disk_check 272M /var/log/ 216K /usr/local/apache/logs/ 24M /usr/local/cwpsrv/logs/ 212M /tmp 788K /root 176M /var/lib/mysql/ [root@cwp1 ~]# 
- フレッシュクラム – ClamAV定義を更新します(プログラム自体ではありません):[root@cwp1 ~]# /scripts/freshclam ClamAV update process started at Tue Apr 10 12:57:43 2018 WARNING: Your ClamAV installation is OUTDATED! WARNING: Local version: 0.99.4 Recommended version: 0.100.0 DON'T PANIC! Read http://www.clamav.net/documents/upgrading-clamav main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr) daily.cld is up to date (version: 24467, sigs: 1905395, f-level: 63, builder: neo) bytecode.cvd is up to date (version: 319, sigs: 75, f-level: 63, builder: neo) [root@cwp1 ~]# 
-  generate_hostname_ssl –ホスト名の自己署名証明書を生成します。このスクリプトの使用はお勧めしません。 CentOSWebパネルでホスト名のSSL証明書を設定する方法に関する記事を確認してください 
-  install_api –CWPAPI構成をインストールします 
-  install_imagick –Imagickをインストールします 
-  install_maldet –Maldetをインストールします 
-  install_net2ftp – net2ftp(WebベースのFTPクライアント)をインストールします 
-  install_supportKey –CWPSSHサポートキーをインストールします 
-  list_domains –サーバー上のすべてのドメインを一覧表示します: [root@cwp1 ~]# /scripts/list_domains DOMAIN | USER | PATH ################################# newdomain.com demo /home/demo/public_html/newdomain.com [root@cwp1 ~]# 
-  list_subdomains –すべてのサブドメインを一覧表示します 
-  list_users –すべてのユーザーを一覧表示します: [root@cwp1 ~]# /scripts/list_users USERNAME | DOMAIN | IP ADDRESS | EMAIL | PACKAGE ID | BACKUP ############################################################### cwp1 cwp1.plothost.com 104.237.208.145 [email protected] 1 on plothost plothost1.com 104.237.208.145 [email protected] 1 on demo demo.plothost.com 104.237.208.145 [email protected] 1 on [root@cwp1 ~]# 
-   mail_queue_stats  –メール統計を表示します:[root@cwp1 ~]# /scripts/mail_queue_stats maildrop 0 incoming 0 hold 0 active 0 deferred 36 [root@cwp1 ~]# 
-  mysql_fix_myisam_tables –MyISAMテーブルを修正する 
-  mysql_pwd_reset – rootのMySQL/MariaDBパスワードをリセットします ユーザー 
-  mysql_set_max_connections –MySQL構成でmax_connectionsオプションを設定します 
-  net_show_connections –サーバー接続を表示 
-  reload_cwpsrv –CWPをリロードします 
-  restart_cwpsrv –CWPを再起動します 
-  restart_httpd –httpdサービスを再起動します 
-  security_is_my_server_hacked –通常ハッキングされるサービスを確認する 
-  softaculous_fix_update –Softaculousスクリプトをインストールします 
-  update_cwp –CWPを最新バージョンに更新します [root@cwp1 ~]# /scripts/update_cwp ==================================================== ============= CentOS Web Panel Cron ================ ==================================================== ########################### Firewall Flush Daily Blocks ########################### ###################### Update Server Packages ###################### [root@cwp1 ~]# 
-  update_ioncube –ionCubeインストーラー/アップデーター 
-  upgrade_mysql –MySQLとphpMyAdminを更新します 
-  user_backup –ユーザーのファイルとデータベースをバックアップする 
-  varnish_clear_cache –再起動せずにワニスのキャッシュをクリアします 
-  所有者 –ドメインの所有者を表示します: [root@cwp1 ~]# /scripts/whoowns demo.plothost.com Checking User Accounts: demo Checking Addon Domains: Checking SubDomains: [root@cwp1 ~]# ドメインがサーバー上にあるかどうかを確認する方法に関する記事も確認できます。