Welcome Guest, Not a member yet? Register   Sign In
Some help needed with setup?
#1

[eluser]Solarpitch[/eluser]
Hi,

I've installed and set up CI on 2 servers already with no problems but I'm currently installing it on a different server and am not having much luck. I installed the system directory inside the root www folder. I also put my .htaccess file withing the www folder with the below rule...

Code:
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|css|img|js|captcha)
RewriteRule ^(.*)$ index.php/$1 [L]

The problem is, no matter what way I try to call the welcome controller to test the setup, it keeps showing the index page of www.mysite.com/index.php. Here's what I tried..

http://www.mysite.com/index.php/welcome/
http://www.mysite.com/welcome/

Tried $config['index_page'] with "index.php" and with "" but still no joy. Maybe there's something im missing?

Code:
$config['base_url'] = "http://www.mysite.com/";
$config['index_page'] = "index.php";
#2

[eluser]Pascal Kriete[/eluser]
Try accessing it with a question mark after index.php:
Quote:http://www.example.com/index.php?/welcome/

Does that work?
#3

[eluser]Solarpitch[/eluser]
No that still doesnt work like that. No matter what way I have it the URL will stay the same put it will load the contents of www.mysite.com/index.php.

I've been trying this for almost 2 days, I've reinstalled CI several times and started from scratch and tries the URL in several ways. Running out of ideas at this stage.
#4

[eluser]Pascal Kriete[/eluser]
Ok, seems we'll have to dig a bit.

Start by removing the .htaccess file - once it works without that you can start worrying about removing index.php.

Then try accessing http://example.com/index.php?/welcome again.

(you did change the welcome controller/default route, right?)

If that doesn't work, keep the uri the same and flip the uri protocol to QUERY_STRING (in config.php):
Code:
$config['uri_protocol']    = "QUERY_STRING";

You may also want to try searching the forums for the name of your host to see if anyone else has had this problem.
#5

[eluser]Solarpitch[/eluser]
I already tried searching the name of my host on the forum but it cant be found unfortunately. I've tried what you suggested and still no joy. Even when I try the URI like you said I just get...

The requested URL /index.php/welcome was not found on this server.

I have default controller set as...
$route['default_controller'] = "welcome";

I'm not even concerned about removing index.php at the min, I just want to get the framework functioning first but it's almost like the system folder doesn't even exist on the server. Like I said, I've had no such problems in the past so it very strange whats happening now.

I also changed all of the $config['uri_protocol'] settings but that didnt make a difference.
#6

[eluser]Pascal Kriete[/eluser]
I have a feeling we're not on the same page.

Quote:it keeps showing the index page of www.mysite.com/index.php.

The index page is the default route, which in your case would be the welcome controller. You'll need to help me out here - what are you seeing, and what are you expecting to see?
#7

[eluser]Solarpitch[/eluser]
Actually... I seen the index.php page was missing from outside the system folder for some reason. I added that and the framework seems to be functioning now. I still have one or two small issues but should be able to iron them out from the info previously posted.

Thanks for your help.
#8

[eluser]Pascal Kriete[/eluser]
Hee hee, that'll do it.

My pleasure, happy coding!




Theme © iAndrew 2016 - Forum software by © MyBB