Install NginxAdmin to WHM/Cpanel for Optimize Performance
This tutorial will show you how to install and uninstall NginxAdmin. Why Nginx reverse proxy? Good question, when you using a limited resources server such as VPS, you definitely need this method to help you to reduce your CPU load for serving more user or traffic on your site. Nginx can cache static content very well and you will get lighting speed to load your website and reduce the load of CPU usage.
This tutorial's requirement is show as below:
1. WHM/Cpanell installed server
2. SSH access to your server
3. Root access
4. little basic ssh knowledge
For install NginxAdmin
cd /usr/local/src wget http://nginxcp.com/latest/nginxadmin.tar tar xf nginxadmin.tar cd publicnginx ./nginxinstaller install
Restart your apache and your apache will run as reverse proxy with nginx.
/etc/init.d/httpd restart
For Uninstall NginxAdmin
cd /usr/local/src wget http://nginxcp.com/latest/nginxadmin.tar tar xf nginxadmin.tar cd publicnginx ./nginxinstaller uninstall
Troubleshooting Installation:
if you get something similar to following:
Welcome to the Nginx Admin installer......Starting Install
Generating vhosts...
Traceback (most recent call last):
File "/scripts/createvhosts.py", line 2, in ?
import yaml
File "/usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-i686.egg/yaml/__init__.py", line 26
SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause
Installing WHM interface...
deploying booster rockets
Traceback (most recent call last):
File "/usr/local/src/publicnginx/nginxinstaller2", line 9, in ?
import createvhosts
File "/usr/local/src/publicnginx/createvhosts.py", line 2, in ?
import yaml
File "/usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-i686.egg/yaml/__init__.py", line 26
SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause
Here is the Solution:
cd /usr/lib/python2.4/site-packages mv PyYAML-3.10-py2.4-linux-x86_64.egg PyYAML-3.10-py2.4-linux-x86_64.egg_ wget http://www.booser.com/wp-content/uploads/PyYAML-3.09-py2.4-linux-x86_64.egg
*note: if you have 32bit version of os, you can use PyYAML-3.09-py2.4-linux-i686.egg
If you facing tmp folder is full, you will get 500 internal error.
Solution:
To automated /tmp cleanup add bellow cron 0 */1 * * * /usr/sbin/tmpwatch -am 1 /tmp/nginx_client via crontab -e command
Hope that help. I provide installation services for this as well. Contact me Here for more detail.
2. Right-Click then Copy
3. Paste the HTML code into your webpage
Incoming search terms:
- install nginx whm (2)
- pyyaml-3 09-py2 4-linux-i686 egg (2)
- whm niginxcp reverse proxy setup (1)
- plesk panel nginx proxy (1)
- php mining pagerank is against google\s terms 32bit (1)
- performance cPanel/WHM (1)
- perfomance whm (1)
- optimize nginx cpanel (1)
- optimize http whm (1)
- optimize cpanel nginx (1)
No related posts.