Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Coppermine uploading photos as "apache" causing ma  (Read 4105 times)

0 Members and 1 Guest are viewing this topic.

ganjauk

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Coppermine uploading photos as "apache" causing ma
« 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://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fserver5.uploadit.org%2Ffiles%2Fganjauk-cantdelete.jpg&hash=181bf6999c6e69aa04bdecd258ba354e62bbada0)

Coppermine itself fails to delete these pics too.
Logged

s0ber

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 9
Coppermine uploading photos as "apache" causing ma
« Reply #1 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
Logged

ganjauk

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Coppermine uploading photos as "apache" causing ma
« Reply #2 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.
Logged

moorey

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 404
Coppermine uploading photos as "apache" causing ma
« Reply #3 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.
Logged

ganjauk

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Coppermine uploading photos as "apache" causing ma
« Reply #4 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:
Quote
scripts 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.
Logged

moorey

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 404
Coppermine uploading photos as "apache" causing ma
« Reply #5 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.
Logged

ganjauk

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Coppermine uploading photos as "apache" causing ma
« Reply #6 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.
Logged

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
Coppermine uploading photos as "apache" causing ma
« Reply #7 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
Logged
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

ganjauk

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Coppermine uploading photos as "apache" causing ma
« Reply #8 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.
Logged

moorey

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 404
Coppermine uploading photos as "apache" causing ma
« Reply #9 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?
Logged

ganjauk

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Coppermine uploading photos as "apache" causing ma
« Reply #10 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Coppermine uploading photos as "apache" causing ma
« Reply #11 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
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 18 queries.