coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: ganjauk on February 05, 2004, 04:04:22 PM

Title: Coppermine uploading photos as "apache" causing ma
Post by: ganjauk on February 05, 2004, 04:04:22 PM
Coppermine is uploading photos with the username "apache" because of this, my webshell is becoming full of pics that i cannot remove. How can i change it so it uploads with my own username, i can only edit/delete files in my webshell under my own username.


(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fserver5.uploadit.org%2Ffiles%2Fganjauk-cantdelete.jpg&hash=181bf6999c6e69aa04bdecd258ba354e62bbada0)

Coppermine itself fails to delete these pics too.
Title: Coppermine uploading photos as "apache" causing ma
Post by: s0ber on February 05, 2004, 07:29:15 PM
I think you need to contact your administrator about that...
On my old webhosting it would upload files as apache as well but I was able to delete/change them just like any other file under my username/group...

I dont _think_ its a coppermine issue itself. Doubt it anyways.

-s0b
Title: Coppermine uploading photos as "apache" causing ma
Post by: ganjauk on February 05, 2004, 08:57:30 PM
I have been on to my host all day, but the fact is i cant delete files uploaded under the name apache, so is there some way i can change how coppermine uploads these pics.

Any ideas would be great, thanks.
Title: Coppermine uploading photos as "apache" causing ma
Post by: moorey on February 06, 2004, 04:40:05 AM
Did you get your host to installer Coppermine for you? It's probably installed under the username 'apache'. You could request your host to have your username in the same usergroup as apache/gd/im. Otherwise, try changing the file permissions to 777.

You'd have to work this out with your host.
Title: Coppermine uploading photos as "apache" causing ma
Post by: ganjauk on February 06, 2004, 04:46:49 AM
No, i installed it myself.
Every folder than coppermine creates for users pics, ie:10002 etc, becomes totally permanant.

My host tells me:
Quotescripts themselves should be able to delete files -
take a look at the php unlink() function.

This mean nothing to me, i dont code these things, i just install them.  :roll:

Is there any way i can resolve this from within coppermine itself? Even when folders was chmod 777 they still dont delete as they are under the wrong username.
Title: Coppermine uploading photos as "apache" causing ma
Post by: moorey on February 06, 2004, 04:54:40 AM
Ok first things first.. what method are you uploading your photos and where to?

If you're using FTP, the photos are suppose to go to
Quote/cpg/albums/albumnames/
*Not*
Quote/cgp/albums/userpics/blah/

For deleting, you shouldn't really be using FTP anyway - you should be instructing CPG itself to do the deleting. That is the cleancut way.

Then check on the permissions.. 644 doesn't look right but then again, do check on the above first.
Title: Coppermine uploading photos as "apache" causing ma
Post by: ganjauk on February 06, 2004, 05:04:40 AM
Batch upload works fine and i upload to the folders you listed, its when users upload their own it creates its own folders like you listed above and thats the chmod of them, the only files/folders i cannot delete with ftp are the files users upload via coppermine.

Also coppermine is unable to delete files users upload, when i click delete, it deletes the comments and removes the pic from the coppermine gallery, all the rest it fails on, red icons, it cannot remove the source images from the webshell.
Title: Coppermine uploading photos as "apache" causing ma
Post by: hyperion on February 06, 2004, 05:08:33 AM
It seems you are using Nuke.  Did you ask the Nuke board about this problem?

http://coppermine.findhere.org
Title: Coppermine uploading photos as "apache" causing ma
Post by: ganjauk on February 06, 2004, 05:13:34 AM
I did yes but noone was kind enough to reply.  :roll:

I figured the nuke port would be irrelevant to the way coppermine uploaded files so i tried here after i posted at the other board. Hope that's not a problem.
Title: Coppermine uploading photos as "apache" causing ma
Post by: moorey on February 06, 2004, 07:31:33 AM
Do you have shell access (ie telnet or ssh)?
Can you chmod all the files to 777 instead of just the folder?
Title: Coppermine uploading photos as "apache" causing ma
Post by: ganjauk on February 06, 2004, 02:40:42 PM
I can't chmod anything that coppermine uploads under username apache, i get the access denied, i can only chmod files and folders that i created myself.
Title: Coppermine uploading photos as "apache" causing ma
Post by: Joachim Müller on February 06, 2004, 10:52:59 PM
this is a matter of server setup: the script runs under the permission of the server-user "apache". Contact your webhost what to do about this...maybe the can chmod the /albums folder (and everything that's within it) for you once and you should be fine... Not really a coppermine issue imo.

GauGau