CodeIgniter Forums
First time install help - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: First time install help (/showthread.php?tid=32075)



First time install help - El Forum - 07-12-2010

[eluser]jmanpa[/eluser]
I've got CI installed on my server and am able to get the index.php to display the default screen. Now I've dropped a new controller and library in the appropriate directories (this one is the Twitter client) but I get a CI-generated 404 when accessing it via "http;//myurl/CI-Location/mynewcontroller/". I'm on Amazon EC2.

Only thing I've changed so far is the base_url in config.php.

Thanks,
John


First time install help - El Forum - 07-12-2010

[eluser]Tripic[/eluser]
Try “http;//myurl/CI-Location/index.php/mynewcontroller”.


First time install help - El Forum - 07-12-2010

[eluser]jmanpa[/eluser]
Sorry, meant to include the index.php in my first message. Yes, I have been doing so and it isn't working.


First time install help - El Forum - 07-12-2010

[eluser]Tripic[/eluser]
sounds to me like your base url isn,t set properley if thatsa the only thing you changed its all you should need to change for it to work or at least find the controller


First time install help - El Forum - 07-12-2010

[eluser]danmontgomery[/eluser]
[quote author="Tripic" date="1278989044"]sounds to me like your base url isn,t set properley if thatsa the only thing you changed its all you should need to change for it to work or at least find the controller[/quote]

base_url plays no part in loading a page accessed directly by url...

I haven't used EC2 with CI but you might need to change the value of $config['uri_protocol'] in config.php, I'd try each of the 4 options besides AUTO to see if any work.


First time install help - El Forum - 07-12-2010

[eluser]jmanpa[/eluser]
Ok, tried all of them to no avail.


First time install help - El Forum - 07-14-2010

[eluser]jmanpa[/eluser]
Fixed it. Being a newbie, I had mistakenly missed the naming conventions for within the controller