This error is usually produced by incorrect directives in either the php. ini or the . user. ini files for your website. To resolve the problem check if there are files named php.ini or .user.ini in the document root folder of your website, open them and delete the following line: open_basedir=/some/invalid/path/here.
Laravel Homestead is an official, pre-packaged Vagrant box that provides you a wonderful development environment without requiring you to install PHP, a web server, and any other server software on your local machine. Vagrant provides a simple, elegant way to manage and provision Virtual Machines.
Instead of reinstalling try
vagrant up --provision
or
homestead up --provision
I had the same exact problem and found the solution through the use of larachat.
Here's how to fix it you need to have your homestead.yaml file settings correct. If you want to know how its done follow Jeffery Way tutorial on homestead 2.0 https://laracasts.com/lessons/say-hello-to-laravel-homestead-two.
Now to fix Input not specified
issue you need to ssh into homestead box and type
serve domain.app /home/vagrant/Code/path/to/public/directory
this will generate a serve script for nginx. You will need to do this everytime you switch projects.
He also discussed what I explained in this series https://laracasts.com/series/laravel-5-fundamentals/
This is easy to fix, because you have changed the folder name to: exampleproject
So SSH to your vagrant:
ssh [email protected] -p 2222
Then change your nginx config:
sudo vi /etc/nginx/sites-enabled/homestead.app
Edit the correct URI to the root on line 3 to this with the new folder name:
root "/Users/MYUSERNAME/Code/exampleproject/public";
Restart Nginx
sudo service nginx reload
Reload the web browser, it should work now
For me the following worked:
vagrant reload --provision
Giving my response just in case if anybody struggling with this issue.
You might need to verify that the server.root configuration in "/etc/ngnx/sites-available/domain" matching with your sites.to config in "Homestead.yaml".
If its not matching then change it and restart the webserver with "sudo service nginx restart"
And still things are not working then allow write permission for the "YOURSITE/app/storage" folder as "chmod -R 777 app/storage"
I also had the same problem, I had assumed that Laravel is installed "out of the box" but it seems it isn't. I SSH'ed to the machine and ran these commands:
cd Code
sudo composer self-update #not necessary, but I did it anyways
composer create-project laravel/laravel Laravel --prefer-dist
And everything was running as usual.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With