broken image, but image exists in albums folder

phatcher
phatcher's picture

Joined: 2002-11-23
Posts: 4
Posted: Sat, 2002-11-23 05:12

RH 8.0
PHP 4.2.2

I was able to succesfully upload data to my albums folder (/home/albums). However, when trying to view the images, all I get are broken images. I've ftp to this folder and can see the images listed, and I've downloaded the images to my Win machine and they appear fine.
Does the albums directory have to be in the /var/www/html/gallery/ directory?
Any ideas?
TIA
Patrick

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3473
Posted: Sat, 2002-11-23 23:09

Nope... the albums directory can be anywhere, *provided* it's somewhere within your webspace (Apache can't open files outside of the webspace).

Usually people have this problem because they've mistyped the "Albums URL" in Step 2 of the Configuration wizard... make sure your "http://" URL jives with the path you've specified.

-Beckett (beck@beckettmw.com)

 
cosmicdynamo

Joined: 2002-11-14
Posts: 17
Posted: Sun, 2002-11-24 04:00

I had this problem, make sure you give netpbm executable permissions on your server. Without it, netpbm won't be able to construct anything. Anyone know what the perms should be? I have mine at 777.

Pierre

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3473
Posted: Sun, 2002-11-24 14:33

777 is not secure, because anyone on your server could modify the files. For binaries like NetPBM, use 755.

 
debuke

Joined: 2002-11-25
Posts: 5
Posted: Tue, 2002-11-26 04:24

i'm on win2k, apache 2.0.43, gallery 1.3.1, php 4.3.0. I sit right next to the web server.

i have sort of the same problem: but i can see a couple of the thumbnails, just no sized or full images...

the /albums and /gallery reside under the document root. i haven't modified any of the directory settings (<Directory...>) since it falls under the root. i can see all of the gallery images (jpg's) when uploading and when in the gallery.

all seems to work well, i just can't see most of my images that i've uploaded, but they are in the folder???

is there something else I'm missing?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7985
Posted: Wed, 2002-11-27 04:31
Quote:
i'm on win2k, apache 2.0.43, gallery 1.3.1, php 4.3.0. I sit right next to the web server.

i have sort of the same problem: but i can see a couple of the thumbnails, just no sized or full images...

the /albums and /gallery reside under the document root. i haven't modified any of the directory settings (<Directory...>) since it falls under the root. i can see all of the gallery images (jpg's) when uploading and when in the gallery.

all seems to work well, i just can't see most of my images that i've uploaded, but they are in the folder???

is there something else I'm missing?

Hard to tell. Post your Gallery URL and we'll take a look.

 
debuke

Joined: 2002-11-25
Posts: 5
Posted: Wed, 2002-11-27 04:35
 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3473
Posted: Wed, 2002-11-27 04:51

Yuck! :eek:

Can you:
a) turn on debug mode (in Config. Wizard step 2)?
b) create a user for us so we can try uploading ourselves?

This is either a browser issue or your NetPBM binaries are hosed. I'm guessing it's a browser issue, but it would be nice to be sure. In the mean time, can you try from another computer?

-Beckett (beck@beckettmw.com)

 
debuke

Joined: 2002-11-25
Posts: 5
Posted: Wed, 2002-11-27 05:16

a) it's in debug mode

b) beckett - beckettmw

thx for the help...

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3473
Posted: Wed, 2002-11-27 05:25

Hmm okay. So it's either your NetPBM programs or it's Apache2.

1. Try reinstalling the NetPBM binaries. Also fix the double backslash "\" in your paths:
In the Config Wizard "\"... make sure your paths don't have a trailing slash.
(if anything, it looks nicer :smile: ).

2. If you're still having problems, then it's, sad to say, either Apache2, PHP 4.3.0, or the combination of the two. Downgrading to 1.3.x and 4.2.3 would then be advised (though not what you want to hear!).

 
debuke

Joined: 2002-11-25
Posts: 5
Posted: Wed, 2002-11-27 05:27

i appreciate your assistance: i'll redo the NetPBM program and check the slashes... if there is no luck: i'll downgrade... :cry:

thx again!

 
debuke

Joined: 2002-11-25
Posts: 5
Posted: Wed, 2002-11-27 07:28

did and done! i downgraded and everything went as smooth as the testimonials i've been reading about...

note to anyone who tries to use my config: GOOD LUCK!

and a shout-out goes to mr. beckett... thx for the tip and saving me some aggravation &amp; from wasting my time! :razz: