Welcome Guest, Not a member yet? Register   Sign In
You need to set your "document root" to the public folder inside your project.
#1

Hello

I installed Code Igniter on XAMPP PHP 7.2.2. But I see this message

Code:
If you see this message, you have not configured your web server properly.

You need to set your "document root" to the 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.
I installed virtual server on XAMPP and I configured the config php file but nevertheless I see this message.
Have you got any idea about this problem?
Reply
#2

Like the message says, you will need to set your document root inside Apache's httpd.conf

Code:
DocumentRoot "/opt/lampp/apache2/htdocs/YOURPROJECT/public"
<Directory "/opt/lampp/apache2/htdocs/YOURPROJECT/public">
...

or you will need to set the document root of your virtual host inside Apache's conf/extra/httpd-vhosts.conf

Code:
<VirtualHost *:80>
   DocumentRoot "YOURPROJECTROOT/public"
   ServerName yourproject.local
   ErrorLog "logs/yourproject-error_log"
   CustomLog "logs/yourproject-access_log" common
</VirtualHost>
Reply
#3

Thanks. Problem was solved!

Thanks
Reply




Theme © iAndrew 2016 - Forum software by © MyBB