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: mkdir doesn't like me  (Read 5272 times)

0 Members and 1 Guest are viewing this topic.

Mignon

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
    • http://mignon.info
mkdir doesn't like me
« on: October 16, 2003, 01:10:14 am »

:cry:

I am new and I am using a webhost I have tried to read as much as I could before posting so if I missed something please dont jump on me :)

I get this error:


Failed to create directory albums/friends/10001 !

File: /home/breianna/public_html/albums/db_input.php - Line: 223



Warning: mkdir(albums/friends/10001): No such file or directory in /home/breianna/public_html/albums/db_input.php on line 222

ok I read something about silly safe mode and I run this script:
<?php
 readfile('/etc/passwd');
?>
 and I got a copy of the passwd file if that helps if not ignore because I am blonde hehe


I really like your product and would like to be able to make it work, you seam to have a very nice photo album :)

Mignon[/b]
Logged

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
mkdir doesn't like me
« Reply #1 on: October 16, 2003, 02:04:53 am »

Usually, mkdir fails because an upstream directory directive prevents your script's ID from writing.

Try running this script from with the CPG directory, and tell us what happens.

Code: [Select]

<?php

mkdir
&#40;"./testdirectory", 0755&#41;;

?>



Do you get a directory called testdirectory within the Coppermine folder?


In any case, call your webhost and ask them if they would like an extra copy of their password file.  :twisted: (Be sure they improve security. It's really rather shocking.)
Logged
&quot;Then, Fletch,&quot; that bright creature said to him, and the voice was very kind, &quot;let&#039;s begin with level flight . . . .&quot;

-Richard Bach, Jonathan Livingston Seagull

(http://www.mozilla.org/products/firefox/buttons/getfirefox_small.png)

Mignon

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
    • http://mignon.info
mkdir doesn't like me
« Reply #2 on: October 16, 2003, 02:30:50 am »

this is what I got:

drwxr-xr-x    2 nobody   nobody       4096 Oct 16 00:26 testdirectory

Now what? <gives a sweet sad look to get more help> :) we need a smiley for that expression hehe  
ok no one suggest the devil one :-P
Logged

Mignon

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
    • http://mignon.info
humm
« Reply #3 on: October 16, 2003, 03:14:24 am »

When I set the conf stuff back to default which all I really changed was the name of the file it stored the pictures in it now works.  But why did it offer to let me change it and then not let me :(

I really do like this program its very nice :)
Logged

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
mkdir doesn't like me
« Reply #4 on: October 16, 2003, 03:45:55 am »

Mignon,

Did you make the directory "friends" before you tried to use CPG under that configuration? It wouldn't be able to make two directories at once.

-Hyperion
Logged
&quot;Then, Fletch,&quot; that bright creature said to him, and the voice was very kind, &quot;let&#039;s begin with level flight . . . .&quot;

-Richard Bach, Jonathan Livingston Seagull

(http://www.mozilla.org/products/firefox/buttons/getfirefox_small.png)

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
mkdir doesn't like me
« Reply #5 on: October 16, 2003, 09:00:40 am »

the usage of a subdir named 10001 indicates you're using the web interface upload feature. By default, all uploads with the web interface go to /albums/userpics/10001. The fact it went to /albums/friends/10001 means you messed with coppermine where you shouldn't have. I have repeated this a thousand times: do not play around with the album structure within userpics. The script knows where to put images and keeps track of them (that's the benefit of a database!), the human doesn't have to! If you must have a friendly, nice looking folder structure, use ftp upload and create any folders/subfolders within /albums, but leave userpics alone...

GauGau
Logged
Pages: [1]   Go Up
 

Page created in 0.082 seconds with 19 queries.