CodeIgniter Forums
Upgrading CI to last version - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: Upgrading CI to last version (/showthread.php?tid=70824)



Upgrading CI to last version - Suhaib - 06-04-2018

Hello everyone hopes you fine

I have a website using CI 3.1.5 and I need to upgrade to the last version is there more detailed to how can I do it? 

I'm an SYS admin, not a developer and the developer that make the website left the team


RE: Upgrading CI to last version - Krycek - 06-04-2018

You could use the following : https://www.codeigniter.com/userguide3/installation/upgrading.html
So update 3.1.5 to 3.1.6 and then 3.1.6 to 3.1.7 (this is the official way).

However I think you could just update from 3.1.5 to 3.1.8 by replacing the system folder with the new one


RE: Upgrading CI to last version - InsiteFX - 06-04-2018

No because some of the updates make changes to the ./application folder.


RE: Upgrading CI to last version - Suhaib - 06-04-2018

(06-04-2018, 03:42 AM)InsiteFX Wrote: No because some of the updates make changes to the ./application folder.

what you mean by "no"? I shouldn't make the upgrade or what?


RE: Upgrading CI to last version - dave friend - 06-04-2018

(06-04-2018, 03:42 AM)InsiteFX Wrote: No because some of the updates make changes to the ./application folder and perhaps to index.php.

I believe there is only one change in the ./application/ folder associated with moving to 3.02

Otherwise, simply replacing ./system with the most recent version will work just fine. BUT, it would be wise to walk through each of the Upgrading From a Previous Version docs and make sure to take care of the very few items that require additional actions. All that said, some of the items should be checked by a developer.


RE: Upgrading CI to last version - InsiteFX - 06-05-2018

No not to just replace the system you also need to replace the index.php file etc;

You can watch the ./application folder for changes, I don't take chances so I
replace the whole framework I have a snippet app that I keep all my framework settings in.


RE: Upgrading CI to last version - dave friend - 06-05-2018

(06-05-2018, 02:58 AM)InsiteFX Wrote: No not to just replace the system you also need to replace the index.php file etc;

You can watch the ./application folder for changes, I don't take chances so I
replace the whole framework I have a snippet app that I keep all my framework settings in.

Good grief man, the OP is only going from 3.1.5 to 3.1.7 !

The only reference in the instructions to index.php is the suggestion of temporarily putting a "site closed" static file in place while the upgrade happens. There is no reason to replace the CI index file.

There is no reason for stomp all over the application folder. The two "Upgrading from..." pages have only two steps the first step in each being

Quote:Replace all files and directories in your system/ directory.

There is nothing to indicate any files in or subordinate to /application need to be replaced. To my thinking, the chances something will go wrong are greater if you start messing with the /application files & folders. Remember, the OP is not a developer and has no idea what should or should not be in and under /application.


RE: Upgrading CI to last version - DavidMichael - 06-14-2018

upgardig Ci to last version to the 3.1.9 is the latest version of ci, you can upgrade your last version with that version.


RE: Upgrading CI to last version - alamowais - 06-21-2018

Replace all files and directories in your system/ directory.
If you have any custom developed files in these directories, please make copies of them first.
This config file has received some updates. Please copy it to application/config/mimes.php.