I am a Ubuntu newbie. While installing Laravel using terminal, I came across this issue:

roger@roger-P580:/etc/apache2/sites-available$ cd /var/www/laravel    

roger@roger-P580:/var/www/laravel$ a2ensite laravel.example.com    

ERROR: Site laravel.example.com does not exist!

What am I supposed to do?

1 Answer 1


You asked "problem installing laravel", in that case simply do steps 1 to 3 correctly from this guide : Refer to this working guide to install laravel,

Otherwise if those steps are clear, you might refer the last steps- Assuming you created a virtual host, you have to reload the service :

$ a2ensite laravel.example.com

$ sudo service apache2 reload

And after that put up a port for accesing it thru browser.

sudo echo " laravel.example.com" >> /etc/hosts

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.