Welcome Guest, Not a member yet? Register   Sign In
Failed to open stream
#1

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
Reply
#2

Did you setup your base_url
You run index.php out of the public folder.

We need more information on what you have done.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

(This post was last modified: 04-05-2021, 06:26 PM by Fauzanarth.)

(04-04-2021, 08:51 PM)InsiteFX Wrote: Did you setup your base_url
You run index.php out of the public folder.

We need more information on what you have done.
I 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
Reply




Theme © iAndrew 2016 - Forum software by © MyBB