Page 1 of 52 1231151 ... LastLast
Results 1 to 15 of 780

Thread: nginx automated installer

  1. #1
    Registered Member This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Sep 2007
    Posts
    99

    Default nginx automated installer

    Evidently I don't know hot to post in the right forum.

    This is an automated nginx installer for cpanel. Integrates so that domain adding/removal is all done automatically.
    Some people had asked for cpanel support. In lieu of that, this does pretty much everything I can think of that they would do. It creates a vhost for each domain/addon/subdomain and serves up static content.

    Let me know if you have any thoughts/questions or better yet suggestions.

    Updated
    http://blargman.com/public.tar (nginx-0.7.67)
    http://blargman.com/publicnginxv8.tar (nginx-0.8.41)
    Last edited by blargman; 06-19-2010 at 12:46 PM.

  2. #2
    Registered Member
    Join Date
    Jun 2006
    Posts
    80

    Default

    Anyone have tried this?

  3. #3
    Registered Member This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Sep 2007
    Posts
    99

    Default

    Did you have a question on it?

  4. #4
    Registered User
    Join Date
    Jul 2008
    Posts
    1

    Default

    This script works wonderfully even for people who don't know how to properly use NGINX. Thanks Blargman you saved my day!

  5. #5
    Registered Member This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Sep 2007
    Posts
    99

    Default

    hah, full disclosure, I should say I work with Erikg :P , but thanks Erik.

  6. #6
    Registered Member
    Join Date
    Jun 2006
    Posts
    80

    Default

    I would like to know if i install this on a production server that have 20 configured domains, each one with subdomains and domain addons, will the install create the correct configuration for that existing vhosts?

  7. #7
    Registered Member This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Sep 2007
    Posts
    99

    Default

    That is correct xanubi. It pulls all of the domains/subdomains from the machine via the cpanel userdata files as well as the Cpanel XML API.

  8. #8
    Registered Member
    Join Date
    Aug 2008
    Location
    India
    Posts
    222

    Cool

    i have got nginx installed by some other guys before , if i use this will it update old ? what version of nginx this installs stable or developer ?

  9. #9
    Registered Member This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Sep 2007
    Posts
    99

    Default

    It currently installs the latest stable 0.7.65. If you install it, it would overwrite your nginx.conf with it's own so it would upgrade it in a sense. Though I would suggest making a backup of your config. Running ./nginxinstaller uninstall and then running ./nginxinstaller install. Just to be sure any of your old config was not still lingering.

    Do you have old configuration data that you wish to keep?

  10. #10
    Registered Member
    Join Date
    Mar 2007
    Posts
    143

    Default

    blargman, thank you very much for this. I've gone through your readme, but could you --please -- post a step-by-step for those of us who don't quite know where to start with the files we've downloaded from you?

  11. #11
    Registered Member This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Sep 2007
    Posts
    99

    Default

    Hey Texo, usage is just install and uninstall as far as the nginxinstaller script goes.

    cd /usr/local/src
    wget blargman.com/public.tar
    tar xf public.tar
    cd publicnginx
    ./nginxinstaller install


    Let me know if there is something else or if you have any questions

  12. #12
    Registered Member
    Join Date
    Mar 2007
    Posts
    143

    Default

    Awesome, thank you. Two more questions, please:

    does this replace apache or work in tandem, serving static files and passing everything else on to apache

    would you be offering support for $$$/hour?

  13. #13
    Registered Member This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Sep 2007
    Posts
    99

    Default

    I plan on shortly adding fcgi support to complete replace apache. Currently it serves up static content and passes php to Apache.

    I'm willing to help you with whatever you may need with it.

  14. #14
    Registered Member
    Join Date
    Jun 2006
    Posts
    80

    Default

    I would like to give some sugestions, based on what i see after install and production.

    ======================
    1) createvhosts.py
    ======================
    Add more file types, like this:
    location ~* \.(gif|jpg|jpeg|png|ico|wmv|avi|asf|asx|mpg|mpeg|mp4|pls|mp3|mid|wav|swf|flv|htm|html|txt|js|css|exe|zip|rar|gz|tgz|uha|7z|doc|docx|xls|xlsx|pdf)$ {

    ======================
    2) STATUSURL="http://localhost/whm-server-status"
    ======================
    On files:
    /usr/local/apache/bin/apachectl
    /etc/rc.d/init.d/httpd

    Change the line:
    STATUSURL="http://localhost/whm-server-status"
    To:
    STATUSURL="http://localhost:8081/whm-server-status"

    ======================
    3) Service and Chkcfg
    ======================
    Edit file /etc/chkserv.d/chkservd.conf and add nginx:1

    Add a file named nginx to /etc/chkserv.d/ and inside put this:
    service[nginx]=x,x,x,service nginx restart,nginx,root


    :::::::::::::::::::::::::::::::::::::::::::::::::::::

    That's it. With this settings, the "apache status" option of cpanel will work again, and the nginx service will be monitored and you can choose it from cpanel option "service manager". I hope this helps.

  15. #15
    Registered Member This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Sep 2007
    Posts
    99

    Default

    No problem. I added these for you.

Page 1 of 52 1231151 ... LastLast

Similar Threads

  1. Replies: 6
    Last Post: 08-19-2011, 04:38 AM
  2. NginxCP.com's Nginx installer for cPanel is modifying the server's signature...
    By fevangelou in forum Workarounds and Optimization
    Replies: 2
    Last Post: 01-11-2011, 10:51 AM
  3. nginx automated installer
    By blargman in forum General Discussion
    Replies: 222
    Last Post: 08-24-2010, 07:22 PM

Tags for this Thread

bargain