Installation Instruction

Nginx Admin Install instruction:

cd /usr/local/src

wget http://nginxcp.com/latest/nginxadmin.tar 

tar xf nginxadmin.tar

cd publicnginx

./nginxinstaller install 

 

Nginx Admin Uninstall instruction:

 

cd /usr/local/src 

wget http://nginxcp.com/latest/nginxadmin.tar 

tar xf nginxadmin.tar 

cd publicnginx

./nginxinstaller uninstall 

 

Please visit http://nginxcp.com/forums/ in case of any issue.

Incoming search terms:

  • nginxcp
  • nginx admin
  • Install nginxcp
  • nginx admin panel
  • nginxcp install
  • nginx
  • install nginx admin
  • nginx auto installer
  • how install nginx cpanel whm
  • NginxAdmin

84 comments

  • Bobke

    Tried to install and got this error message: “access key doesn’t exist create it in WHM”
    What to do?
    Thank you.

    • admin

      At root whm go to
      Main >> Cluster/Remote Access >> Setup Remote Access Key
      Then click Generate New Key
      and retry to install

  • Bobke

    Thank you very much; this is working very fine now.
    Great script and glad to get it installed.
    Success!

  • IAG

    I have been unable to get the ssl to work. Also have you thought about including mod_rpaf to fix the ip logging.

  • Andy

    Thanks for this fantastic script, since installing server load is down from around 40 with apache alone to 1.5 running nginx on my php forum

    Keep up the great work :)

  • Hello :

    Is nginxcp support Cache ?
    If yes . Can you config cache for me , if I donate for you ?

    Thank you

  • Ocean

    Hello:
    After completed install and reboot my VPS, I access my site and get 504 gateway error.
    How to fix them. Thanks

  • Lef

    Where do I get NGinx from ?

    Is this the ‘official’ source for it ?

    http://*****/Buy-Now

    This source does not make mention of the auto installer … can somene please tell me where best to purchase nginx with the installer ?

    Thanks and best regards, Lef

  • Zaman

    Please create such a plugin for DirectAdmin too. DirectAdmin is a lighter panel and provided at low cost or free of cost by several dedicated server and VPS providers. Please support other panels especially DirectAdmin and if possible even Plesk etc. in the future.

  • Fred

    Cpanel/FreeBSD Compatibility ?

  • Phoenix

    Hi. Do I need to install nginx first, or will this script install it?

    If it will install it, then what paths? And will it install the latest nginx (1.0.3)?

    Thanks

  • When I try to install I get this:
    root@host [/usr/local/src/publicnginx]# ./nginxinstaller install
    /usr/local/src/publicnginx
    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-x86_64.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-x86_64.egg/yaml/__init__.py”, line 26
    SyntaxError: ‘yield’ not allowed in a ‘try’ block with a ‘finally’ clause

    What I suppose to do for fix this?

  • ThatGirl

    I got the same exact thing.

  • Same error here….with the latest stable build…
     

  • suggestion please,

    I will install this nginx admin in the next few hours, before I proceed I need some suggestion and recommendation.

    Im running an unmanaged dedicated CEntos 5.x
    with WHM/cpanel v11.30
    with memcached

    Server is all in good right now, but I want to install nginx to make more faster for all the websites server is a bit slow now.

    If I do this installation below, what are the consequences of bad things to happen, would it stop my server from running all my websites?

    Install guide:

    Code:
    cd /usr/local/src
    wget http://nginxcp.com/latest/nginxadmin.tar
    tar xf nginxadmin.tar
    cd publicnginx
    ./nginxinstaller install

    Will the uninstall of nginx helps if my server stopped?

    what are other configurations needed to do after installation to make it run?

    Is it like – Once installed, All Good?

  • Dear, 
    How ti install ini Directadmin
    thanks

  • Great web server for web hosting, i like it more over litespeed :)

  • Installed perfectly! Way too easy. Thank you for this great contribution.

  • I installed nginxcp successfully but the status is "down". What can I do to put it on. I currently using apache. Please help.

  • Zed

    I would like to know if implementing nginx as frontend of a cPanel server would break the traffic accounting of the static files such as .jpg, .html, .png and others.
    Thanks.

  • This is probably the single best download I've come across in a long time.
    It has reduced the load time on all my client servers, and mine. . .in addition
    to reducing the CPU load — I am planning to donate to your cause — it's worth it! =0)

  • Wendy

    Installation:
    cd /usr/local/src
    wget http://nginxcp.com/latest/nginxadmin.tar
    tar xf nginxadmin.tar
    cd publicnginx
    ./nginxinstaller install

  • Carl

    wanted to give a try to your plugin, but i've got this error :

    ./nginxinstaller install
    Please upgrade cPanel to version 11.30 or above
     
    …we are usign cPanel version 11.32… …so what's the problem? :-p  Any way to fix this?

  • Those who are getting Python-related errors on installation: you need to upgrade your Python binaries to a newer version (I upgraded from 2.4 to 2.7 and it worked well); details on how to do this are on the python.org site.
    Thanks to the creator of this plug-in; it's a very valuable service you have done to the community here.

  • derek

    You do not need the new version of Python, what you need is to just run ./pythonfix before you run the installer.

    Presto. found it on the http://nginxcp.com/forums/Thread-python-error-issue-fix

  • tom

    Great plugin. Thanks

  • Kushal Raha

    Does it now support SSL?

  • I can not remove nginx through document.
    I tried this command, but it shows:
     
    root@sv7 [/usr/local/src/publicnginx]# ./nginxinstaller unistall
    Usage ./nginstaller [install | uninstall]
    Yeah, did I type wrong here?

  • Dave

    I tried that uninstall, but it left nginx running and did not remove the Apache configuration file changes. 

  • Steve

    Hi !
    I have the same problem of Dave.
    I need to reinstall nginx, but i can't uninstall it.

  • Chris

    I installed it and received the Python error on my cpanel VPS. I uninstalled it and ran the Puthon fix and then reinstalled, but I am still receiving the Python error.
    Quote:
     
      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

  • Curtis

    Got the same Python error as others. Tried to uninstall via the insturctions above:
     
     
    root@home [/usr/local/src/publicnginx]# ./nginxinstaller uninstall 
    sed: can't read /var/cpanel/templates/apache2/vhost.local: No such file or directory

    Any idea?

  • i am currently using apache, should i just follow same instructions? and it will remove apache automatically?

  • Hello

    this software is a trash. Not working

    Installed in 2 server without sucess.

    Thank you
    MKA

    root@server [/usr/local/src/publicnginx]# ./nginxinstaller install
    /usr/local/src/publicnginx
    Welcome to the Nginx Admin installer……Starting Install
    Please Wait …….
    Generating vhosts…
    Traceback (most recent call last):
    File “/scripts/createvhosts.py”, line 7, in ?
    import yaml
    File “/usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-x86_64.egg/yaml/__init__.py”, line 26
    SyntaxError: ‘yield’ not allowed in a ‘try’ block with a ‘finally’ clause
    Installing WHM interface…
    Installing mod_rpaf…
    Updating cPanel Configuration
    Traceback (most recent call last):
    File “/usr/local/src/publicnginx/nginxinstaller2″, line 14, in ?
    import createvhosts
    File “/usr/local/src/publicnginx/createvhosts.py”, line 7, in ?
    import yaml
    File “/usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-x86_64.egg/yaml/__init__.py”, line 26
    SyntaxError: ‘yield’ not allowed in a ‘try’ block with a ‘finally’ clause

  • JimS

    I installed it and it hijacked the httpd script in init.d somehow, so that “service httpd affects the nginx daemon, not the apache httpd daemon.

    If I can’t figure out what the heck this installer did, very quickly, I will uninstall it. Hopefully it uninstalls cleanly and I will be able to get things back to where they were before I started, after which I will install nginx normally and configure it manually.

  • Hi,

    When I get it installed, the caching via .htaccess is not working. Any solution?

    Thanks,
    Sengkhoy

  • Anyone have caching problem after installation? It seems that .htaccess in root folder is not working. After uninstalled, caching validation passed for google pagespeed. I don’t know why?

  • Sergey

    I am getting the errors:

    Generating vhosts…
    Traceback (most recent call last):
    File “/scripts/createvhosts.py”, line 157, in
    parsedDOC = minidom.parseString(DOC)
    File “/usr/lib64/python2.6/xml/dom/minidom.py”, line 1928, in parseString
    return expatbuilder.parseString(string)
    File “/usr/lib64/python2.6/xml/dom/expatbuilder.py”, line 940, in parseString
    return builder.parseString(string)
    File “/usr/lib64/python2.6/xml/dom/expatbuilder.py”, line 223, in parseString
    parser.Parse(string, True)
    xml.parsers.expat.ExpatError: not well-formed (invalid token): line 720, column 15

    when run:
    ./nginxinstaller install
    as root. Is there some fix ? I am using cPanel 11.36.0 (build 18) and Python 2.6.6.

  • Brinsley

    hello… i try install an this msg appear:
    ——————
    access key doesn’t exist
    go to WHM > Cluster/Remote Access > Setup Remote Access Key
    ——————

    And i make this comman but dont resolv… another point to fix ?

  • Jibon

    @Brinsley,
    Go to “WHM > Cluster/Remote Access > Setup Remote Access Key” & click generate key. Then try to install again. Hope it will work :)

  • i have a problem when i check connections in port 80
    netstat -plan|grep :80|awk {‘print $5′}|cut -d: -f 1|sort|uniq -c|sort -nk 1
    i found that my server ip having high connection over 1500 !!!
    but site is working fine ..
    can u solve this problem please ?
    i hope if u can send ur answer to my Email ..

  • omer

    how can use this for nginx admin security. I found here http://www.nginxtips.com/how-to-deny-script-execution-inside-writable-directories/

    # deny scripts inside writable directories
    location ~* /(images|cache|media|logs|tmp)/.*\.(php|pl|py|jsp|asp|sh|cgi)$ {
    return 403;
    error_page 403 /403_error.html;
    }

  • thank you very much. who cant do it lets try it:
    At root whm go to
    Main >> Cluster/Remote Access >> Setup Remote Access Key
    Then click Generate New Key
    and retry to install
    cool.

  • Dear,

    In what file I edit the cron below:

    —————-

    To automated /tmp cleanup add bellow cron
    0 */1 * * * /usr/sbin/tmpwatch -am 1 /tmp/nginx_client
    via crontab -e command

    —————-

  • Adrian

    Hi,

    Got this error when installing…

    Traceback (most recent call last):
    File “./nginxinstaller”, line 26, in
    apache_version = findapacheversion()
    File “./nginxinstaller”, line 18, in findapacheversion
    proc = subprocess.Popen(["/usr/sbin/httpd", "-V"], stdout=subprocess.PIPE)
    File “/usr/lib/python2.7/subprocess.py”, line 679, in __init__ errread, errwrite)
    File “/usr/lib/python2.7/subprocess.py”, line 1259, in _execute_child raise child_exception
    OSError: [Errno 2] No such file or directory

    Any help would be greatly appreciated.

    Thanks & Cheers!

    • Mike

      Same error as Adrian and Craig any ideas?

      • Mike

        I double checked and there might be a reason at least in my case. I was installing this on a cpanel-dns only server. That gave me the error message. I then tried it on a regular cpanel web server and it worked fine.

  • craig

    I got the same error as Adrian.
    ending in:

    File “/usr/lib/python2.7/subprocess.py”, line 1249, in _execute_child
    raise child_exception

    any ideas ?

  • Pingback: Anonymous

  • jack

    i got this error

    Restarting nginx daemon: nginxnginx: [emerg] socket() [::]:80 failed (97: Address family

    not supported by protocol)
    already running.

    in tweak setting apache port 8081 its ok and nignex server status is down

    how shall i do ? i have centos 5 32bit whm cpanel

  • RND

    ======== READ THIS ========

    Make sure to run pythonfix.
    Right after you get the error type in: “./pythonfix”

    ======== READ THIS ========

  • marco41

    hi , how to install webuzo panel ??
    help me pls ?

  • Y.

    ERROR on CentOS 6 (64bits) w/ cPanel ! Can you fix it please ?

    Welcome to the Nginx Admin installer……Starting Install
    Please Wait …….
    Generating vhosts…
    Traceback (most recent call last):
    File “/scripts/createvhosts.py”, line 173, in
    parsedDOC = minidom.parseString(DOC)
    File “/usr/local/lib/python2.7/xml/dom/minidom.py”, line 1924, in parseString
    return expatbuilder.parseString(string)
    File “/usr/local/lib/python2.7/xml/dom/expatbuilder.py”, line 940, in parseString
    return builder.parseString(string)
    File “/usr/local/lib/python2.7/xml/dom/expatbuilder.py”, line 223, in parseString
    parser.Parse(string, True)
    xml.parsers.expat.ExpatError: undefined entity: line 4, column 23
    Installing WHM interface…
    Installing mod_rpaf…
    Updating cPanel Configuration
    Traceback (most recent call last):
    File “/usr/local/src/publicnginx/nginxinstaller2″, line 41, in
    ipliststring = createvhosts.getipliststring()
    File “/usr/local/src/publicnginx/createvhosts.py”, line 125, in getipliststring
    parsedipDOC = minidom.parseString(ipDOC)
    File “/usr/local/lib/python2.7/xml/dom/minidom.py”, line 1924, in parseString
    return expatbuilder.parseString(string)
    File “/usr/local/lib/python2.7/xml/dom/expatbuilder.py”, line 940, in parseString
    return builder.parseString(string)
    File “/usr/local/lib/python2.7/xml/dom/expatbuilder.py”, line 223, in parseString
    parser.Parse(string, True)
    xml.parsers.expat.ExpatError: undefined entity: line 4, column 23

    Thank you :-)

  • nik

    Does Nginx Admin work ISPConfig Control Panel
    My config is :
    Debian 7 Wheezy / Nginx only ( no Apache ) / Vanish Cache / ISPConfig 3 ?

    Kind Regards

  • Woah! I’m really loving the template/theme of this blog. It’s simple,
    yet effective. A lot of times it’s very hard to get that “perfect balance” between superb usability and appearance.
    I must say you’ve done a excellent job with this.
    Also, the blog loads super quick for me on Safari.
    Exceptional Blog!

  • Pingback: Nginx Proxy

  • I really like it when individuals get together and share opinions.
    Great blog, keep it up!

  • Pingback: پلاگین Nginx

  • Pingback: چگونه حملات DDos را متوقف کنیم ؟ ( قسمت اول ) -اختصاصی آقای وردپرس

  • that’s very helpul for my vps to reduce cpu usage

  • Thanks for the great script :)

  • I simply couldn’t leave your web site before suggesting that
    I extremely loved the standard info an individual supply for your guests?

    Is gonna be back continuously to investigate cross-check new posts

  • We absolutely love your blog and find almost all of your post’s
    to be exactly I’m looking for. Do you offer guest writers to write content for you?
    I wouldn’t mind writing a post or elaborating on many of
    the subjects you write related to here. Again, awesome blog!

  • Thank you it was very useful and its much better than apachebooster.

  • There are many types of tiles available nowadays.
    The method of tile cleaning will depend more on the tile type.
    However there are couple of things to be followed to add the sheen and glow of the tiles.

    Do the regular floor cleaning
    Clean the spills as soon as they occur

    It is very crucial to clean dirt and water too as soon as they
    are split to prevent the stains. Place a doormat which
    helps in reduction of mud or dirt entering through footsteps.

    There are basically following tile floors where in one will use the tile and grout cleaning process, types of tiles are as follow -

    Ceramic
    Porcelain
    Stone

    Porcelain Tile cleaning

    Porcelain tiles maintenance is not difficult if the surface is cleaned regularly.
    The surface can be vacuum cleaned every day or just sweep
    it. The wet mopping is required once in a week. Use of mild floor cleaners
    will do for the mopping. One can make it at home by
    mixing vinegar and water.

    Ceramic Tile Cleaning

    The rule is followed here as well; remove the dirt as soon as possible.
    Vacuum clean the tiles every day or a simple broom can be used.
    Plain water or the special ceramic tile cleaners can be used for
    the wet mopping.

    Stone Tile Cleaning

    One need to be careful while cleaning the tiles made of stones as they are natural minerals.
    Never use harsh floor cleaners. Sweep or vacuum clean. After using
    any floor cleaner use a dry mop to soak any type of liquid residue.

    Grout Cleaning

    Along with the tile cleaning it is very important to regularly clean the grout, i.e.

    the lines between the tiles. Hence tile and grout cleaning goes simultaneously.
    Grout is porous in nature and attracts dirt, grease etc. The surface looks shabby if the grout is unclean. It can also
    be a cause of mildew or mould in the damp areas
    like bathrooms. It is best to have a seal (colour or
    clear) on the grout which will not only protect the surface but also acts as an anti-fungal agent.

    Many a times it gets difficult to maintain the floor due to
    hectic working schedules. Hence we come in picture and provide the tile and grout cleaning services to our
    clients at a very affordable price. Moreover the price depends on the type of the tiles, number of tiles and size of the tiles to be cleaned.

    Following steps are followed for the tile and grout cleaning after you contact us-

    Pre inspection of the tiles and floor.
    Shifting of the furniture, if any, from that space.

    Dry Sweeping of the surface
    Application of the suitable cleaning solution.
    Cleaning the surface with a soft pad.
    High pressure cleaning
    Mopping and drying the surface.

    We have our experts who carry special tools to do the tile
    and grout cleaning; the grout sealing is also done if
    ordered.

  • I see you share interesting stuff here, you can earn some additional
    money, your website has huge potential, for the
    monetizing method, just type in google – K2 advices how to monetize a
    website

  • Greetings! I’ve been following your weblog for a long time now and finally got the bravery to go ahead and give you
    a shout out from Atascocita Tx! Just wanted to tell you keep up the fantastic work!

  • Should you choose everything since it is discussed you will obtain your things in thirty seconds.

  • Marcelo

    Amazing Script!
    Works 100%
    Installed in a minute!
    Congratulations for the developers!

  • Ron

    Just installed nginx, let’s see how it work! Already noticing, less CPU and Memory usage :)

  • Hello to all, because I am actually keen of reading
    this weblog’s post to be updated daily. It includes fastidious stuff.

Leave a Reply

Your email address will not be published. Required fields are marked *


*