Using Virtual Directories in IIS for Albums folder Using Virtual Directories in IIS for Albums folder
 

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

Using Virtual Directories in IIS for Albums folder

Started by pponting, April 04, 2006, 03:50:56 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pponting

Is it possible to use a virtual directory for the Album folder with Coppermine?
My IIS installation in on my C: drive which only has a few Gb free. I want the Albums folder to be on my D: drive as it has 300Gb unused.

I copied the original Album folder to my D: drive and then renamed the original to oldAlbums.
I then created a virtual directory in my IIS called album pointing at the d:\albums folder.
I added the necessary rights to the D:\album folder

When I upload files now, I get the error:
Destination directory albums/userpics/ is not writable by the script !

Is this possible? Security is not an issue as this is an internal home use only webserver.

tetsujin

Well, it seems to be finding it...Are you sure the permissions you placed are recursive into that next directory?

Cameron


pponting

Yes, I have done all that. I have even gone so far as to give EVERYONE full controll the the album directory and sub directories to test it. (It is internat so doesn't really matter from a security point of view)

I assume that what I am doing is possible and is just going to be a configuration/permission problem?

pponting

With Debug switched on, I get

Critical error
Destination directory albums/userpics/ is not writable by the script !
File: c:\Inetpub\wwwroot\tpf\db_input.php - Line: 320


If I enable directory listing on the new folder I can view it and the contents so I guess the virtual directory redirection is working fine. I have checked and double checked the permissions and (unless I am doing someting stupid) this is fine as well.

Is it worth me posting a debug?

pponting

OK, I decided to reinstall and try again. Still not working but a little better.

I now get the error

Failed to create directory albums/userpics/10001 !

File: c:\Inetpub\wwwroot\tpf\db_input.php - Line: 307


When uploading the files. The files DO upload to the userpics directory but it looks like it can't create a folder. I tried creating the folder manually and setting permissions to it but it still tries to create the folder and still fails.


Joachim Müller

make sure that the permission settings you apply on the album folder actually propagate to the sub-folders

pponting

I have checked this and the permissions do propogate through the directory structure.

Joachim Müller

it's hard to advice anything without being able to see your entire server setup. Leaving the webroot in the default location is not recommended, especially if you're running low on webspace. Is moving the entire webroot to the other partition that has enough space left an option for you?

Antax

I am in the same situation. I tried installing Coppermine into a d:\wwwroot dir and I get a "The page cannot be found". If I move everything back to c:\inetpub\wwwroot it works.

Joachim Müller

well, set up your webserver properly then. Self-hosting is not recommended, especially for newbies.

Antax

I wouldn't consider myself a newbie. I have setup many web servers of all different types in many different OSs. I've checked everything I can think of. I have checked all the security settings Appication settings etc. I'm sure its somethings that I'm not thinking of. Maybe something with the PHP settings?

And I appreciate help not judgement. If you can't offer any helpfull comments then stfu.

pponting

I took your advice and moved my wwwroot to the D:\. Everything worked fine including permissions. I will search the forum for the following answer, but just in case it is related I will mention it here.

When I upload the images (which now go to the new wwwroot) the images upload fine, the intermediate images and thoumbnails are created fine but no images display when viewing the gallery.

As I say, I will search the forum for the answer, otherwise my problem with Virtual Directories is resolved (in a roundabout way)

Cheers