Author Topic: Need help with setting the permission and uploading pictures  (Read 7471 times)

0 Members and 1 Guest are viewing this topic.

Offline Natashja Singleton

  • Pre-Newbie
  • Posts: 8
    • View Profile
Need help with setting the permission and uploading pictures
« on: April 15, 2005, 04:00:09 PM »
Hi Everyone! I hope anyone can hellp me, I've been trying to fix this for days now  :cry:  and thought to ask help here :)

I've installed everything and skinned ever page everything works, I've even  registered a user and tested it, so everything works, except I'm not sure if I've set the permissions right (this part of the installation.txt page)

5. 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.

Now I don't have those FTP programs.  I use Total Commander to upload the files through FTP, and I've set the permissions (I think I did) by going to Files/Change Attributes and set the above mentioned files to 777 and 666 as stated it should be.

Now I'm not sure if thats right, I'm not sure what these permissions are.  If it is the following settings:

Owner
Read
Write
Execute

Group
Read
Write
Execute

World (Other)
Read
Write
Execute

Then I think I did it right.

Now my second problem is.  That I can't upload images.  After I've filled in the upload page and clicked on submit, it takes me to the members.php page and then nothing happens, no errors, and no picture, just a blank page....

I hope anyone can help me fix this...

Take Care

Natashja

http://www.natashjasingleton.com/donations/

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Need help with setting the permission and uploading pictures
« Reply #1 on: April 16, 2005, 12:01:21 AM »
what kind of server do u have? (OS, PHP version, webservery type/version, etc)
what 4images version?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Natashja Singleton

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: Need help with setting the permission and uploading pictures
« Reply #2 on: April 16, 2005, 08:54:36 AM »
Hi! I have version 1.7.1 (thats what it says on the admin panel.

I don't know what kind of server it is, since I bought webspace from Bravenet, I took the package that allows PHP scripts, ect...

Offline ManniC

  • Full Member
  • ***
  • Posts: 182
    • View Profile
    • photographic impressions
Re: Need help with setting the permission and uploading pictures
« Reply #3 on: April 16, 2005, 05:26:10 PM »
Hi Natashja,

please upload a file named phpinfo.php with this content
Quote
<?php
echo phpinfo();
?>
to your webspace and post the link here - this info may help for diagnostics.
Viele Grüße / Best Regards
Manfred
------------------------------------------------------
photographic impressions powered by mc-com.de[/color][/url][/size]


Offline Natashja Singleton

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: Need help with setting the permission and uploading pictures
« Reply #5 on: April 18, 2005, 01:22:34 PM »
Can this be because of the register_globals???  the server I'm using have the register_globals set to off

Offline ManniC

  • Full Member
  • ***
  • Posts: 182
    • View Profile
    • photographic impressions
Re: Need help with setting the permission and uploading pictures
« Reply #6 on: April 18, 2005, 01:54:02 PM »
Ups, i don't see anything when following your link to phpinfo.php 8)

Are you sure that it contains the code i posted above?

Do you see anything?
Viele Grüße / Best Regards
Manfred
------------------------------------------------------
photographic impressions powered by mc-com.de[/color][/url][/size]

Offline Natashja Singleton

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: Need help with setting the permission and uploading pictures
« Reply #7 on: April 18, 2005, 03:16:32 PM »
I've added the info:

Code: [Select]
<?php
echo phpinfo();
?>

exactly like that and save it as phpinfo.php

And no I don't see anything eighter  8O

Offline ManniC

  • Full Member
  • ***
  • Posts: 182
    • View Profile
    • photographic impressions
Re: Need help with setting the permission and uploading pictures
« Reply #8 on: April 18, 2005, 04:33:30 PM »
hmmmh - mysterious. You shout see something like this (my own phpinfo)

You should contact your hoster - there might something be wrong with your PHP-configuration.
Viele Grüße / Best Regards
Manfred
------------------------------------------------------
photographic impressions powered by mc-com.de[/color][/url][/size]

Offline Natashja Singleton

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: Need help with setting the permission and uploading pictures
« Reply #9 on: April 18, 2005, 04:56:36 PM »
Can that be why the  script isn't working right?

Offline ManniC

  • Full Member
  • ***
  • Posts: 182
    • View Profile
    • photographic impressions
Re: Need help with setting the permission and uploading pictures
« Reply #10 on: April 18, 2005, 05:54:41 PM »
Yes -- there's only one basic PHP-command in this script, that will have to work!
Viele Grüße / Best Regards
Manfred
------------------------------------------------------
photographic impressions powered by mc-com.de[/color][/url][/size]

Offline Natashja Singleton

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: Need help with setting the permission and uploading pictures
« Reply #11 on: April 22, 2005, 07:58:28 AM »
I truly appreciate you helping me :)  I've wrote to my webprovider and waiting for an answer, I've asked them to check my PHP-configuration... Hopefully they will/can answer me.

Offline Natashja Singleton

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: Need help with setting the permission and uploading pictures
« Reply #12 on: April 25, 2005, 08:41:52 AM »
Here is the answer I got from Bravenet:

Dear Natashja Singleton,

The phpinfo() information is disabled for security reasons. If you need to know about a certain setting or feature, please let me know what it is and I'll check to see if it's available.

Regarding the uploading issues- please make sure you're using the correct server path for your file uploads. You may have to get the document root first and append your folder name- for example: $_SERVER['DOCUMENT_ROOT']."/uploads"

Also, make sure you've changed the uploads folder permissions to make it writable through your PHP scripts.

Regards