LAMP is the combination of Linux, the Operating System, Apache, and the most robust Web Server, MySQL, the tiny but powerful database and a scripting Language in the form of PHP, Python or Perl. Installing LAMP is easily done by using the install command in the Linux console after providing the admin password for MySQL. After installation, the local host has to be opened in the browser and it will show accordingly. The association between Apache & PHP is essential. The next step is testing PHP in the same browser and it should pass the test. This is applicable for all variants of Linux like Redhat, Mandrake, Ubuntu, etc.
LAMP is the acronym for a free and open source software suite, usually used to define and run a dynamic web server infrastructure, software development and establish a software distribution package.
- Linux: the OS
- Apache: the Web server
- MySQL: the database management system
- And finally one of these scripting languages: Perl, PHP or Python
sudo aptitude install apache2 php5 mysql-server php5-mysql libapache2-mod-php5
Enter admin password required by mySQL.
sudo /etc/init.d/apache2 restart
Once the installation is complete, open http://localhost
in your browser:
The root of your website is located in/var/www.
Create the file /var/www/test.php containing:
<? phpinfo(); ?>
in your browser.
Published by netty5
Latest update on March 14, 2012 at 04:49 PM by Virginia Parsons.