Reputation: 171
I'm working on Laravel 5 and I'm using PHP function php -S localhost:8888 folder-name - t
to show the web site.
Everything is working fine until I updated to Window 10. Now, I try to run the project in my browser, I get a blank page and this message in my cmd
:
[Mon Aug 03 00:17:05 2015] PHP Fatal error: Unknown: Failed opening required 'public' (include_path='.;C:\php\pear\') in Unknown on line 0
What is going wrong?
Upvotes: 4
Views: 7509
Reputation: 11
It is a permission error actually. But if you try to run directly from your localhost server, it will work.
On windows 10 PHP Server will not be able to access PHP Pear extension that is why it is showing this error.
If you are running XAMPP. you have to go to your apache localhost with http://localhost/laravel-folder/public.
Upvotes: 1
Reputation: 1151
It sounds like a permissions issue. I don't have much experiencing working with Laravel on Windows, but I just fixed a similar issue on an Ubuntu box.
The source of trouble for me was that I installed composer as root, so I had to remove ./vendor, change the owner and group of ~/.composer to ubuntu:www-data (ubuntu is my user, www-data is the Nginx user), and rerun composer install. I also made sure the ./storage permissions were recursively set to 775, and change the owner of my entire Laravel project to ubuntu:www-data.
Some stuff will definitely be different if you're on Windows, but hope this helps!
Upvotes: 1