Install Apache2, Php5 and MySql on Ubuntu 9.10
March 29, 2010 7:39 am MySql, PHP, Ubuntu/LinuxStep 1. List of libraries needed for Apache2, Php5 and MySql for Ubuntu:
[html]
apt-get update
apt-get install apache2 libapache2-mod-php5 mysql-server libapache2-mod-auth-mysql php5-mysql php5
apt-get update
apt-get install apache2 libapache2-mod-php5 mysql-server libapache2-mod-auth-mysql php5-mysql php5
Step 2. Turn on php module to work with Apache:
[html]
a2enmod php5
a2enmod php5
Step 3. If you have .phtml or .pl file, remember to add to the follwing line to apache configuration file (/etc/apache2/apache2.conf):
[html]
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php .php .phtml
Step 4. Restart apache:
[html]
/etc/init.d/apache2 restart
/etc/init.d/apache2 restart
Useful Link:
- http://ubuntuforums.org/showthread.php?t=277819
- http://ubuntuforums.org/showthread.php?t=479194&page=2
