Installing a LAMP on Linux

This book is aimed mostly at PC and Mac users but its contents will work equally well on a Linux computer. However, there are dozens of popular flavors of Linux and each of them may require installing a LAMP in a slightly different way, so I can’t cover them all in this book.

However, many Linux versions come preinstalled with a web server and MySQL, and chances are you’re set to go already. To find out, try entering the following into a browser and see whether you get a default document root web page:

http://localhost

If this works, you probably have the Apache server installed and may also have MySQL up and running—check with your system administrator to be sure, though.

If you don’t yet have a web server installed, there’s a version of Zend Server Free Edition available for download at http://tinyurl.com/zendfree.

All the instructions and help you need are detailed on the download page. Follow them closely or use the provided scripts and you should be able to work through all the examples in this book.

Get Learning PHP, MySQL, JavaScript, and CSS, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.