this is my first time using ubuntu server and i want to give it a try. I already did the apache2, mysql, phpmyadmin install, and VirtualHost setup. And I already download my program from github on /var/www/html/project/
. Usually when I run redirect my VirtualHost to /var/www/html/project/public
laravel would automatically start, but instead i got show a coding from /var/www/html/project/public/index.php
. What did i do wrong?
to setup VirtualHost first I type sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/project.dev.conf
and type this code
<VirtualHost *:80>
ServerName project.dev
ServerAdmin project@dev.com
DocumentRoot /var/www/html/project/public
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/custom.log combined
</VirtualHost>
and then on terminal I typed sudo a2ensite project.dev.conf
then restart sudo systemctl reload apache2
I followed this link https://help.ubuntu.com/lts/serverguide/httpd.html