I would call setting up AMP on Linux the second easiest of the Big Three. First of all, as on any OS, you can always compile the program from source, but there’s a strong chance you’re more interested in using your Linux distribution’s repositories, as their whole purpose is to relieve users from compiling code themselves. Sometimes, your distro’s offical repos will not offer the most recent version of a program. For example, Fedora Rawhide only offered httpd 2.4.7 while a later ones were available from source. Also, you’ll be hard pressed to find common repositories with the most recent PHP and MySQL. Search rmpfind.net to see if you can find a Linux distro with the program versions you’re looking for.
yum or the graphical software manager to find the dependencies for “httpd”, “php”, and “mysql”. Better yet, follow this brilliant man’s guide, and you can’t possibly go wrong. Look at the descriptions for the packages you choose to confirm which version you’re getting. You may also have to search for various php extensions that may not come by default, like
Here, you’ll be using programs like
apt-cache to install new software and to see what you already have. Ubuntu has made an excellent guide to walk you through setup and help you find the appropriate software packages. In fact, it’s pretty much the same process for other distributions. As always, check the main software repositories to see if they have the version you want. The more popular Linux distributions tend to have online guides specifically geared towards setup on their environment, but many of these instructions pertain to Linux environments general. If you’d like to know more about what you can expect when compiling these from source, check out the Mac OS X guide.