ø Don’t waste your time reading this blog ø

How to setup LAMP stack on Ubuntu VPS

Filed under: web 2.0 — Tags: — taewoo @ 6:12 pm January 19, 2010

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:

  1. apt-get update
  2. apt-get upgrade
  3. apt-get dist-upgrade
  4. apt-get install ubuntu-standard
  5. apt-get install lamp-server^
  6. apt-get install php5-cli
  7. apt-get install php5-curl
  8. (rest and/or go take a dump)
  9. apt-get install curl
  10. apt-get install wget
  11. apt-get install imagemagick
  12. apt-get install emacs
  13. 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”.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Spam protection by WP Captcha-Free