I am wanting to install CodeIgnitor on my hosting account, but I’m a little confused.
The documentation says:
“CodeIgniter is installed in four
steps:1.Unzip the package.
2.Upload the CodeIgniter folders and files to your server. Normally the
index.php file will be at your root.3.Open the application/config/config.php file
with a text editor and set your base
URL. If you intend to use encryption
or sessions, set your encryption key.”
I’m having trouble getting my head around No. 2; It says to chuck everything into the root dir of my server, which is fine, I can do that, BUT, the codeigniter files that I upload also has an index.php page.
And my website files are also located in the root folder. If I upload all the codeigniter files to my root dir, and replace the default index.php file that codeigniter tells me to upload with my own websites index.php file? Is that what you’re supposed to do?
Thanks 🙂
If you are using your current website, you may not want to replace the index.php until your new website is ready to go live. If you are trying to tie the two together, I recommend fully porting your current website in to CodeIgniter if at all possible.
Otherwise, I recommend installing CodeIgniter in a folder under the root directory and modifying its config file to point to it.