Differences

This shows you the differences between two versions of the page.

lamp_setup [2009/02/05 15:47] (current)
danux created
Line 1: Line 1:
 +< back to [[Web Servers]]
 +====== LAMP Setup ======
 +
 +===== Install and Setup =====
 +
 +  apt-get install apache2.2-common apache2
 +
 +Remember to open the firewall
 +
 +  ufw allow 80/tcp
 +
 +Mods are kept in
 +
 +  /etc/apache2/mods-available
 +
 +to enable them
 +
 +  cp /etc/apache2/mods-available/<mod_name> /etc/apache2/mods-enabled/
 +
 +===== Control Commands =====
 +
 +Restarting, rarely needed:
 +
 +  /etc/init.d/apache2/restart
 +  OR EVEN BETTER
 +  apache2ctl restart
 +
 +Reloading, after changing vhosts or installing mods
 +
 +  /etc/init.d/apache2/force-reload
 +
 +===== Extra Goodies =====
 +
 +==== PHP5 ====
 +
 +Install PHP5
 +
 +  apt-get install php5
 +
 +==== MySQL ====
 +
 +  apt-get install mysql-server
 +  -- Enter Root Password
 +  -- Repeat Root Password
 +
 +==== phpMyAdmin ====
 +
 +  apt-get install phpmyadmin
 +  -- Select apache2
 +
 +  vi /etc/apache2/sites-enabled/000-default
 +
 +Find:
 +
 +  ...
 +  <VirtualHost *>
 +      ServerAdmin webmaster@localhost
 +      DocumentRoot /var/www/
 +  ...
 +
 +Change to:
 +
 +  ...
 +  <VirtualHost *>
 +      ServerAdmin webmaster@localhost
 +      DocumentRoot /var/www/
 +      Alias /phpmyadmin /usr/share/phpmyadmin
 +  ...
 
lamp_setup.txt · Last modified: 2009/02/05 15:47 by danux
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki