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: Using Virtual Directories in IIS for Albums folder  (Read 6279 times)

0 Members and 1 Guest are viewing this topic.

pponting

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
Using Virtual Directories in IIS for Albums folder
« on: April 04, 2006, 03:50:56 am »

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:
Code: [Select]
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.
Logged

tetsujin

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Using Virtual Directories in IIS for Albums folder
« Reply #1 on: April 04, 2006, 04:10:20 am »

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

Cameron
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged

pponting

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
Re: Using Virtual Directories in IIS for Albums folder
« Reply #3 on: April 04, 2006, 11:42:35 am »

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?
Logged

pponting

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
Re: Using Virtual Directories in IIS for Albums folder
« Reply #4 on: April 04, 2006, 01:36:08 pm »

With Debug switched on, I get
Code: [Select]
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?
Logged

pponting

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
Re: Using Virtual Directories in IIS for Albums folder
« Reply #5 on: April 04, 2006, 04:21:20 pm »

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

I now get the error

Code: [Select]
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.

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Using Virtual Directories in IIS for Albums folder
« Reply #6 on: April 04, 2006, 04:42:20 pm »

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

pponting

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
Re: Using Virtual Directories in IIS for Albums folder
« Reply #7 on: April 04, 2006, 08:17:25 pm »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Using Virtual Directories in IIS for Albums folder
« Reply #8 on: April 05, 2006, 07:39:22 am »

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?
Logged

Antax

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Using Virtual Directories in IIS for Albums folder
« Reply #9 on: April 05, 2006, 05:45:18 pm »

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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Using Virtual Directories in IIS for Albums folder
« Reply #10 on: April 05, 2006, 05:59:50 pm »

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

Antax

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Using Virtual Directories in IIS for Albums folder
« Reply #11 on: April 05, 2006, 06:20:32 pm »

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.
Logged

pponting

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
Re: Using Virtual Directories in IIS for Albums folder
« Reply #12 on: April 05, 2006, 06:25:33 pm »

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
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.