sudo service apache2 start
sudo service apache2 stop
-- used usually when something change in settings, eg. new virtual host.
sudo service apache2 reload
sudo service apache2 restart
sudo service mysql start
sudo service mysql stop
mysql -u root -p
(press enter, prompt for password)
sudo nano /etc/hosts
Format follows ip -> host name
eg:
192.168.33.10 mw
192.167.33.11 himmax
This means when you enter "mw", the browser will look for 192.168.33.10 - note it is more important to now the 'host name'
sudo a2enmod rewrite
sudo a2enmod vhost_alias
cd /etc/apache2/sites-available/
sudo nano mw.conf
-- note mw is the same name we input in /etc/hosts
-- SYNTAX: 'hostname'.conf
-- himmax.dev.conf, directowner.conf,
<VirtualHost *:80>
DocumentRoot /var/www/mw/public
ServerName mw
</VirtualHost>
sudo a2ensite mw.conf
mw/