![]() |
Failed to open stream - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Failed to open stream (/showthread.php?tid=78981) |
Failed to open stream - Fauzanarth - 04-04-2021 Hi there! After php spark serve run, i open localhost:8080 and there is an error like this Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0 Fatal error: Unknown: Failed opening required 'A:\xampp\htdocs\ci4app\vendor\codeigniter4\framework\system\Commands\Server/rewrite.php' (include_path='\xampp\php\PEAR') in Unknown on line 0 How to solve this error? CodeIgniter 4 version develop latest Context OS: Windows Web server: Apache PHP version: 7.3 RE: Failed to open stream - InsiteFX - 04-04-2021 Did you setup your base_url You run index.php out of the public folder. We need more information on what you have done. RE: Failed to open stream - Fauzanarth - 04-05-2021 (04-04-2021, 08:51 PM)InsiteFX Wrote: Did you setup your base_urlI don't know where is it But in ./app/config/App.php i found : public $baseURL = 'http://localhost:8080/'; and i found this in .env #-------------------------------------------------------------------- # APP #-------------------------------------------------------------------- app.baseURL = 'http://localhost:8080/' Sorry i'm new in Codeigniter RE: Failed to open stream - udinulis - 09-22-2021 (04-05-2021, 06:19 PM)Fauzanarth Wrote:(04-04-2021, 08:51 PM)InsiteFX Wrote: Did you setup your base_urlI don't know where is it i my case i just copy and paste rewrite.php in system\Commands\Server/rewrite.php' from original zip and work like magic RE: Failed to open stream - kenjis - 09-22-2021 Why A: drive? |