View Full Version : Install Nginx 0.8.53 +phpmyadmin+mysql+php-fpm+ftp script!
Ruchirablog 11-02-2010, 07:17 AM Hello,
I have modified LNMP.org's nginx install script to install latest stable nginx version without legacy stable versions because lots people asked for it!
This script will install-
* Nginx 0.8.53
* PHP 5.2.14 ( Didn’t updated it to 5.3.x because some web scripts reported to be having problems with 5.3.X branch)
* Mysql 5.1.48
* PHPMyAdmin 3.3.7
* Eaccelerator (optional 1 click install)
* VsFTPd, PureFTPd (Optional 1 click install)
* PHP Suhousin Patch
All you have to do is execute 4 commands and its ready to roll on your vps or dedicated.
For now only debian 5 (32bit and 64bit both) is supported. Ubuntu has some package installation problems on version 10.04.1 and 10.10 but you can install on 10.04LTS but i extremely recommend debian to this!
Ubuntu will be supported on next release!
Here are the steps to install-
1. Download the installer package-
wget -c www.ruchirablog.com/nginx/lnmp0.5.tar.gz
2. Decompress the install package-.
tar zxvf lnmp0.5.tar.gz
3. Go to install directory-
cd lnmp0.5
4.Start installing-
./debian.sh
It will ask you 3 questions about your domain name,where server located ( To identify closest mirrors to download os updates), and mysql root password.
And it will take at least 15 minutes to install and it will be ready!
Here is the link for further reference - http://www.ruchirablog.com/nginx-autoinstaller/ (http://www.ruchirablog.com/nginx-autoinstaller/)
Please give your comments on this! :):agree:
craig joe 11-02-2010, 07:58 AM will it also working for centos ?
BTCentral - Ben 11-02-2010, 08:20 AM will it also working for centos ?
The poster said: "For now only debian 5 (32bit and 64bit both) is supported."
So no, it's for Debian. We made something similar for CentOS a while back though, you can find it here (http://www.webhostingtalk.com/showthread.php?t=981088).
For CentOS, i'd suggest http://www.btcentral.org.uk/projects/centmin/
Kurikami 11-02-2010, 08:34 AM Don't have an empty test box at he moment, how much memory does everything use on a minimal 32bit Debian distro?
Moved > Hosting Security and Technology Tutorials .
Ruchirablog 11-02-2010, 09:56 AM The poster said: "For now only debian 5 (32bit and 64bit both) is supported."
So no, it's for Debian. We made something similar for CentOS a while back though, you can find it here (http://www.webhostingtalk.com/showthread.php?t=981088).
Its a nice script! Original script supports centos but i didnt tried to modify it this time because but will have it on next release!
Ruchirablog 11-02-2010, 10:00 AM This script supports ubuntu but some installations of ubuntu 10.04.1 and 10.10 claimed to have problems while installing libraries which need to run php so at this time debian is the only O/S which is supported.
But you can try installing on 10.04.1 and 10.10 it might work for your server.
Im running my personal site www.ruchirablog.com (http://www.ruchirablog.com) with this script + ubuntu 10.04.1 no problems.
How ever sticking to Debian is most recommended!
Ruchirablog 11-02-2010, 10:03 AM Don't have an empty test box at he moment, how much memory does everything use on a minimal 32bit Debian distro?
I have tried this on 80MB XEN box it works great with wordpress blog with default max_children value! However I recommend lowering php-fpm max_children value if you need to run this on low end vps like 128MB etc.
Ruchirablog 11-04-2010, 12:51 AM Also adding another virtual host is very easy! just run ./vhost.sh and it will setup another domains for you. Even it will let you to add rewrites for known scripts like wordpress etc. Just easy!
sander815 11-23-2010, 06:13 AM when will it be compatible with ubuntu or centos?
Ruchirablog 11-23-2010, 09:09 AM when will it be compatible with ubuntu or centos?
of course this is compatible with ubuntu 10.04.1 if you need 10.10 you need to install this first on 10.04 LTS then you can upgrade to 10.10.
follow this guide I have updated it today!
http://www.ruchirablog.com/nginx-autoinstaller/
And you can use this with centos. but it only installs legacy stable version which is 0.7.67 not 0.8.53
if you need to install this on centos run ./centos.sh instead of ./debian.sh
Thanks
MarlX 11-23-2010, 09:43 PM Wow nice! Thanks for this!
sander815 11-24-2010, 05:44 AM tried it on centos 5.5 vps 128mb
compiling mysql takes a long time
after that it seems to hang:
make[3]: Entering directory `/root/lnmp0.5/mysql-5.1.48/mysql-test'
make[3]: Nothing to be done for `install-exec-am'.
make INSTALL_TO_DIR="/usr/local/mysql/mysql-test" install_test_files
make[4]: Entering directory `/root/lnmp0.5/mysql-5.1.48/mysql-test'
the last command is running for 10 min now
drspliff 11-24-2010, 06:22 AM Why not provide them as a set of .deb packages instead of a naive 'installer' script?
And why use the external PDO_MYSQL when it was merged into the PHP mainline (where it has received bugfixes and improvements) and the last update to the pecl module was in 2006?
It seems like far too much effort to get the same setup which is provided by Debian stable with a few pinned packages with one or two other well maintained package repositories (like the nginx official ppa, dotdeb.org PHP packages etc.)
Ruchirablog 11-24-2010, 07:49 AM tried it on centos 5.5 vps 128mb
compiling mysql takes a long time
after that it seems to hang:
make[3]: Entering directory `/root/lnmp0.5/mysql-5.1.48/mysql-test'
make[3]: Nothing to be done for `install-exec-am'.
make INSTALL_TO_DIR="/usr/local/mysql/mysql-test" install_test_files
make[4]: Entering directory `/root/lnmp0.5/mysql-5.1.48/mysql-test'
the last command is running for 10 min now
Of course full installation takes at least 30 minutes to complete on cerntos. And I dont see any problems on 128MB vps because i used to run this script on 80MB XEN Box with image hosting script! :) However if your RAM is oversold specially Openbz system you might be running out of ram
Please give it time and update me if theres any problem!
Ruchirablog 11-24-2010, 07:57 AM Why not provide them as a set of .deb packages instead of a naive 'installer' script?
And why use the external PDO_MYSQL when it was merged into the PHP mainline (where it has received bugfixes and improvements) and the last update to the pecl module was in 2006?
It seems like far too much effort to get the same setup which is provided by Debian stable with a few pinned packages with one or two other well maintained package repositories (like the nginx official ppa, dotdeb.org PHP packages etc.)
Well this was not built by me but I think the original developer www.lnmp.org made this as native because there are lots of functions on this script like one click virtual host adding etc. its very easy to add rewrites for new virtual hosts just need to run ./vhost.sh and it will ask few questions about rewrites etc.
Running this as native bash script gives you more functions than .dep package ! :agree:
drspliff 11-24-2010, 08:11 AM Well this was not built by me but I think the original developer www.lnmp.org made this as native because there are lots of functions on this script like one click virtual host adding etc. its very easy to add rewrites for new virtual hosts just need to run ./vhost.sh and it will ask few questions about rewrites etc.
Running this as native bash script gives you more functions than .dep package ! :agree:
I mean you can do all of this without having to build everything from source, unless you keep a good eye on things (which is probably unlikely - since they're using an 'auto' script) it will only make things harder to maintain in the long-run.
Ruchirablog 11-24-2010, 08:41 AM I mean you can do all of this without having to build everything from source, unless you keep a good eye on things (which is probably unlikely - since they're using an 'auto' script) it will only make things harder to maintain in the long-run.
Of course I agree its harder to maintain in long run. But this also applies to debian package system too there is possibility of breaking things on updating things. So nothing is simple when you want server running years! :)
mixmox 11-25-2010, 07:15 AM mmm can we run this script on
CentOS + directadmin
and
CentOS+Cpanel ?
Ruchirablog 11-25-2010, 08:51 AM mmm can we run this script on
CentOS + directadmin
and
CentOS+Cpanel ?
You can run this on centos please refer http://www.ruchirablog.com/nginx-autoinstaller/
But not with cpanel or directadmin this script is designed to operate servers with bash prompt!
deepmob 01-12-2011, 12:15 AM hi there.
I am facing problem in adding domain.
I am adding domain.
then I go to godady domain pannel and change the name server its now 1 week but still propogation has not finish.
do you know what can be wrong.
Ruchirablog 01-12-2011, 12:25 AM hi there.
I am facing problem in adding domain.
I am adding domain.
then I go to godady domain pannel and change the name server its now 1 week but still propogation has not finish.
do you know what can be wrong.
You have to add A records not Name servers http://www.ruchirablog.com/setup-dns-with-godaddy/
deepmob 01-14-2011, 09:41 PM when I am restarting the lnmp i am getting this error
http://imagemate.info/image-E885_4D31171D.jpg
and when I am adding a domain then afer adding I am getting this error on the page
Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /home/wwwroot/inc/config.php on line 5
Could not connect
raffo 01-15-2011, 12:21 AM Too easy in Debian based system!
But very useful for who don't want to know how it work...
Ruchirablog 01-15-2011, 09:51 AM when I am restarting the lnmp i am getting this error
http://imagemate.info/image-E885_4D31171D.jpg
and when I am adding a domain then afer adding I am getting this error on the page
Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /home/wwwroot/inc/config.php on line 5
Could not connect
Looks like you have added the same domain twice! Did you added your domain name when installing? and added again by command ./vhost.sh ?
And please run the "Top" command and find out current PID for mysql process and kill it! Then issue lnmp restart command!
For example if mysql pid value is "5000"
Issue command "kill 5000" then restart lnmp! It will fix the mysql problem!
deepmob 01-22-2011, 05:56 PM hey bro.
I had buyed a new vps and I get 2 additional ip
now I had setup the LNMP if I want to use these ip for different domain then how I can use it.
one more thing.
when adding a domain with vhost if I am entering xxxx.com and somebody trying to access the domian with www.xxxx.com then I am getting page cant be displayed.
and if I am enterting www.xxxx.com while adding domain with vhost then if I try to enter xxxx.com then also getting same error.
please help me with these.
thanks
bsdvps 01-22-2011, 10:14 PM Why not provide them as a set of .deb packages instead of a naive 'installer' script?
And why use the external PDO_MYSQL when it was merged into the PHP mainline (where it has received bugfixes and improvements) and the last update to the pecl module was in 2006?
It seems like far too much effort to get the same setup which is provided by Debian stable with a few pinned packages with one or two other well maintained package repositories (like the nginx official ppa, dotdeb.org PHP packages etc.)
You won't catch me installing third party .deb files
bsdvps 01-22-2011, 10:30 PM hey bro.
I had buyed a new vps and I get 2 additional ip
now I had setup the LNMP if I want to use these ip for different domain then how I can use it.
one more thing.
when adding a domain with vhost if I am entering xxxx.com and somebody trying to access the domian with www.xxxx.com then I am getting page cant be displayed.
and if I am enterting www.xxxx.com while adding domain with vhost then if I try to enter xxxx.com then also getting same error.
please help me with these.
thanks
Edit your nginx configuration file and add www.domain to the server_name
|