Author Topic: Uploading/permissions errors prob solved read the thread or search board  (Read 6730 times)

0 Members and 1 Guest are viewing this topic.

Offline Gauld

  • Pre-Newbie
  • Posts: 8
    • View Profile
Hi,

I've just discovered 4images version: 1.7 yesterday, and I just support your work 100% !!! frankly your gallery script is the best I've seen for now !! cause you can upload pictures but make direct links to pictures which are on free web hosting services and this is THE best features to me.

So, I'm unfortunately here to try to fix my error, I have :

Quote
Error uploading image file: dodo.jpg
dodo.jpg: Copy error. Please check the directory permissions.

No database entry!


Everytime i try to upload a picture, I'm hosted on a server but I don't have root access, there are NetBPM and GD librairies installed on the host.

I "chmoded" all the directories to 777 but I still havel this error just when trying to upload, otherwise the whole script works like a charm.

I guess the pictures are uploaded in a Temp directorie on the server such as /tmp no ??

What am I supposed to do ? please give me some help cause I really really want 4images working for me !

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Maybe
« Reply #1 on: October 20, 2002, 10:56:56 PM »
Don't know if this is your issue, but from the Installation.txt file:

Quote
    Set permissions for the following directories:

     chmod 777 (drwxrwxrwx) : data
     chmod 777 (drwxrwxrwx) : data/database
     chmod 777 (drwxrwxrwx) : data/media
     chmod 777 (drwxrwxrwx) : data/thumbnails
     chmod 777 (drwxrwxrwx) : data/tmp_media
     chmod 777 (drwxrwxrwx) : data/tmp_thumbnails
     chmod 777 (drwxrwxrwx) : templates
     chmod 777 (drwxrwxrwx) : templates/default
     chmod 777 (drwxrwxrwx) : templates/default/media

     Set permissions for the following files:

     chmod 666 (-rw-rw-rw-) : all files in the directory "templates/default"
     chmod 666 (-rw-rw-rw-) : all files in the directory "templates/default/media"

     You can do this with FTP programs such as CuteFTP or WS_FTP.

Offline Gauld

  • Pre-Newbie
  • Posts: 8
    • View Profile
Uploading/permissions errors prob solved read the thread or
« Reply #2 on: October 20, 2002, 11:46:47 PM »
Thanks for answering but as I've said, I've already "chmoded" the right directories.......

Thank you

Offline Gauld

  • Pre-Newbie
  • Posts: 8
    • View Profile
Uploading/permissions errors prob solved read the thread or
« Reply #3 on: October 21, 2002, 01:07:52 PM »
Sorry for coming back so early, but, if someone knows how I should fix the problem it will be really appreciated.

Offline Gauld

  • Pre-Newbie
  • Posts: 8
    • View Profile
Uploading/permissions errors prob solved read the thread or
« Reply #4 on: October 21, 2002, 02:08:44 PM »
Me again here is the problem, I was right, I've not access writing in the tmp directory of the server I could not do anything against that :

Quote
[Mon Oct 21 13:18:42 2002] [error] PHP Warning:  Unable to create './../data/media/1/non.jpg':  No such file or directory in /public/***/***.***.com/gallery/includes/upload.php on line 104
[Mon Oct 21 13:18:42 2002] [error] PHP Warning:  Unable to move '/var/tmp/phpAriKcr' to './../data/media/1/canon.jpg' in /public/***/***.***.com/gallery/includes/upload.php on line 104


So is there a way to put a different temp dir, like something like :

/public/***/***.***.com/gallery/temp  ????

Thanks in advance.

Offline Gauld

  • Pre-Newbie
  • Posts: 8
    • View Profile
Uploading/permissions errors prob solved read the thread or
« Reply #5 on: October 21, 2002, 05:39:47 PM »
Aaaarrrrggggggggggggggggggg sorry for having not search the database of your forum !!!!!!

I feel stupid here please all people who had the very same problem go here and read :

http://www.4homepages.de/forum/viewtopic.php?p=5258#5258

You need to create a directory called "1" in your /data/media :

data/media/1/

and chmod it to 777

The same goes for data/thumbs

And here we go it works perfectly !!! Thanks for the work on the script it rulez !!!!!