apache

Installing apache with php is a cake walk

  1. sudo aptitude install apache2
  2. sudo aptitude install php5
  3. sudo aptitude install mysql-client mysql-server php5-mysql
  4. in /etc/apache2/sites-available/default, section <VirtualHost *:80>, change DocumentRoot and <Directory /var/www/> to suit
  5. In /etc/apache2/mods-enabled/php.conf ensure:
    <IfModule mod_php5.c>
    AddType application/x-httpd-php .php .phtml .php3 .html
    AddType application/x-httpd-php-source .phps
    </IfModule>
  6. Restart Apache
    sudo /etc/init.d/apache2 restart
  7. browse to http://localhost/ - you should see "It works!"
  8. type zless /usr/share/doc/apache2/README.Debian.gz and read it

Send mail to the Webmaster

logo This site best viewed with a browser
Warning: This is a Debian centric site and MAY contain peanuts.
Many thanks to Debra Lynn and Ian Murdock for making Debian possible
First created Jul 12, 2009 ~ Last revised November 24, 2010

Valid XHTML 1.0 Strict Valid CSS!