Welcome Guest, Not a member yet? Register   Sign In
CI in folder within Webroot
#1

[eluser]Noahs Arkive[/eluser]
I searched for a like topic, but was unsuccessful...I'm sure this has been asked before tho'. If so, my apologies.

I want to install my CI app in a web root sub folder (on a Linux hosting service):

/domainWebroot/myCIApplication/


I copied my code to /myCIApplication/
Set $config['base_url'] = "http://www.mydomain.com/myCIApplication/";

I get a 404 error when I go to this url. Is there something I'm missing?

Thanks,
Noah
#2

[eluser]InsiteFX[/eluser]
You also need to modify your index.php file to point to
the correct path.

InsiteFX
#3

[eluser]danmontgomery[/eluser]
You don't need to modify index.php. index.php should be in /myCIApplication/, and regardless of your server setup you should be able to access the welcome page on a default installation without any customization. If you're receiving an apache 404 from a default installation (just extracting the files in /myCIApplication), the first thing I would look at is permissions. What does apache's error log say?
#4

[eluser]InsiteFX[/eluser]
noctrum,

I am on a shared hosting and if I place codeigniter in the root it will not
run!

I have to have index.php under public_html, and edit it to point to the root!

../../

Most shared hosting companies will not allow you to run index.php from the root,
For security reasons.

So maybe my setup is different...

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB