How to setup LAMP stack on Ubuntu VPS
I’m no linux guru and I had to get a whole bunch of resources together to compile this list on how to set up LAMP (linux apache mysql and php).
You must run these as root:
apt-get update apt-get upgrade apt-get dist-upgrade apt-get install ubuntu-standard apt-get install lamp-server^ apt-get install php5-cli- apt-get install php5-curl
(rest and/or go take a dump) apt-get install curl apt-get install wget apt-get install imagemagick apt-get install emacs- apt-get install sendmail (if you need php mail() function)
Change apache’s memory usage setting ..
Then
12. a2enmod rewrite
13. a2enmod mod_headers (if you have wordpress blogs and want to have caching)
14. a2endmod mod_expires (same as #13)
15. a2endmod auth_basic (basic apache security)
16. a2endmod auth_digest
15. /etc/init.d/apache2 restart
16. /etc/init.d/mysql restart
PS:If your VPS provider doesn’t give you access to their nameservers (cuz they’re doosh bags), you can always go with EveryDNS. Set it up there and point to EveryDNS dns servers on your registrar.
PPS: If your Ubuntu distro doesn’t respond to this command:
apt-get install libapache2-mod-security
You need to manually download from here then run “dpkg -i libapache-mod-security_2.5.12-1_i386.deb”.
Recent Comments