Migration from version 1.7.2 to latest version |
Hi, I'm planning to migrate to a new hosting platform and have realised that my web application was developed originally using version 1.7.2 and CodeIgniter was never updated. I've installed the latest version on my new trial server bu I am unsure as to how to make my application 'fit' with this new version. I didn't do the original setup, so to be honest, I'm not sure what I'm doing! Up to ths, I've been editing the database.php, config.php and .htacess files to make new instances of my application work, but reading through the help and installation instructions, this might be different.
Can any one help please? Thanks Kieran
Make a backup of your existing application files and database before making any changes. This will ensure that you can revert back to the old version if anything goes wrong during the upgrade process.
Download the latest version of CodeIgniter from the official website and extract the files to your local machine. Compare the directory structure of the new CodeIgniter installation with your existing application. You should have a clear understanding of where your application files are located in the old version and where they need to be in the new version. For example, the 'system' folder in the new version should replace the 'system' folder in the old version. Copy your application files, such as controllers, models, views, and any other custom files, to the appropriate directories in the new CodeIgniter installation. Modify your configuration files to match the settings from your old application. These include database.php, config.php, and any other configuration files that you have customized for your application. Test your application thoroughly to ensure that everything is working as expected. If you encounter any issues, refer to the CodeIgniter documentation and community forums for assistance. Once you are satisfied that your application is working correctly, you can deploy it to your new hosting platform. It's worth noting that CodeIgniter 4, the latest version of the framework, is not backwards compatible with CodeIgniter 1.7.2, which means that you may need to make some changes to your code to get it to work with the new version.
Thank you for that reply, its greatly appreciated.
Thankfully I'm migrating to a new environment too - Oracle Cloud, so I can do a clean install of CI there. I plan to have a DEV environment, staging environment and multiple PROD environments, one for each client. Do I just install CI once and if so, is there anywhere in particular it should be located? Thanks Kieran
Upgrade from 1.7.2 to 3.1.13.
http://www.codeigniter.com/userguide3/in...ading.html Then you can use https://github.com/kenjis/ci3-to-4-upgrade-helper
Hi, thanks for that. In the upgrade from 1.7.2 to 2.0.0, it says
Replace all files and directories in your “system” folder except your application folder. Replace them with what exactly? I have a latest install version of CodeIgniter ... do I have to migrate version by version? Thanks Kieran
Replace your “system” folder with the "system" folder in 2.0.0.
> do I have to migrate version by version? Yes, or it is good to check your app works in the next version. However, since basically replacing the "system" folder is the same up to 3.1.13, you could skip some instead of checking all versions one by one. In any case, all other instructions must be performed surely for all versions.
Hello, I appreciate it. Between versions 1.7.2 and 2.0.0, the following is stated:
All system files and directories, with the exception of the applications folder, should be replaced. Put in their place of what, exactly? Do I have to migrate CodeIgniter versions one by one, even though I'm using the most recent release available? Thanks Kieran |
Welcome Guest, Not a member yet? Register Sign In |