Apache
sudo apt-get update sudo apt-get install apache2
Virtual Hosts
sudo mkdir -p /var/www/sitelocal sudo chown -R $USER:$USER /var/www/sitelocal sudo chmod -R 755 /var/www/sitelocal
sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/sitelocal.conf sudo gedit /etc/apache2/sites-available/sitelocal.conf
Trebuie să conţină:
ServerAdmin webmaster@localhost DocumentRoot /var/www/sitelocal <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> ServerName sitelocal.local ServerAlias www.sitelocal.local
sudo a2ensite sitelocal.conf sudo a2enmod rewrite
sudo gedit /etc/hosts
Se adaugă linia:
127.0.0.1 sitelocal.local
MySQL
sudo apt-get install mysql-server php5-mysql sudo mysql_install_db
PHP
sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt sudo gedit /etc/apache2/mods-enabled/dir.conf
sudo service apache2 restart