LEMP Stack: *10 Minute* VPS Install 4 Lucid 10.04 - WANNA BETA TEST?
-
*****
CHANGELOG: 20-Sep-10 .. Lemp Stacks now changed to allow for PHP-FPM installation from repositories.http://vpsbible.com/vps-setup-guides/stackscripts/stackscripts-index/
*****The first of the almighty Stackscripts has arrived.
Damn, gotta say chaps and chapesses .. I'm so darn exciteroonied about this
.. bloody thing had better work then :)
So what is a stackscript?
Well, pretty much it's the entire ruddy VPS-Nginx Bible wrapped into a top-tweaked script so .. rather than trawl all those docs:-
1. launch your distro
2. setup DNS
3. sort your auth keys on local
4. login
5. run the script
and and and and and
6. Go surf to your homepage
(well, as soon as your nameservers have resolved .. I can't control that)And how long to install all this stuff?
8 minutes on a Linode 516.
Hey .. that's waaaay more time down the pub.
Anyway, sorry, getting carried away. Point is ..
any takers for beta-testing?
It's flawless on Linode, and Uncorrupted, another VPS of mine .. but Fivebean choked (I've got a real cheap plan there, not enough power for this script.)
Here's the deal ..
I want to ensure this will work on as many VPS hosts as poss. In theory it should work on the lot but, hmmn, practise always gets the better of theory, huh.
Any takers .. lemme know, and kind regards.
By the way .. wanna setup a WordPress blog, from nothing, in 2 minutes?
.. that's working too .. out soon.
(It must be the DaftPunk .. maybe some Mahler would be more sensible before I make these announcements?)
Posted 1 year ago # -
Just about to get a vps.net VPS set up for a client (3 or 4 nodes) so will give this a go on that if that will help you Guv?
Don't think I can convince the client to go with Nginx as the final web server though as it's seen by them as as being a little too cutting edge and they don't want to have no GUI to use in emergencies!
If you have an Apache based script in the works I would welcome that though :)
Posted 1 year ago # -
cheers Andy .. have a go .. no Apache eq quite yet though :(
Posted 1 year ago # -
@the_guv,
this is quite cool stuff! One little query about the license wording in case one is setting up for a client, would that be an issue?
Posted 1 year ago # -
hey Benja, considering the time that goes into these, i appreciate the question
.. as far as I'm concerned, provided a current vpsBible subscriber is executing the script, not a third party, then the script can be used as many times as you want on as many boxes as you like.
.. the Debian script is lined up for publishing 5pm GMT, by the way .. and next week I'll publish the non-authentication-key equivalents which because some folks would prefer not to use keys, else to add those later.
Posted 1 year ago # -
If this stack gets tweaked in the future, I'd like to suggest the addition of adding
the freetype directive when making php.--with-freetype-dir=/usr/local/lib
Without it, php functions such as imagettftext will fail.
Posted 1 year ago # -
cheers Matt .. good idea. Also i want to add:-
- logrotate
- bind for DNS (rather than twiddle in the VPS control panel)anything else?
Posted 1 year ago # -
Used the 10min. script and wow it did what I had been trying to do for 2 days. Did learn a lot from doing it by hand first.
Now on to wordpress......
thanks,
Posted 1 year ago # -
Guvnr,
Just tried the script on a VPS.NET 2 node VPS with Lucid 10.04 basic install. Lots of errors. I'm thinking there must be a typo, but haven't found it yet. I did have remove all the line #'s from your scrip after the initial cut and past. But was ever so careful.
Here's a copy of the terminal log:
root@vps1:~# ./script.sh
./script.sh: line 71: makepasswd: command not found
./script.sh: line 71: export: `-': not a valid identifier
./script.sh: line 71: export: `vpsBible.com': not a valid identifier
./script.sh: line 71: export: `..
echo
sleep 1
echo ' .. Setup': not a valid identifier
./script.sh: line 71: export: `Noobs!'
echo
echo
echo
sleep 2
echo Go': not a valid identifier
./script.sh: line 71: export: `..# Update the system
aptitude update && aptitude -y safe-upgrade
# Set your locale
locale-gen en_US.UTF-8
/usr/sbin/update-locale LANG=en_US.UTF-8# Add a user, its group, create user /home directory and provide root privileges
useradd -s /bin/bash -m -d /home/lee --user-group lee
touch pass.txt
chmod 600 pass.txt
echo xxxxxx > pass.txt
aptitude install -y makepasswd
ph=
usermod -p lee
cp /etc/sudoers /etc/sudoers.tmp
chmod 0640 /etc/sudoers.tmp
echo lee': not a valid identifier
./script.sh: line 71: export: `ALL >> /etc/sudoers.tmp
chmod 0440 /etc/sudoers.tmp
mv /etc/sudoers.tmp /etc/sudoers
rm pass.txt# Setup authentication keys for easy secure login
mkdir /home/lee/.ssh
echo >> /home/lee/.ssh/authorized_keys
chown -R lee:lee /home/lee/.ssh
chmod 700 /home/lee/.ssh
chmod 600 /home/lee/.ssh/authorized_keys# Security configuration
sed -i s/Port': not a valid identifier
./script.sh: line 71: export: `22/Port': not a valid identifier
./script.sh: line 71: export: `6332/g /etc/ssh/sshd_config
sed -i s/PermitRootLogin': not a valid identifier
./script.sh: line 71: export: `yes/PermitRootLogin': not a valid identifier
./script.sh: line 71: export: `/g /etc/ssh/sshd_config
echo PasswordAuthentication': not a valid identifier
./script.sh: line 71: export: `yes >> /etc/ssh/sshd_config
sed -i s/X11Forwarding': not a valid identifier
./script.sh: line 71: export: `yes/X11Forwarding': not a valid identifier
./script.sh: line 71: export: `no/g /etc/ssh/sshd_config
sed -i s/UsePAM': not a valid identifier
./script.sh: line 71: export: `yes/UsePAM': not a valid identifier
./script.sh: line 71: export: `no/g /etc/ssh/sshd_config
echo UseDNS': not a valid identifier
./script.sh: line 71: export: `no >> /etc/ssh/sshd_config
echo AllowUsers': not a valid identifier
./script.sh: line 71: export: `lee >> /etc/ssh/sshd_config# Firewall configuration
aptitude install -y iptables
iptables-save > /etc/iptables.up.rules
echo ': not a valid identifier
./script.sh: line 122: *filter: command not found
./script.sh: line 124: -A: command not found
./script.sh: line 125: -A: command not found
./script.sh: line 127: -A: command not found
./script.sh: line 129: -A: command not found
./script.sh: line 131: -A: command not found
./script.sh: line 132: -A: command not found
./script.sh: line 135: -A: command not found
./script.sh: line 137: -A: command not found
./script.sh: line 139: -A: command not found
./script.sh: line 141: -A: command not found
./script.sh: line 142: -A: command not found
./script.sh: line 143: COMMIT: command not found
./script.sh: line 147: /etc/iptables.up.rules:g /etc/network/interfaces
/etc/init.d/ssh reload# Email with Posfix
rm /etc/hostname
rm /etc/hosts
echo vps1 >> /etc/hostname
echo : No such file or directory
./script.sh: line 155: 127.0.0.1: command not found
./script.sh: line 156: 127.0.1.1: command not found
./script.sh: line 157: ::1: command not found
./script.sh: line 158: fe00::0: command not found
./script.sh: line 159: ff00::0: command not found
./script.sh: line 160: ff02::1: command not found
./script.sh: line 161: ff02::2: command not found
./script.sh: line 162: ff02::3: command not found
./script.sh: line 164: >> /etc/hosts
echo postfix: No such file or directory
./script.sh: line 243: [xcache-common]: command not found
./script.sh: line 244: zend_extension: command not found
./script.sh: line 270: >> /etc/php/php.ini
echo '
[xcache.admin]
xcache.admin.user = mOo
xcache.admin.pass =
[xcache]
xcache.shm_scheme = mmap
xcache.slots = 8K
xcache.ttl = 0
xcache.gc_interval = 0
xcache.var_slots = 8K
xcache.var_ttl = 0
xcache.var_maxttl = 0
xcache.var_gc_interval = 300
xcache.test = Off
xcache.readonly_protection = Off
xcache.mmap_path = /dev/zero
xcache.coredump_directory =
xcache.cacher = On
xcache.stat = Off
xcache.optimizer = On
[xcache.coverager]
xcache.coverager = Off
xcache.coveragedump_directory =
' >> /etc/php/php.ini
echo : No such file or directory
./script.sh: line 271: [xcache: command not found
./script.sh: line 272: xcache.size: command not found
./script.sh: line 273: xcache.count: command not found
./script.sh: line 274: xcache.var_size: command not found
./script.sh: line 275: xcache.var_count: command not found
./script.sh: line 385: syntax error near unexpected token `<'
./script.sh: line 385: `echo "<p>Congratulations $USER, we're done and this server's purring.</p><p>Any queries, please, drop by the forums, say hi and ask away.</p>
<p>And if you're really really happy with this work? Hmmn, would you tell the folks at your VPS host forum?</p><p>Or maybe Uncle Digg or Auntie Twitter? Sure I'm cheeky.</p>
<p>Don't forget to check back for more scripts, like the 2-minute WordPress installation, now testing. Or make a request, by all means.</p>'
root@vps1:~#Posted 1 year ago # -
Hi Lee,
Er, don't suppose you could try again without removing anything :P
.. and post up the results?
Alternatively, I wonder how desperate you are for this? I'd rather like to have a play myself on your VPS.net server, if an unedited (other than variables) script fails.
Have to say though, this week I'm really up against the clock .. but let me know your thoughts here or by email.
Tx for the feedback.
Posted 1 year ago # -
Guv,
I'm starting fresh from basic install and following your tutorials step by step whilst taking copious notes. So, by week's end (allowing for broken shoulder surgery this a.m. that's dimmed my bulb a bit) I should have all the VPS.NET odd bits documented. Plus, I'm learning lots of really great stuff going through your tutorials!
I'll email you my results in a few days.
Posted 1 year ago # -
man, sounds painful sorry to hear.
'dimmed my bulb' .. must use that, nice.
Posted 1 year ago # -
free gmat tests hi i m vist your site and install the software.
Posted 1 year ago # -
Script installed perfectly but ive had issues with the php with some programs i used to use on the old 8.04 walkthrough now having kittens and spewing out php related errors
Posted 1 year ago # -
hey Brian .. post up the errors i'll take a look
Posted 1 year ago # -
Thank you for the "LEMP Stack: *10 Minute* VPS Install 4 Lucid 10.04" script. It's use in the setup of a Linode.com, Linode 512 VPS, hasn't yet resulted in a server I can login into, but I'm getting there.
Quick note. Linode has increased the amount of ram provided with each of it's VPS packages, and retitled each of their packages. The Linode 360 has been replaced by the Linode 512 as the lowest cost VPS.
Question 1:
Will the use of the 10 minute LEMP script result in the installation of a server identical to one installed following the first eleven steps (Stopping at "Nginx (better than Apache) Web Server") detailed in the "Install Your Virtual Private Server with Ubuntu & Nginx Excellence" guide?
I ask, because when I perform an installation following the guide, I end up with a server that accepts my use of a private key (Windows XP using PuTTY)to login, while the use of the script does not.
2. Line 063 of the 10 minute LEMP script reads "063.# Noob? .. YOU MUST READ http://vpsbible.com/security/keys", which seems to be in error as that page doesn't exist. What is the URL for what noobs like me must read?
Question 3: The instructions provided in "Encrypt Data with OpenSSH & Auto-Login with PuTTY" which are referenced in the use of the 10 minute script, state "DON'T COPY the end of the line (referred to as the Key comment) which begins rsa-key- followed by the date, ie rsa-key-20090330 in this image". Why is the key comment not included with what is copied to the authorized_keys file? That's at odds with the formal SSH documentation and with my use of public/private keys with other servers. I'm only trying to learn and understand and am not disagreeing with you.
Posted 1 year ago # -
Hi lkmcmillen,
Apologies, I have been crazy busy.
Firstly, you should know I have just today upgraded the existing 2 stackscripts with a few tweaks and introduced 4 more. The details are at the Stackscript Index page:-
Click here for the Stackscripts Index page.
The original "Sexy Cat" script, now dubbed "Top Cat" is in my opinion the best of the bunch. That said, the Debian equivalents and the LAMP scripts are nice too.
All tested perfect setting up on a Linode 512 this week.
Your q's:-
1. Yes. In fact a few days ago I updated about 12 tutorials to allow for a few changes I wanted to make and the Nginx Ubuntu stacks and tutorials are inn harmony. Debian is near as damn it the same .. The new Apache scripts are a little different of course.
If you have had key problems with the script that is odd, the original scripts tested perfect. Then again, I know that the script's key option is the trickiest element of the Stackscripts and so have produced two sets of stacks for each solutions. Let me be clear!!
- LAMP
- LEMP Debian
- LEMP Ubuntu (Top Cat).. each has two sets ..
- 1 with key
- 1 without, but you should folow the tuts to add the key later in most circumstances... That will make these scripts more accessible to noobs (and we all have been there .. not saying you necessarily are, mind!)
Also, these new scripts have better, *clearer* documentation and I reckon that will help a lot.
They are also modular, they all look very much the same because I've introduced a system to pick and choose commands and instructions from a central pool which means that when, say, Nginx gets an upgrade, I can change just one reference and all relevant scripts get updated .. this is going to help me be more organised and you tell more people :)
2. that's changed. all instructions in the original scripts is rewritten, and some code too.
3. no worries .. hmmn, to be honest I can't remember .. I'm very Linuxed up these days. I've not before (in over a year) heard of an issue with this particular detail but, hey, try both and let me know!
.. as long as you leave the sshd_conf variable set as :-
Passwordauthentication yes
.. you can't lock yourself out and can test both. More likely though you have an unwanted space.
..actually the stacks are great to deal with that because you have to add the pub key within the "quotation" marks and would see a space, which you don't necessarily when using nano.
Read the stacks accompanying notes too. That may help.
Keys do take some getting the hang of and PuTTY, while excellent, is very fiddly.
Posted 1 year ago # -
Hi Olly,
First and most importantly I'm glad you upgraded the name to "Top Cat". My wife was getting suspicious. ;-)
I'm going to be sitting down tonight and installing a new system with the above + wp, so will report back on what we find.
Cheers and thanks for your work.
Posted 1 year ago # -
LOL .. well Mr Roo, you inspired me.
4 new WordPress 3 tuts, although really 2 stacks (Single blog and Multi-Sites) with accompanying manual tutorials.
Posted 1 year ago # -
Just joined, love the stacks, very excited to be digging deeper.
I just tried top cat on a virgin Ubuntu 10.04 image on slicehost. Everything seemed to go really well, except the last bit:
.....
lemp-ubuntu-stackscript.sh: 529: cannot create /home/jcolvin/public_html/mydomain.com/public/index.php: Directory nonexistent
Stopping nginx: nginx.
Starting nginx: [emerg]: open() "/home/jcolvin/public_html/mydomain.com/log/access.log" failed (2: No such file or directory)And here is what is present in /home/jcolvin/public_html:
jcolvin@mail~ $ ls -l public_html/mydomain.com/
total 4
drwxrwsr-x 2 jcolvin webmasters 4096 2010-08-16 07:03 {backup,cgi-bin,log,private,public}Let me know if you want to play around on the box...
Posted 1 year ago # -
i think we should also have LEMP for CentOS5.5 x64
Posted 1 year ago # -
@Joshua .. thank you.
Did you change mydomain.com from your real domain?
The best thing, initially, would be to comb thru those variables, relaunching the distro and then the stack.
.. definitely this is an issue with the web files directory mydomain.com though.
@bb .. noted!
Posted 1 year ago # -
Hi Guv,
I am a new fan of Your vpsbible
and also interested in betatesting
Your new script.
Will Your betatest also be able to
lauch on Ubuntu 10.04 LTS AMD64
or is it for the 32bit version only?Posted 1 year ago # -
hey Sebo .. good to hear, thank you.
scripts are only 32bit versions tho, sorry (32bit tends to run faster tho)
Posted 1 year ago # -
After running the script - nginx was not starting.
Looking at the output, found the error:
script.sh: 530: cannot create /home/pete/public_html/lanxcapedev.com/public/index.php: Directory nonexistent
When I checked, sure enough the directory was not there, instead I saw a dir {backup,cgi-bin,log,private,public}
Looking at the script, it uses
mkdir -p /home/$USER/public_html/$DOMAIN/{backup,cgi-bin,log,private,public}Not sure why, but the above line in the script did not create the individual dir's but instead the entire {backup,cgi-bin,log,private,public} as one dir
Hardcoding $DOMAIN with lanxcapedev.com and retrying.
Posted 1 year ago # -
hardcoding the $DOMAIN did not fix the issue.
Instead I broke out the
mkdir -p /home/$USER/public_html/$DOMAIN/{backup,cgi-bin,log,private,public}Into a mkdir for each dir
Now nginx is running
when browsing hostname.mydomain.com result is: Welcome to nginx!
when browsing mydomain.com result is: 502 Bad Gateway
Posted 1 year ago # -
NOTE TO ALL ..
.. I've just revamped all LEMP stackscripts to allow for installing PHP-FPM from repositories.
New stacks also include a variable logrotate facility to keep website logs to a manageable size.
Posted 1 year ago # -
Hi Olly,
What needs to change in the Ubuntu 32bit LEMP Stackscript for it to work on 64bit?Thanks
Posted 1 year ago # -
Hi
I've just run the latest version of this script, it ran through til the end, rebooted, I can login using Pageant, etc.
But when I go to my site I see "502 Bad Gateway / nginx/0.7.67".
Any ideas what might have gone wrong?
The only thing I noticed while it was running were some "No such directory" messages - they flew past pretty quickly but I think were for "proc/modules"?
Posted 1 year ago # -
Blimey, that's confusing, it turns out I wasn't running the latest version of your Stackscript - any chance you could put a message at the top of the 'Sexy Cat' page saying it's now been superseded with a link to the latest one?
I'm gonna give that one a go now, see if I have any luck.
Posted 1 year ago #
