To install Apache, PHP5, and MySQL on Ubuntu Linux and configure them to work together, you can use the following steps:
sudo apt-get updateSouwww:ecr.lautturi.com
sudo apt-get install apache2 mysql-server php5-mysql php5 libapache2-mod-php5
This will install Apache, PHP5, and MySQL and configure Apache to use PHP5.
sudo service apache2 start sudo service mysql start
mysql_secure_installation
Follow the prompts to set the root password and configure the MySQL server.
/var/www/html
). For example, create a file called info.php
with the following contents:<?php phpinfo(); ?>
http://localhost/info.php
. This should display the PHP information page, indicating that Apache and PHP5 are working correctly.That's it! Apache, PHP5, and MySQL should now be installed and configured on your Ubuntu Linux system.
Keep in mind that this is a basic installation and configuration of Apache, PHP5, and MySQL. You can customize the configuration by modifying the Apache and PHP5 configuration files, and by creating and modifying MySQL databases and users.