I am troubled in configuring laravel virtual host in my osx 10.13; Instead of Laravel default welcome page I get a 'Can't Open Page' error.
Following are the steps I executed:
laravel new sample app
Checked if it's working using php artisan serve
Entered 127.0.0.1 sampleapp.dev entry in /etc/hosts
Entered the below mentioned configuration for httpd-vhosts.conf
then this command sudo apachectl restart
Got the error "Can't open page"
Here is my entry in /etc/apache2/extra/httpd-vhosts.conf:
DocumentRoot "/Users/path-to-laravel-projects/sampleapp/public/" DirectoryIndex index.php ServerName sampleapp.dev ServerAdmin admin@admin.com AllowOverride All Options FollowSymLinks Indexes Order allow,deny Allow from all Satisfy Any
If I run the command php artisan serve It works fine. I try to access the localhost it works but when i try to load laravel project it does not work. Would' really appreciate any help in this regard.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2l0ZdQR
via IFTTT
Aucun commentaire:
Enregistrer un commentaire