bars-web
Presinstallation
-
Install apache2
-
Enable port 8082 in apache
-
Create file at
/etc/apache2/sites-available/bars.dev.conf
with the following content:<VirtualHost *:8082> DocumentRoot /home/amatasuarez/workspace/bars-web ServerAdmin admin@localhost ServerName bars.dev ServerAlias www.bars.dev ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined <Directory /home/amatasuarez/workspace/bars-web> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Require all granted </Directory> </VirtualHost>
-
Install SQL and PHP extension and enable it for apache
-
Add domain to
/etc/hosts
:127.0.0.1 www.bars.dev
-
Enable site in apache2:
-
sudo a2ensite bars.dev.conf
-
sudo service apache2 reload
-
Review
/wp-config.php
and update configuration accordingly.
Installation & Development
npm install
php composer.phar install
npm start