Welcome Guest, Not a member yet? Register   Sign In
No URI present. Default controller set

(This post was last modified: 07-14-2015, 03:00 PM by drhowarddrfine.)

Sorry for the multiple threads but I'm being pressured.

In application/config/config.php, the Base Site URL line is set as: $config['base_url'] = 'http://'.$_SERVER['SERVER_NAME'];
But I get the error "No URI present. Default controller set." and a blank page. If I echo the value of '$config['base_url']' it returns "localhost" which I presume is incorrect since I'm running the server on a local computer but in a VM (VirtualBox) and accessing it from outside the VM.

If this is the problem, what do I do to fix it?

I need to warn that the code I'm working on was written for CI version 2.1.3 and I'm running it on Linux with the latest versions of mySQL and PHP.

Messages In This Thread
No URI present. Default controller set - by drhowarddrfine - 07-14-2015, 02:58 PM

Theme © iAndrew 2016 - Forum software by © MyBB