Uploading pictures Uploading pictures
 

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

Uploading pictures

Started by Andy_Delbaere, August 22, 2007, 07:53:31 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Andy_Delbaere

Hello
i couldn't upload pictures to my gallery on http://gallery.svekaschoten.be
I managed to integrate the gallery with my forum so don't be suprised if you go to the forum
it's work in progress
user : test
pwd: testtest

first i got critical error so i changed the chmod to 755 since it was on 777
then i got a new error saying i can't create a folder albums/userpics/10007
i checked it out and the folder was already there with chmod 755
so i changed the owner to webserver instead of me since i read it on the forum
but it still doesn't work :s
Could someone help me?
I probably looked over something

Thanks

Andy

Hein Traag

http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble

Follow the steps mentioned in that part of the documentation and provide the info needed.

Andy_Delbaere

# Enable debug mode for everyone  Done
# Leave display of notices switched off Done
# Save the new settings by clicking on "Save new configuration" Done
# Go to the "groups" panel
# Set the upload form configuration for all groups to "Single file uploads only" (set File upload boxes to "1", URI upload boxes to "0" and No. of boxes to "fixed") Done

I tried uploading it then i got an error i searched the board and i found one and solved it (777 to 755) then i got another message but i didn't found a useful answer :s

Hein Traag

Quote from: Andy_Delbaere on August 23, 2007, 12:37:15 AM
then i got another message but i didn't found a useful answer :s

Sorry i left my mind reading hat at home ;). What does the message say ?

Joachim Müller

Error message is
QuoteFailed to create directory albums/userpics/10007 !
which means that the user the webserver runs under doesn't have permissions to create a sub-folder. This is related to permissions, so make sure that your efforts to change permissions actually stick. You will maybe have to ask your webhost for support if doing as suggested in the permissions section of the docs doesn't help.

Andy_Delbaere

I tried to change that
I have 2 options: I can change the owner to You (he means me ;)  ) or Webserver.
I put everything under  userpics to Webserver.
Do you think i should put the whole albums/ folder under Webserver??
Or not all the folders and files?

Joachim Müller

#6
The albums folder and everything within it should be owned by the webserver.

Andy_Delbaere

mm
what should i change then?
the chmod?
in albums/ and all subfolders and items?

Joachim Müller

Ownership changes are being performed using the CHOWN command on Lunix-driven systems. Usually, when webhosted, you can't do this on your own - your webhost will have to apply this for you.

Andy_Delbaere

Quote from: GauGau on August 23, 2007, 08:08:25 AM
Ownership changes are being performed using the CHOWN command on Lunix-driven systems. Usually, when webhosted, you can't do this on your own - your webhost will have to apply this for you.

It seems i can change this

Change dir owner (chown):

  Dirname: /gallery/albums/userpics
  Current owner: You
  New setting:  You or Webserver   Recursive  or not

This is an example
Can you tell me what folders need to change and to what owner??
I can only change owner to You or Webserver
If it should be something else let me know which one so i can tell it to my webhost.
Thanks

Joachim Müller

#10
Quote from: GauGau on August 23, 2007, 07:38:03 AM
The albums folder and everything within it should be owned by the webserver.

Andy_Delbaere

Ok i changed everything in the albums folder to me being the owner.
but i still can't upload :s
i get an error: Destination folder can't be written by the script

Joachim Müller

You got two choices: make the folder be owned by you or the webserver. I adviced you to make it owned by the webserver. You set it to be owned by you. Then you complain that things don't work as expected. Don't you think that you made a mistake? Is this a language issue? Don't you understand what I'm saying?  ::)

If you don't understand how to accomplish this, do as I suggested above: ask your webhost for support.
The albums folder and everything within it needs to be owned by the user the webserver runs under. The user the webserver runs under needs rxw permissions for all files and folders within the albums folder. Tell your webhost exactly what I just posted, or make them read this thread. I'm out of this thread.

Andy_Delbaere

#13
Quote from: GauGau on August 24, 2007, 08:16:21 AM
You got two choices: make the folder be owned by you or the webserver. I adviced you to make it owned by the webserver. You set it to be owned by you. Then you complain that things don't work as expected. Don't you think that you made a mistake? Is this a language issue? Don't you understand what I'm saying?  ::)

Perhaps i misunderstood you but 2 posts up you quoted yourself
QuoteQuote from: GauGau on Yesterday at 07:38:03 AM
The albums folder and everything within it shouldn't be owned by the webserver.

Maybe it's just me but i understand from that sentence that the albums folder is NOT owned by the webserver and that leaves me with only one option YOU
Yes maybe this is a language issue english isn't my motherlanguage so if i misunderstood you please let me know in a proper way.


Quote from: GauGau on August 24, 2007, 08:16:21 AMIf you don't understand how to accomplish this, do as I suggested above: ask your webhost for support.
The albums folder and everything within it needs to be owned by the user the webserver runs under. The user the webserver runs under needs rxw permissions for all files and folders within the albums folder. Tell your webhost exactly what I just posted, or make them read this thread. I'm out of this thread.

I know how to set the owner and how to set permissions
this is how it's being showed by my webhost
Folder          Owner   Permissions
albums      You   755 (drwxr-xr-x)

Anyone else who wants to help since it looks like he left??


Hein Traag

Album should be set to 777. If you installed your cpg yourself then you would have gotten a message during installation asking you to set certain folders to 777.
Did you install your cpg yourself or did your webhost do that for you ?

Andy_Delbaere

My webhost provides certain autoinstallers and one of them was Coppermine
I picked coppermine because i liked the reviews and the gallery itself and the integration with phpbb
hopefully i get this working :)
i'm still trying ;)

Hein Traag

Auto installers usually are crappy at best. Which auto installer do they use ?

My advice to you is get rid of your current cpg. Download the latest stable version (1.4.12) and install it yourself. That way you have it all under control and you learn how to install and maintain cpg yourself instead of relying on a auto installer which basicly keeps you in the dark.

Andy_Delbaere

I might do that if i don't get it up and working soon
i don't know which auto installer they use
my webhost is www.servage.net but i don't see much info about the scripts :s

Hein Traag

http://www.servage.net/page/autoinstaller/ Not sure which auto installer they use but i suggest you do it manually anyway. That way your cpg is not influenced by any settings in that auto installer which might corrupt your cpg.

Joachim Müller

Quote from: Andy_Delbaere on August 24, 2007, 09:49:21 AM
Perhaps i misunderstood you but 2 posts up you quoted yourself
I'm really sorry - this has been wrong. Of course, the sentence should have said
QuoteThe albums folder and everything within it should be owned by the webserver.
Please accept my apologies for posting wrong information and doing so twice. I corrected by above postings (for reference in search engine). Your above quote contains my original posting, which is wrong. I'm a bonehead, sorry again.