CodeIgniter Forums
Trying to use Codeigniter4 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forum-31.html)
+--- Thread: Trying to use Codeigniter4 (/thread-65910.html)



Trying to use Codeigniter4 - reymarkdivino - 08-08-2016

guys i need help. i try the ci4 and when i go to "localhost/ci4dev" and then i see this.

If you see this message, you have not configured your web server properly.
You need to set your "document root" to the 
Code:
public

 folder inside your project. This could be your default setting, or that of a virtual host, depending on how you set up your local development environment.



RE: Trying to use Codeigniter4 - kilishan - 08-08-2016

(08-08-2016, 05:23 PM)reymarkdivino Wrote: guys i need help. i try the ci4 and when i go to "localhost/ci4dev" and then i see this.

If you see this message, you have not configured your web server properly.
You need to set your "document root" to the 
Code:
public

 folder inside your project. This could be your default setting, or that of a virtual host, depending on how you set up your local development environment.

What's your question? The message is telling you to, in a nut-shell, run the site from the public folder. What are you using as a webserver? Apache? NGINX? PHP's built-in server?


RE: Trying to use Codeigniter4 - prezire - 08-09-2016

(08-08-2016, 05:23 PM)reymarkdivino Wrote: guys i need help. i try the ci4 and when i go to "localhost/ci4dev" and then i see this.

If you see this message, you have not configured your web server properly.
You need to set your "document root" to the 
Code:
public

 folder inside your project. This could be your default setting, or that of a virtual host, depending on how you set up your local development environment.

Code:
cd public
And run your server from there. Something like
Code:
php -S localhost:8000