Deleting Old UpGrade Directory Questions

Permalink
Hi Everyone...
...I hope this post finds you well.

I started with Concrete version 5.7.5.8. Siince then I have manuallly upgraded all the way to the current version 8.2.1. Consequently, my UPDATES directory looks like this:

public_html\
\application
\concrete
\packages
\tmp
\updates
\concrete5-8.1.0
\concrete5-8.2.0
\concrete5-8.2.1
\concrete5.7.5.13_remote_updater

QUESTION #1: How much of this can I safely delete because it's out dated and non-functional?

QUESTION #2: Are there any OTHER files that I should check\modify to be certain that everything points to the correct\current Concrete directory?

QUESTION #3: Is there a way to get my site to stop working out of the UPDATES directory and start working out of the official CONCRETE directory?

I am a database novice and the thought of breaking my website terrifies me! There would be no way I would be able to fix it if anything were to go sideways. However, all the leftover UpGrade "Clutter" and "ReDirection" can not be a good thing.

I'd really appreciate any advice the group can provide on this.

Thanks for taking the time to read my post and I hope all have some happy holidays.

Cordially,
Michael C.

mcorbett
 
mnakalay replied on at Permalink Best Answer Reply
mnakalay
Hello,

First I have to say I do not understand the directory structure you presented.

Normally you would have public_html, then inside public_html you would have application, concrete, packages, and updates. Then inside updates, you would have the other directories concrete5-8.1.0, concrete5-8.2.0...

I'm going to assume that what you have and I'm misreading what you presented.

So to answer your questions:

Question #1
You can delete all of them except the last one (which is in use). But maybe wait until you read my answer to your other questions.

Question #2
If you look in the directory application/config you will find a file update.php

If you open that file you will see something like this
<?php
return [
    'core' => 'concrete5-8.2.1',
];

concrete5-8.2.1 is the directory which is in use in the updates folder so before you delete anything, make sure you are not deleting the directory referenced in update.php

Question #3
You can totally get rid of what is in the update folder if you do the following:
1- delete the root concrete directory (the one that lives alongside 'application' and 'packages'. Don't worry, since update.php is referencing the concrete core in the updates directory, deleting the root one won't harm your site.
2- copy the 'concrete' directory inside your updates directory to the root.
So in your case copy
public_html\updates\concrete5-8.2.1\concrete to public_html\concrete
Make sure you are copying, not cutting so, in the end, you have both concrete folder, the one at the root and the one still in the updates directory.
3- once your copy is in place, delete the code in the file update.php

If you delete that code, your site will start using the concrete directory at the root. If you put it back, it will start using the one in the updates directory.

Once you're satisfied that everything is working correctly, you can delete everything inside the updates directory

Hope this helps. Don't hesitate to ask again if something is not clear.

Oh and one last thing. As long as you don't touch the database and don't touch any of the other directories (packages for instance), even if things go wrong, your site won't be lost. It will just be a matter of putting the concrete directory back in place so don't worry too much.
mcorbett replied on at Permalink Reply
mcorbett
THANK YOU !!! THANK YOU !!! THANK YOU !!! THANK YOU !!! THANK YOU !!! THANK YOU !!! THANK YOU !!! THANK YOU !!! THANK YOU !!! THANK YOU !!!

YES... it worked! ... I ReNamed the directories in the "updates" directory so I can keep the origional files "just in cse"... However, so far everything is working like it should.

OH.. by-the-by... um ... when I was typing in my origional post... I put spaces to show
what was a directory... then below... some more spaces to show the sub-directories.
However, when I posted my message to the group... all my spaces were deleted and
all the direcories and sub directories got pushed to the left hand side of the message.

That's why my showing the directory tree didn't make any sense. And made me look like a dumb-dumb. AArrggg!

... [ giggle ]... I may not know much about Concrete 5 ... but I DO know how to type in a directory tree in a message. It's just all my spaces got omitted when the message posted to the group.

I'll keep that in mind should I have need to post again.

Never-the-less... my site is woking out of the main Concrete directory and thank you for the time you all spent telling me how to do it .

Oh... and did I mention:
THANK YOU !!! THANK YOU !!! THANK YOU !!! THANK YOU !!! THANK YOU !!! THANK YOU !!! THANK YOU !!! THANK YOU !!! THANK YOU !!! THANK YOU !!!

Cordially,
Michael C.
mnakalay replied on at Permalink Reply
mnakalay
Good to hear :)

And I was pretty sure that folder listing problem had an explanation. It's true that in HTML spaces are always eliminated and only one is ever kept.

So here's a little trick: it's called non-breakable space and you write them like this: &nbsp; and you can have as many as needed
tallacman replied on at Permalink Reply
tallacman
I wear suspenders and a belt.
If I were you just move the folders you have a question about to another folder, one you create. Call it trash. then see if your site still works correctly. If not it will be easy to restore order.