Install Apache2, Php5 and MySql on Ubuntu 9.10

7:39 am MySql, PHP, Ubuntu/Linux

Step 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

Step 2. Turn on php module to work with Apache:

[html]
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

Step 4. Restart apache:

[html]
/etc/init.d/apache2 restart

Useful Link:

  • http://ubuntuforums.org/showthread.php?t=277819
  • http://ubuntuforums.org/showthread.php?t=479194&page=2
Leave a Comment

Your comment

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.