Laravel does not work on after successful installation on mac. When I run the command: php artisan serve
it is opened at http://127.0.0.1:8000/
as well as url
of virtual host. (i.e. laravel.dev). After quitting the command php artisan serve
if I make any change and refresh the browser, it displays blank page again.
Asked
Active
Viewed 792 times
0

StreetCoder
- 9,871
- 9
- 44
- 62
-
1Odds are some folder(s) don't have permission. My bet is on the cache folder. – Andrei Jan 17 '17 at 08:48
-
@Andrew thanks it works now. – StreetCoder Jan 17 '17 at 08:51
-
I have made whole directory at 777. could you tell me which specific directory should be given permission. – StreetCoder Jan 17 '17 at 08:53
-
1I honestly can't remember which ones needed permission. But don't do 777, it's highly insecure to do that. 644 for files 755 for directories is the general consensus for such things. See [here](http://stackoverflow.com/questions/18817744/change-all-files-and-folders-permissions-of-a-directory-to-644-755) for a quick and easy way. – Andrei Jan 17 '17 at 08:54
-
okay thanks, I'll do :) – StreetCoder Jan 17 '17 at 08:56
1 Answers
0
It works with me when I change port 8000
to another one for example I use port 8080
.
Try the following :
In your command line prompt try :
php artisan serve --port=8080
Go to your browser with :
localhost:8080

Noha Salah
- 493
- 1
- 7
- 11