INTRODUCCION
Queremos que un usuario pueda poner: http://127.0.0.1/~paco
CREAR LA CARPETA PUBLIC HTML
mkdir /home/paco/public_html
ACTIVAR LAS CARPETAS DE USUARIOcd /etc/apache2/mods-enabled
sudo ln -s ../mods-available/userdir.conf userdir.conf
sudo ln -s ../mods-available/userdir.load userdir.load
CREAR UN SERVERNAME
gedit nano /etc/hostname
127.0.0.1 profesor localhost
192.168.0.20 profesor
ACTIVAR PHP
sudo nano /etc/apache2/mods-available/php5.conf
AddHandler application/x-httpd-php .php .html .htm .file
SetHandler application/x-httpd-php
SetHandler application/x-httpd-php-source
# To re-enable php in user directories comment the following lines
# (from
# prevents .htaccess files from disabling it.
#
#
# php_admin_value engine Off
#
#
REINICIAR
sudo /etc/init.d/apache2 restart