Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Moved site to new server, some pics don't show up  (Read 3025 times)

0 Members and 1 Guest are viewing this topic.

smaggard85

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Moved site to new server, some pics don't show up
« on: December 29, 2006, 05:14:30 am »

Hi. This happened when the site was 1.3 and also does the exact same thing after an upgrade to 1.4.10.

The domain and URL of the gallery stayed the same, I just took the cpg folder and the sql database and put it on a new server. Everything works fine as far as users logging in and uploading, but I have a lot of pictures that are on the server and in the albums folder still, but they don't show up in the gallery like the link is broken or something. Uploading new pictures works flawlessly, but its a problem with some of the pics that were uploaded before the move.

http://shawnmaggard.com/cpg/ Apache2, PHP5, GD2, CPG 1.4  version checks show everything is ok except for anycontent.php which the instructions told me to keep anyway. I am thinking this is possibly some sort of permissions problem?? Visit the link and you will immediately understand what the problem is, pics don't show up. O and I also had to change the config.inc.php to get the correct mysql password since it's different on the new server.

TIA!!

Shawn
Logged

b4uphotos

  • Translator
  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 59
    • B4U India
Re: Moved site to new server, some pics don't show up
« Reply #1 on: December 29, 2006, 06:00:08 am »

Oh Buddy!

Whatever i came to know via visiting ur website is this that probably you during the upgradation task you have replaced your album folder also with the new version of coppermine empty folder of "albums" check and make it pelase sure that in ur /public_html/cpg/albums/ you have all files of your images.

You made it as i think you have not read all the terms of upgradation from here: http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#13

If i am right kindly restore ur old backup before upgradation and then re upgrade with new version with reading all the instruction of upgradation!
Logged

b4uphotos

  • Translator
  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 59
    • B4U India
Re: Moved site to new server, some pics don't show up
« Reply #2 on: December 29, 2006, 06:00:47 am »

or if u moved your server u have not moved your albums directory
Logged

smaggard85

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Moved site to new server, some pics don't show up
« Reply #3 on: December 29, 2006, 06:42:16 am »

Well, the albums folder contains the edit, Imported, Pets, and userpics folders. Inside the userpics folder is a LOT of pics. I have made sure to not replace the albums folder with the blank folder. I followed the upgrade instructions perfectly, and also it did exactly the same as before the upgrade. I thought maybe upgrading would fix the problem but it didn't help any. Thanks for the tips!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Moved site to new server, some pics don't show up
« Reply #4 on: December 29, 2006, 08:04:32 am »

Well, the pics are not where coppermine expects them - you get 404 not found errors when trying to access the pics. Examples: http://shawnmaggard.com/cpg/albums/userpics/mini-IMG_0607.jpg, http://shawnmaggard.com/cpg/albums/userpics/mini-IMG_0615.jpg, http://shawnmaggard.com/cpg/albums/userpics/mini-DSC03410.JPG
Check your server's hard-drive structure: are the pics actually there? Did you CHMOD (and maybe CHOWN) them as needed when moving?
Logged

smaggard85

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Moved site to new server, some pics don't show up
« Reply #5 on: December 29, 2006, 07:16:41 pm »

Hmm, could this have anything to do with the actual placement of the cpg folder on the HD going from something like /usr/local/apache/htdocs/cpg to /var/www/cpg/ ? I have made the entire albums folder owned by www-data (chown www-data.www-data), and chmod to 777.

It seems like when I copied the entire CPG folder via FTP (i was also on the local network) a lot of pics didn't get included.  I will check into this and get back with you. Thanks so much for your help!  ;D
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 16 queries.