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 🙂

Launch of this Blog!

Hello, readers!

I am Joe, and you have come to my new blog! I’ve always wanted to write down my frustrating problems and fixes with Code, Linux and Electronics! Tinkering things help me learn a lot, and now I wanted to share the knowledge with you, so you don’t have to spend so much time debugging things.

Start by scrolling down, or those that don’t have time, use the search on the right! I am constantly writing new things, but if you don’t find your article, feel free to contact me and I will see what I can do (might not be able to answer your question but will try :D)

Anyway, I hope this is helpful to everyone who comes! 🙂

Stay tuned,

Joe

P.S. Wouldn’t it be nice if there were a site like GitHub or StackOverflow where bugs, problems etc. and fixes would be stored in a database for everyone to see? I guess Stack Overflow is kind of like that, but it’s more of a question and answer site then a database for storing known/common problems and solutions.