Basics of PHP #1
You’ll notice we’ve been covering the basics of MySQL and Apache, we will also be covering the basics of PHP. And why under the server section? Databases and scripting languages don’t necessary make a server, but they are integral to the most common stack you find on the web, which is called LAMP. (Linux-Apache-MySQL-PHP).
The first thing we want to do is make sure we have the latest stable apache and php installed.
- On Debian/Ubuntu: sudo apt-get install apache2 libapache2-mod-php5 php5
- On Fedora (as root): yum install httpd php
- On OpenSuse(as root): zypper in apache2 apache2-mod_php5 php5
And just to make sure apache is running: /etc/init.d/apache2 restart













