Hi @jacynoadam, did you find the cause in the end? I'm getting the same error. Thanks
Laravel Sail configuration problem
Hey. I'm new to Docker and all that, and I seem to have problems setting up sail, and I can't find anything online.
To make it clear I'm running default configuration, the only idea I had was changing the WORKDIR in Dockerfile but it didn't do anything.
Basically, I installed Sail no problem, commands are working and all, but if I do sail up, the server does not work. I get ERROR 500 all the time, and in the console I get:
laravel . test_1 | [Sun Feb 14 02:03:46 2021] PHP Warning: Unknown: Failed to open stream: No such file or directory in Unknown on line 0
laravel . test_1 | [Sun Feb 14 02:03:46 2021] PHP Fatal error: Failed opening required '/var/www/html/server . php' (include_path='.:/usr/share/php') in Unknown on line 0
I have no clue what server . php is and it seems like it tries to require it from that exact location no matter what I do (I can't seem to find what is this file, where is that path taken from or how to change it).
I think this must be a simple mistake considering Sail is basically working out-of-the-box if I'm not mistaken, but I'm stuck, so any help is really appreciated.
(Had to add spaces between dots because it thinks these are links, sorry for the inconvinience)
EDIT: Does Sail not have a server...? When I recreated server . php file in my project file (which I don't have) it started working... I assume it's not acceptable for production so I have to install and configure an acceptable server manually, right?
EDIT2: I think I might be able to set up an apache server myself, but right now I can't pinpoint when and what server is ran automatically, so I can't ran apache as another "server" is already running. I'm considering if it won't be easier to just not use Sail at all, as it seems to complicate things more than help...
Please or to participate in this conversation.