Installing LAMP: The Lazy Way

Hello! This is my first tutorial on this blog! I hope it was helpful 🙂

Okay, lets get started. LAMP stands for Linux, Apache, MySQL and PHP.

We already have Linux (this article assumes that you do), so we just have to install AMP. You have two (lazy) options when doing this:

Option 1…Ubuntu’s built-in command

You know what? Ubuntu has a command for installing those 3 things! Just run:

By the way, the caret (^) at the end of the command is important!

Option 2…Using Tasksel

Update lists and install tasksel…

Now install the LAMP stack…

Or, if you want to install another stack (Mail, Samba etc.) just launch Tasksel’s CLI (Command Line Interface)…

After you launch the install, MySQL will prompt you for a root password (choose a strong one!), type it in and press enter. Confirm your password and press enter again.


 

That’s it! You should have a fully functional web server by now (hopefully). To confirm this, go on your browser and type http://your_ip_here/ . If you see a “It works!” page, then you’re good to go! Congrats!

Move or upload your website’s files to /var/www/html and you’re good!

Thanks for reading and if you have problems, just comment on my post 🙂

Leave a Reply