Results 1 to 31 of 31
  1. #1
    Join Date
    Apr 2010
    Location
    North Carolina
    Posts
    430

    Nginx + PHP-FPM + MySQL on CentOS. Works on 64MB RAM.

    Run this:
    Code:
    wget http://freevps.us/downloads/nginx-centos.sh
    bash nginx-centos.sh
    to install nginx, php-fpm and mysql on your CentOS VPS.

    RAM usage:
    64 bit OpenVZ VPS:
    Code:
                 Total     Used     Free
    Kernel:   2048.00M    4.51M 2043.49M
    Allocate:  256.00M   69.64M  186.36M (128M Guaranteed)
    Commit:    128.00M   30.46M   97.54M (37.3% of Allocated)
    32 bit VMWare virtual machine
    Code:
     free -m
                 total       used       free     shared    buffers     cached
    Mem:            59         54          4          0          1         18
    -/+ buffers/cache:         40         18
    Swap:         2047          0       2047
    32 Bit KVM VPS:
    Code:
                 total       used       free     shared    buffers     cached
    Mem:           246         81        165          0          2         46
    -/+ buffers/cache:         32        213
    Swap:            0          0          0

  2. #2
    Join Date
    Jul 2009
    Location
    Tangerang, ID
    Posts
    123
    nice one, will try this shortly after my vps has finished reload
    Last edited by lxspcby; 03-07-2011 at 07:00 PM.

  3. #3
    I would try niginx this way.

  4. #4
    how to create mysql database ???

  5. #5
    Join Date
    Jul 2009
    Location
    Tangerang, ID
    Posts
    123
    Quote Originally Posted by onel0ve View Post
    how to create mysql database ???
    you've posted the article about nginx + php + mysql in your blog:

    Code:
    http://smiling-dream.info/latest-stable-version-nginx-0-8-54-with-php-5-3-5.html
    but you don't know how to create mysql database? so funny

  6. #6
    :| that share topic i did not make it

  7. #7
    Join Date
    Jul 2009
    Location
    UK
    Posts
    1,308
    Quote Originally Posted by onel0ve View Post
    how to create mysql database ???
    mysql -uroot -pPASSWORD
    create database DBname;

    Done.
    Live Chat Support Software for your Business website - IMsupporting.com

  8. #8
    Join Date
    Jul 2009
    Location
    Tangerang, ID
    Posts
    123
    Quote Originally Posted by onel0ve View Post
    :| that share topic i did not make it
    ah, so you're just copying articles from another blog and post it in your blog rite?

  9. #9
    Quote Originally Posted by lynxus View Post
    mysql -uroot -pPASSWORD
    create database DBname;

    Done.
    thanks man
    one more question how to park domain
    [exp:- i wana park sub1.smiling-dream.info into smiling-dream.info ]

  10. #10
    Join Date
    Apr 2010
    Location
    North Carolina
    Posts
    430
    nano /etc/nginx/conf.d/smiling-dream.info.conf

    and add it to the end of the server_name line before the ; and then run

    service nginx reload

  11. #11
    i have been fix it creating another vhost file and config it for same dir
    anyway thanks
    and if possible give one way to install php 5.2 lots of script yet not capable for 5.3

  12. #12
    Join Date
    Jun 2003
    Location
    California
    Posts
    2,766
    Nice ... I've been playing with this today on a 128MB OpenVZ VPS from BuyVM.

    I guess the conf files are in /etc/nginx/conf.d ... is the default.conf file there the main nginx configuration file? The reason I ask is that most of the configuration guides on the 'net say to configure nginx.conf, which I can't seem to find in the usual places cited.

  13. #13
    Join Date
    Apr 2010
    Location
    North Carolina
    Posts
    430
    Quote Originally Posted by fshagan View Post
    Nice ... I've been playing with this today on a 128MB OpenVZ VPS from BuyVM.

    I guess the conf files are in /etc/nginx/conf.d ... is the default.conf file there the main nginx configuration file? The reason I ask is that most of the configuration guides on the 'net say to configure nginx.conf, which I can't seem to find in the usual places cited.
    The main config file is /etc/nginx/nginx.conf

  14. #14
    Cann't install in my fresh install Centos 64 bit. Can you help me?

  15. #15
    Update info :
    CentOS release 5.6 (Final) 64 bit
    Kernel Version: 2.6.18-194.el5xen

    Thanks

  16. #16
    Join Date
    Apr 2010
    Location
    North Carolina
    Posts
    430
    I did make some changes last night, and inbetween saving them and testing it you might have downloaded it. Delete the version you downloaded (rm nginx-centos.sh) and download and run it again.

  17. #17
    i downloaded the new version, install everything seem fine, but can't get ngix work with php. I tried edit the nginx.conf and the domain added but useless. Can you check again your script?

  18. #18
    Join Date
    Apr 2010
    Location
    North Carolina
    Posts
    430
    did you use the script to create the vhost or edit it manually?

  19. #19
    i use the script, don't work, then try to edit it manually, don't work too

  20. #20
    Join Date
    Apr 2010
    Location
    North Carolina
    Posts
    430
    are you getting a error message or is it just sending the php to the browser as a download?

  21. #21
    No error or php file download, just can't access the server via ip or domain (time out or some thing like that, but my server is fine, no down time).

  22. #22
    Join Date
    Apr 2010
    Location
    North Carolina
    Posts
    430
    run service nginx start

  23. #23
    nginx is start, I even tried to reboot the server, restart nginx, restart php, checked with other install script work fine

  24. #24
    Join Date
    Apr 2010
    Location
    North Carolina
    Posts
    430
    Then it might be iptables. run service iptables stop

  25. #25
    I tried but no success, thanks for your advice, dmmcintyre3.

  26. #26
    i install again and try service iptables stop then it worked, thank you very much. But is this command turn the filewall off? is there any security trouble here?

    Do we have other solution for this?

    Thank you.

  27. #27
    Join Date
    Apr 2010
    Location
    North Carolina
    Posts
    430
    It turns off the firewall. If you want to allow port 80 though the firewall, look at this: http://www.cyberciti.biz/faq/howto-r...sing-iptables/

  28. #28
    Thanks, install csf, allow the port 9000 for nginx then everything is good

  29. #29
    Thank so much for your tutorial. Anyone try to use LNMP - lnmp.org

  30. #30
    Does this install the latest version of nginx?
    Thanks

  31. #31
    Join Date
    Apr 2010
    Location
    North Carolina
    Posts
    430
    Quote Originally Posted by thomas01155 View Post
    Does this install the latest version of nginx?
    Thanks
    nginx version: nginx/1.0.0

    What version it installed depends on what version the epel or webtatic repos have.

Similar Threads

  1. Install Nginx 0.8.53 +phpmyadmin+mysql+php-fpm+ftp script!
    By Ruchirablog in forum Hosting Security and Technology Tutorials
    Replies: 32
    Last Post: 08-18-2013, 07:26 AM
  2. nginx + php-fpm shared hosting
    By AltruHost in forum Web Hosting
    Replies: 19
    Last Post: 03-04-2011, 08:33 AM
  3. nginx with php-fpm troubles
    By whdev in forum Hosting Security and Technology
    Replies: 4
    Last Post: 04-10-2010, 01:52 PM
  4. Replies: 2
    Last Post: 01-15-2010, 02:01 PM
  5. Apache vs Nginx (mod_php VS php-fpm)
    By bostjan in forum Hosting Security and Technology
    Replies: 7
    Last Post: 06-25-2009, 07:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •