Upgrade from 1.4.2 to 1.4.8 Upgrade from 1.4.2 to 1.4.8
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Upgrade from 1.4.2 to 1.4.8

Started by divascuba, August 03, 2006, 03:21:57 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

divascuba

My Coppermine was originally installed through Fantastico.  It was version 1.4.2.  Unfortunately, that version has been compromoised by a worm and I must get the latest version on my site.  I am pretty confused about two things:

1.  Should I be performing and INSTALL or and UPGRADE or BOTH?

2.  My current path is www.mysite.com/photo_gallery, where am I suppose to put this zip file and extract it to?
This is a Unix server and it extracts the files into cpg148/... 

I have looked and read thoroughly, http://coppermine-gallery.net/demo/cpg14x/docs/index.htm, and these questions are still unanswered.

Any help will greatly appreciated.

Tranz

Just upgrade. Make sure to clear out all bad files that might have been left behind.

divascuba

I tried doing an upgrade but I still have the old version.  Again, I believe it has to do with the differing directory structures for 1.4.2 verses 1.4.8. (See original post)

So does this mean that I MUST somehow overwrite files in the current ./photo_gallery directories with the ones from the ./cpg148?  I don't have direct access to the Unix shell and the zip file only unpacks them in cpg148/* So any recommendations on how to get the files into the correct place to run the upgrade?

Also, do I need to start with a new DB or can I use the existing one?

Barbara

Sami

QuoteSo does this mean that I MUST somehow overwrite files in the current ./photo_gallery directories with the ones from the ./cpg148?
Yes , but as upgrade doc said you shouldn't overwrite on album folder and include/config.inc.php & anycontent.php files

QuoteSo any recommendations on how to get the files into the correct place to run the upgrade?
Use a ftp client instead of shell and first unpack the 1.4.8 on your local computer and copy them with ftp client to youe web server

QuoteAlso, do I need to start with a new DB or can I use the existing one?
It's better if you have a backup of your database (in case of earthquake ) :)
But you don't need to create new DB
‍I don't answer to PM with support question
Please post your issue to related board

Joachim Müller

Only use the shell if you actually know what you're doing. You could ruin a lot easily if you perform silly actions using the shell. That's why graphical user interfaces have been created in the first place: they are easier and saver for newbies. Leave the shell to the experts.

divascuba

bmossavari & GauGau:

Okay thanks.  Yes I have the knowledge and experience to do it correctly from a shell.  Which is even more exasperating since the cPanel doesn't give me the control I need.  I did originally try FTP-ing, but didn't want to overlay the original directory (it is all backed up now), but it kept failing and terminating and I never knew for sure if all of the files got there.

But the main question I needed answered is "upgrade" only, so now I just have to find a technical way around getting all of the files up there in the correct format and location.

BTW, I am new to this whole mysite.com building and administering (came from a client-server unix world).  Can you please clarify "anycontent.php" files?  Do you mean these would be files that I created?  Where might they be located?  I don't have any "find" ability so...

While I'm at it, can I ask why 777?  I got hit with a worm and I tell you I don't like 777?  775 is bad enough.  :-)


Barbara

Again, thanks.

Nibbler

If you didn't manually modify anycontent.php yourself then you don't need to worry about it.

Joachim Müller

Quote from: divascuba on August 03, 2006, 06:27:48 PM
While I'm at it, can I ask why 777?  I got hit with a worm and I tell you I don't like 777?  775 is bad enough.  :-)
You're free to CHMOD to whatever permission level works for you. The user the webserver runs under needs write permissions, that's all. This will be easy to understand for you if you come from a Unix background: the script needs to store the files that get uploaded somewhere, so it needs write access. On webservers that are properly set up (especially on shared webhsoting, where you have to shield the individual customer's webspace against the other, the words "properly set up" is crucial). On 99.9 percent of all webhosts, 755 or 777 are the only settings that will actually work. To save users from explaining in detail how permissions work on Lunix machines, we refer to the docs. If they want easy answers, we tell them to try using 777. However, if you have read the permission section of our docs thoroughly, it should become clear what you need to apply. I recommend reading the great thread posted by [Unknown] over on the SMF forum some time ago titled "Why chmod 777 is NOT a security risk".

This being said, and especially as you claim to come from a Unix background and have shell experience, you should know what we expect from users to do: read the manual first, then read the FAQ, then search the board. If all of this fails, post your question (observing board rules). Being a newbie never has been a good excuse.

fremitus

So the initial question here.

I as well am desiring to go from 1.4.2 to 1.4.8.

I have backed up the MySQL database and have even backed up my theme and plugin's directly via ftp.

I as well use fantastico and would very much like to use it's simple 'UPGRADE' feature, but am wary of it from other php installs.

Should I fear? Should I press go and cross fingers and hope that it flies? I am not terrifically confident in my ability to get back to where I am now if something goes wrong.

Thanks!

Colby

divascuba

Coby,

I have backed up my photo_gallery folder and renamed it to cpg148;
I have also made a seperate backup of the photo_gallery/albums and photo_gallery/include/config.inc.php & photo_gallery/anycontent.php files;
I then placed the cpg1.4.8.zip in the directory above cpg148 (aka photo_gallery)

I am extracting the zip file into cpg148. When the extraction is complete, I will continue with the instructions in the updrade doc to perform the permissions changes and run the update.  I will finally restore the files and directories I made seperate backups of.

If all goes well I will have mine upgraded soon.  When I have successfully completed it, I will complete the posting here.

fremitus

well.

i went for it. i did NOT use fantastico out of fear. i was confident that i had backed up what i needed and did the upgrade over ftp, kindof slow, but it worked perfectly well. just follow the docs and tak your time. thanks to anyone who read this with any concern.

cheers.

colby

Joachim Müller

Quote from: fremitus on August 03, 2006, 11:13:18 PM
i went for it. i did NOT use fantastico out of fear.
Your fear was justified. Fantastico sucks. Their upgrade prcoess breaks galleries. Their upgrade doesn't actually upgrade your gallery to the most recent version, but some outdated coppermine version that contains bugs. Additionally, their upgrading process even introduces bugs that haven't existed in coppermine ever. This board is full of recommendations from the dev team not to use fantastico. In our opinion, fantastico sucks.
Doing a manual upgrade exactly as we suggest in our docs is the only genuine method to upgrade. Period.