-
September 11th, 2017, 01:19
#1
عضو انجمن
نصب nginx در سی پنل
Login to your server via SSH (as root).
Once logged in successfully, you'll need to change into the /usr/local/src directory.
Now, simply download the plugin using wget.
Now that it's been downloaded, you need to extract the compresssed plugin.
Change into the publicnginx directory.
Following documentation from cPanel's Create WHM Plugins, we'll need to create the apps directory. ( KnownHost Servers won't need this step! )
Run the included executable installer program with the 'install' flag.
./nginxinstaller install
If you've never setup a Remote Access Key, you'll see the following error: access key doesn't exist To fix this, you'll need to login to WHM, visit the "Clusters" section, select " Remote Access Key" then select "Generate New Key". It should look like this:
If all goes smoothly, the end result should print something similar to the following:
- ************************************************** **
* Installation Complete *
*run /etc/init.d/httpd restart to start Nginx Admin*
************************************************** **
Restart the webserver daemon.
Now that it's installed and running properly, you'll need to register the app/plugin via cPanel's register_appconfig:
* Which should result with output similar to this:
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.
Running crontab -e (for edit) opens /var/spool/cron/root as a temporary file for editing purposes. Perform the following:
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/#هاست_لینوکس
-
-
September 11th, 2017 01:19
# ADS
-
September 11th, 2017, 12:56
#2
عضو انجمن
پاسخ : نصب nginx در سی پنل
عزیز یکم توضیح میدی اینا چین اینجا کپی کردی؟
-
-
September 11th, 2017, 13:02
#3
عضو انجمن
پاسخ : نصب nginx در سی پنل

نوشته اصلی توسط
m2n
عزیز یکم توضیح میدی اینا چین اینجا کپی کردی؟

نصب nginx_apache_reverse به زبان ساده 100 % تست شده .
-