home projects speaker

How to install a LAMP server on Ubuntu

Note

Please note that this is an archived post, so links, code and the communicated message might be outdated. YMMV

I was trying to install a LAMP server locally and after some guides and questions I managed to get it up and running smoothly. How hard is it? Well, it is not that hard, thanks to Tasksel (Note: this will only work from Ubuntu 7.04 Feisty Fawn and above):

sudo tasksel install lamp-server

Troubleshooting

The following are some frequently encountered problems when checking the installation of your PHP stack in Ubuntu:

  • The browser shows you a popup asking you to open the file, as if the PHP engine is not recognized.

There's a problem with your php5-common package. Replace it with php5 and phpmyadmin. To replace php5-common, run the following two commands:

apt-get --purge remove php5-common

apt-get install php5 phpmyadmin

More help?

What is LAMP?

From Wikipedia:

LAMP is an acronym for a solution stack of free, open source software, originally coined from the first letters of Linux (operating system), Apache HTTP Server, MySQL (database software), and PHP, Python or Perl (scripting language), principal components to build a viable general purpose web server.


About the author

Hi! My name is Alexander, and I am a creative frontender, specializing in UX, accessibility, universal design, frontend-architecture, node and design systems. I am passionate with open source projects and love to dabble with new emerging technologies related to frontend. With over 24 years of frontend experience, I have earned the right to be called a veteran. I am a lover of life, technologist at heart. If I am not coding, I am cooking and I love whisky and cigars. Oh, and coffee, I LOVE coffee!

If you want to know more about me, here is some links you might want to check out: GitHub, Instagram, Twitter, LinkedIn, CodePen, Slides.com, npm,

Speaker

I am also an avid speaker on several topics! Check out some of the things I speak about, and contact me if you are interested in having me at your next event!