1. Login to your server via SSH (as root).

    • ssh root@<ip address> -p 2200

  2. Once logged in successfully, you'll need to change into the /usr/local/src directory.

    • cd /usr/local/src

  3. Now, simply download the plugin using wget.


  4. Now that it's been downloaded, you need to extract the compresssed plugin.

    • tar xf nginxadmin.tar

  5. Change into the publicnginx directory.

    • cd publicnginx

  6. Following documentation from cPanel's Create WHM Plugins, we'll need to create the apps directory. ( KnownHost Servers won't need this step! )

    • mkdir /var/cpanel/apps && chmod 755 /var/cpanel/apps

  7. Run the included executable installer program with the 'install' flag.


  8. Restart the webserver daemon.

    • /etc/init.d/httpd restart

      • Which should result with output similar to this:
      • Restarting nginx daemon: nginxRemaining processes: 10207
        .

  9. Now that it's installed and running properly, you'll need to register the app/plugin via cPanel's register_appconfig:

    • /usr/local/cpanel/bin/register_appconfig /var/cpanel/apps/nginxcp.conf

* Which should result with output similar to this:
  • nginxcp registered

NginxCP (nginx as a reverse *****) is now installed and can be viewed/accessed/configured via WHM. To access the Control Panel for nginx, visit your WHM Panel » Plugins » nginx Admin.[IMG]https://www.knownhost.com/wiki/_media/control-panels/cpanel-whm/nginx-reverse-*****-on-cpanel-nginx-whm-admin.png?w=300&tok=caf36d[/IMG]

Creating automated temp files cleanup

While using nginx as a reverse ***** has it's many benefits, not creating an automated temp cleanup can result in adverse performance.
  1. Running crontab -e (for edit) opens /var/spool/cron/root as a temporary file for editing purposes. Perform the following:

    • crontab -e

  2. Add the following to the end of the list, ensuring not to edit existing rules:

    • 0 */1 * * * /usr/sbin/tmpwatch -am 1 /tmp/nginx_client
    • Press [CTRL] + X to save the changes. You'll be prompted, "Save modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ?" Press Y and then [Enter].
    • You'll again be prompted, something similar to, "File Name to Write: /tmp/crontab.XXXXXX" , simple press [Enter] at this time.
    • /usr/bin/crontab: installing new crontab
    • This output confirms the new cron job was successfully installed.



https://bia2host.com/#هاست_لینوکس