Welcome Guest, Not a member yet? Register   Sign In
Install Just wont work.
#1

[eluser]waseem[/eluser]
Hi

I have installed (or tried to ) CI on an account on shared server.

http://www.noozed.com/ci/

I get the page not found error (which according to the tutorial is right)

Howeever when i create the hellow world script and save it as blog.php in the controllers dir I get this

http://www.noozed.com/ci/index.php/blog

Page not found again. Code for blog.php below.

Code:
<?php
class Blog extends Controller {

    function index()
    {
        echo 'Hello World!';
    }
}
?>


No idea why this simple task isnt working im not a noivce which makes it all the stranger because i followed teh instructions to the letter.
#2

[eluser]gtech[/eluser]
humm on the surface your setup looks correct, if you goto system/application/config.php what is

$config['base_url']

and

$config['index_page']

set to?

it should be

$config['base_url'] = 'http://www.noozed.com/ci/';
$config['index_page'] = 'index.php';

I guessed you might of already tried it, just the first thing that pops into my mind.

[edit] I cut and pasted your controller and it worked ok for me so must be config issue of some sort.
#3

[eluser]gtech[/eluser]
thinking about it even if the base_url and index_page is blank/incorrect you should still be able to see your controller as you are not referring to any links in your code..



have you checked your index.php in the root of your installation.. is the $system_folder / $application_folder pointing to the correct place?
#4

[eluser]waseem[/eluser]
All of the things you have suggested are correct,and as I had tried them as you guessed.

It's a strange problem, might just try the code on a different server or try a completly new install or something.

Will let you know how I get on , can't do it from work at the moment Smile
#5

[eluser]gtech[/eluser]
well good luck, your problem does seem to point to misconfiguration of the index.php to me, I assume index.php is being hit but it fails to load the controller.

some ideas that pop in to my head:

Have you tried putting the full path in the $system_folder / $application_folder config variables and then just the folder name?

Or it could have something to do with file permissions?

You can try to comment out the last line of index.php (require_once BASEPATH.'codeigniter/CodeIgniter'.EXTWink and echo "hello". when you browse to http://www.noozed.com/ci/index.php you should see hello, at least then you know you are hitting the index.php file.

You could put some debug to see what the config and application constants are set to.
#6

[eluser]waseem[/eluser]
The only other thing that it could be and I have been trying to find stuff on this is, that the hosting is DreamHost...

It says somewhere on this forum that i need to slect the PHP 5 version. Not sure how you do that, and what it means CI or the host plan.

This is the post below I just found maybe i will look at that and see if that fixes it

http://ellislab.com/forums/viewthread/45094/
#7

[eluser]BoltClock[/eluser]
[quote author="waseem" date="1196870506"]It says somewhere on this forum that i need to slect the PHP 5 version.[/quote]

You will have to ask DreamHost how to choose to use PHP 5.

[quote author="waseem" date="1196870506"]Not sure how you do that, and what it means CI or the host plan.[/quote]

It usually means the host plan, because CodeIgniter will automatically detect which version of PHP you're using, 4 or 5, and work accordingly.

Since the users posting in that thread seem to have solved their problems after switching to PHP 5, you should try it and let us know how it goes.
#8

[eluser]meigwilym[/eluser]
I've got exactly the same problem.

I've tried it on my localhost (WinXP Pro, Apache 2.0.55, PHP 5, MySQL 4.1) and on my remote server (Media Temple, similar settings), and get the 404 page all the time.

I've searched through all possible settings, but they're OK.

Could this be a bad download? Is there an MD5 checksum somewhere?

Thanks,

Mei
#9

[eluser]waseem[/eluser]
I was thinking that I jsut got it from the site , I tired it on my PC too with IIS and it didnt work, but i think that was iis being iis and i was going to download apache etc and use that then I thought might as well try it on the hosting server and i got the issues explained above.

I have asked my account to be put on PHP5 , lets see wot happens
#10

[eluser]Michael Wales[/eluser]
On Dreamhost you have to change the uri_protocol setting in config.php to REQUEST_URI. PHP5 is not a requirement.

Quote:| This item determines which server global should be used to retrieve the
| URI string. The default setting of "AUTO" works for most servers.
| If your links do not seem to work, try one of the other delicious flavors:




Theme © iAndrew 2016 - Forum software by © MyBB