I am a complete Noobie so would really appreciate some help!
I have loaded the VM many times, re provisioned, I have tried everything, but I still get a 403 Forbidden Error when trying to display the Hello Virtual Machine PHP page as per the instructions in the Jumpstart PHP Environment book.
The VM is running ok, and I can get to the “no input file specified” stage. But then once I create the Project and Public folders and add the “index.php” file all I get is 430 errors from then on…
Windows 10 Fresh Install, with all the latest patches.
@glen try the following: when inside the VM in your terminal, type:
less /var/log/nginx/error.log
Once the text opens, if it’s more than filled your screen press SHIFT + G to auto-scroll to the bottom of it. Then paste the contents you see there into a reply here, and we’ll know more.
That file is the Nginx error log and it should log all the errors you run into, but follow them up with more information.
Generally, the public folder should be lowercase (public) but the Project is uppercase, so keep that in mind - can trip you up.
@swader
Thank you for getting back to me. I checked the folders I created and made sure that the “public” folder was lower case, which it wasn’t. I then re-provisioned. It still comes up with the 403 error. I logged onto the VM and managed to log into the console. However when I run that command that you mentioned I should run to get the error file, nothing displays. It just says (END).
Okay, see if there’s a homestead.app.log in there or something similar - other error logs. Get their contents. Sometimes apps will have their own error logs, so they can easily be scanned. Useful if hosting several sites on one server.
You can go into a directory with cd /var/log/nginx and then type ls to list all the files in there. access.log stuff does not interest us, only errors.
@swader
Somehow I seem to have it working now.
Thank you very much for your time, helping me to get this resolved. Appreciate it immensely, as I am such a beginner.