hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : VPS Hosting : VPS Tutorials : Nginx + PHP-FPM + MySQL on CentOS. Works on 64MB RAM.
Reply

VPS Tutorials Tutorials related to VPS.
Forum Jump

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

Reply Post New Thread In VPS Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 03-07-2011, 06:04 PM
dmmcintyre3 dmmcintyre3 is offline
Aspiring Evangelist
 
Join Date: Apr 2010
Location: North Carolina
Posts: 429

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

Reply With Quote


Sponsored Links
  #2  
Old 03-07-2011, 06:56 PM
lxspcby lxspcby is offline
WHT Addict
 
Join Date: Jul 2009
Location: Tangerang, ID
Posts: 119
nice one, will try this shortly after my vps has finished reload


Last edited by lxspcby; 03-07-2011 at 07:00 PM.
Reply With Quote
  #3  
Old 03-08-2011, 04:31 AM
no69_2007 no69_2007 is offline
Disabled
 
Join Date: Feb 2011
Posts: 287
I would try niginx this way.

Reply With Quote
Sponsored Links
  #4  
Old 03-09-2011, 08:32 AM
onel0ve onel0ve is offline
Disabled
 
Join Date: Feb 2010
Posts: 114
how to create mysql database ???

Reply With Quote
  #5  
Old 03-09-2011, 08:41 AM
lxspcby lxspcby is offline
WHT Addict
 
Join Date: Jul 2009
Location: Tangerang, ID
Posts: 119
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

Reply With Quote
  #6  
Old 03-09-2011, 08:43 AM
onel0ve onel0ve is offline
Disabled
 
Join Date: Feb 2010
Posts: 114
:| that share topic i did not make it

Reply With Quote
  #7  
Old 03-09-2011, 08:46 AM
lynxus lynxus is offline
Lord of live chats
 
Join Date: Jul 2009
Location: UK
Posts: 1,221
Quote:
Originally Posted by onel0ve View Post
how to create mysql database ???
mysql -uroot -pPASSWORD
create database DBname;

Done.

Reply With Quote
  #8  
Old 03-09-2011, 08:46 AM
lxspcby lxspcby is offline
WHT Addict
 
Join Date: Jul 2009
Location: Tangerang, ID
Posts: 119
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?

Reply With Quote
  #9  
Old 03-09-2011, 10:26 AM
onel0ve onel0ve is offline
Disabled
 
Join Date: Feb 2010
Posts: 114
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 ]

Reply With Quote
  #10  
Old 03-13-2011, 03:54 PM
dmmcintyre3 dmmcintyre3 is offline
Aspiring Evangelist
 
Join Date: Apr 2010
Location: North Carolina
Posts: 429
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

Reply With Quote
  #11  
Old 03-14-2011, 12:26 AM
onel0ve onel0ve is offline
Disabled
 
Join Date: Feb 2010
Posts: 114
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

Reply With Quote
  #12  
Old 04-08-2011, 05:57 PM
fshagan fshagan is offline
Web Hosting Master
 
Join Date: Jun 2003
Location: California
Posts: 2,481
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.

Reply With Quote
  #13  
Old 04-09-2011, 11:33 PM
dmmcintyre3 dmmcintyre3 is offline
Aspiring Evangelist
 
Join Date: Apr 2010
Location: North Carolina
Posts: 429
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

Reply With Quote
  #14  
Old 04-18-2011, 01:21 AM
newcome11 newcome11 is offline
New Member
 
Join Date: Apr 2011
Posts: 0
Cann't install in my fresh install Centos 64 bit. Can you help me?

Reply With Quote
  #15  
Old 04-18-2011, 02:13 AM
newcome11 newcome11 is offline
New Member
 
Join Date: Apr 2011
Posts: 0
Update info :
CentOS release 5.6 (Final) 64 bit
Kernel Version: 2.6.18-194.el5xen

Thanks

Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
nginx + php-fpm shared hosting AltruHost Web Hosting 19 03-04-2011 08:33 AM
Install Nginx 0.8.53 +phpmyadmin+mysql+php-fpm+ftp script! Ruchirablog Hosting Security and Technology Tutorials 28 01-22-2011 10:30 PM
nginx with php-fpm troubles whdev Hosting Security and Technology 4 04-10-2010 01:52 PM
Any dedicated host provider with nginx+php-fpm+mysql support hvs69 Dedicated Server 2 01-15-2010 02:01 PM
Apache vs Nginx (mod_php VS php-fpm) bostjan Hosting Security and Technology 7 06-25-2009 07:19 AM

Related posts from TheWhir.com
Title Type Date Posted
nginx Version 1.4.0 Supports SPDY Protocol Web Hosting News 2013-04-29 15:08:14
NGINX 1.2.0 Update of Web Server Improves HTTP Proxy Support Web Hosting News 2012-04-24 16:47:23
Web Server NGINX Partners With CDN Firm Jet-Stream Web Hosting News 2011-11-21 19:21:42
Open Source Web Server NGINX Receives $3 Million Investment Web Hosting News 2011-10-11 15:24:24
Web Host NetHosting Announces Support for CentOS 6 Web Hosting News 2011-07-05 20:15:20


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?