mkdir doesn't like me mkdir doesn't like me
 

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

mkdir doesn't like me

Started by Mignon, October 16, 2003, 01:10:14 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mignon

: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]

hyperion

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.


<?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.)
&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

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

Mignon

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

Mignon

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 :)

hyperion

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
&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

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

Joachim Müller

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