CodeIgniter Forums

Full Version: Trying to use Codeigniter4
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
(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?
(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