Log in | Register | Lost password

Bottom
In trouble
  • Posted: 06.04.2003, 06:27
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Hello there.

    I'm trying to setup the photoshare module in my postnuke site. And i'm getting this results...

    Warning: SAFE MODE Restriction in effect. The script whose uid is 10290 is not allowed to access /var/tmp/IMG9Xmrt8 owned by uid 2525 in /usr/local/psa/home/vhosts/publish.eyekon.tv/httpdocs/modules/photoshare/pnuserapi.php on line 497

    Warning: SAFE MODE Restriction in effect. The script whose uid is 10290 is not allowed to access /var/tmp/IMG9Xmrt8 owned by uid 2525 in /usr/local/psa/home/vhosts/publish.eyekon.tv/httpdocs/modules/photoshare/pnuserapi.php on line 1092

    Warning: getimagesize: Unable to open '/var/tmp/IMG9Xmrt8' for reading. in /usr/local/psa/home/vhosts/publish.eyekon.tv/httpdocs/modules/photoshare/pnuserapi.php on line 1092

    Warning: SAFE MODE Restriction in effect. The script whose uid is 10290 is not allowed to access /var/tmp/IMG9Xmrt8 owned by uid 2525 in /usr/local/psa/home/vhosts/publish.eyekon.tv/httpdocs/modules/photoshare/pnuserapi.php on line 505

    Warning: fopen("/var/tmp/IMG9Xmrt8", "rb") - No such file or directory in /usr/local/psa/home/vhosts/publish.eyekon.tv/httpdocs/modules/photoshare/pnuserapi.php on line 505

    Warning: SAFE MODE Restriction in effect. The script whose uid is 10290 is not allowed to access /var/tmp/IMG9Xmrt8 owned by uid 2525 in /usr/local/psa/home/vhosts/publish.eyekon.tv/httpdocs/modules/photoshare/pnuserapi.php on line 507


    I've saw the Terrah post where you advise her to use some different name to Temp (something different from '/tmp')... I've tryied some chages and i'm still getting the same errors...

    In my Photoshare Admin page i see these informations...

    Save images in files on disc X
    Save images in database O

    Your PHP server has "open_basedir" set to:
    /usr/local/psa/home/vhosts/publish.eyekon.tv/httpdocs:/tmp
    Your directories must reside under this directory.

    Photoshare is installed in
    /usr/local/psa/home/vhosts/publish.eyekon.tv/httpdocs/modules/photoshare

    Folder for storing image files on disc (if required) [/photos ]
    Folder for temporary files [/photos ]



    For your information... Since i'm on a shared server, i don't have the root privileges...

    What should i do to ?

    I've some questions too...

    First...
    Your PHP server has "open_basedir" set to:
    /usr/local/psa/home/vhosts/publish.eyekon.tv/httpdocs:/tmp


    Is it right ?
    I think that we have something stranger here: httpdocs:/tmp
    This colon sounds strange... :casstet:

    Second...
    Folder for storing image files on disc (if required) [/photos ]

    Where in directory tree will be this folder '/photos' that i've informed ?
    [pnroot]/photo ?
    [pnroot]/modules/photoshare/photo ?


    Best Regards !

    p.s.: Sorry about my bad english...

    [Edited on 6/4/2003 by CaptainBlah]
  • Posted: 06.04.2003, 10:18
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Ok, I am replying to you. But you need to understand that it cannot made clearer in the module than it already is.

    In my Photoshare Admin page i see these informations...

    Save images in files on disc X
    Save images in database O

    Your PHP server has "open_basedir" set to:
    /usr/local/psa/home/vhosts/publish.eyekon.tv/httpdocs:/tmp
    Your directories must reside under this directory.

    Photoshare is installed in
    /usr/local/psa/home/vhosts/publish.eyekon.tv/httpdocs/modules/photoshare

    Folder for storing image files on disc (if required) [/photos ]
    Folder for temporary files [/photos ]




    So why is your TEMPORARY DIRECTORY (/photos) NOT set to either something below /usr/local/psa/home/vhosts/publish.eyekon.tv/httpdocs (with a CHMOD 777) or /tmp.
    /photos is underneath your ROOT (/) which you are of course not able to write.
  • Posted: 06.04.2003, 20:58
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I would suggest using the following for your images:

    /usr/local/psa/home/vhosts/publish.eyekon.tv/photoshare_images

    And then make that directory chmod 777 (read-write-exec for all).
  • Posted: 07.04.2003, 02:54
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    First of all... Thank you both for reply...

    I've never tryed to create folders parallel to httpdocs... I'll try to do it now...

    But if this 'logic' is right i can choose /httpdocs/photos right ?
    Since the 'root' is '/usr/local/psa/home/vhosts/publish.eyekon.tv/'...

    well... I still don't get where the directory i choose in Photoshare admin will be located...
  • Posted: 07.04.2003, 02:58
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    mmm...
    Permission denied to create folders under httpdocs...

    I'll try the second option... set the photoshare admin to /httpdocs/photos
  • Posted: 07.04.2003, 03:05
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    mmm... no good news...
    I'm with the same problem...

    Now trying to use [/httpdocs/photos ]

    Warning: SAFE MODE Restriction in effect. The script whose uid is 10290 is not allowed to access /var/tmp/IMGXVI6FD owned by uid 2525 in /usr/local/psa/home/vhosts/publish.eyekon.tv/httpdocs/modules/photoshare/pnuserapi.php on line 497

    Warning: SAFE MODE Restriction in effect. The script whose uid is 10290 is not allowed to access /var/tmp/IMGXVI6FD owned by uid 2525 in /usr/local/psa/home/vhosts/publish.eyekon.tv/httpdocs/modules/photoshare/pnuserapi.php on line 1092

    Warning: getimagesize: Unable to open '/var/tmp/IMGXVI6FD' for reading. in /usr/local/psa/home/vhosts/publish.eyekon.tv/httpdocs/modules/photoshare/pnuserapi.php on line 1092

    Warning: SAFE MODE Restriction in effect. The script whose uid is 10290 is not allowed to access /var/tmp/IMGXVI6FD owned by uid 2525 in /usr/local/psa/home/vhosts/publish.eyekon.tv/httpdocs/modules/photoshare/pnuserapi.php on line 505

    Warning: fopen("/var/tmp/IMGXVI6FD", "rb") - No such file or directory in /usr/local/psa/home/vhosts/publish.eyekon.tv/httpdocs/modules/photoshare/pnuserapi.php on line 505

    Warning: SAFE MODE Restriction in effect. The script whose uid is 10290 is not allowed to access /var/tmp/IMGXVI6FD owned by uid 2525 in /usr/local/psa/home/vhosts/publish.eyekon.tv/httpdocs/modules/photoshare/pnuserapi.php on line 507


    Adding image Republica #001 (89518 bytes): Could not create image(3,/var/tmp/IMGXVI6FD)
  • Posted: 07.04.2003, 03:14
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    YUHHU !!!!!!!!!!!

    I've solved the problem !!! ;)

    I use [../httpdocs/photos ] and it works... :D

    But... Now i'm with a new problem... hehehe
    I've uploaded one image... I see the thumb, but clicking the image i get a broken image... :(

    Any ideas ?
  • Posted: 07.04.2003, 03:35
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Finally... I've solved the problem again deactivating the compression and everything is working now...

    Really thank you...

    Best regards and thank you for this fabulous tool !
  • Posted: 22.05.2003, 10:02
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I had the same problem. And for me the solution in creating a directory httpdocs/fotos and telling Photshare to use the dir ../httpdocs/fotos worked as well.

    Thanks CaptainBlah for sharing the problem and solution
  • Posted: 22.05.2003, 10:37
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    You should be aware that placing images in a folder beneath "httpdocs" makes them available for the webserver. This means a user can point his browser directly to the images files and thereby bypassing Photoshare's access control.
  • Posted: 22.05.2003, 13:55
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0

    Quote

    I had the same problem. And for me the solution in creating a directory httpdocs/fotos and telling Photshare to use the dir ../httpdocs/fotos worked as well.

    Thanks CaptainBlah for sharing the problem and solution


    U R L come... :D

    Quote

    You should be aware that placing images in a folder beneath "httpdocs" makes them available for the webserver. This means a user can point his browser directly to the images files and thereby bypassing Photoshare's access control.


    Is there a way to avoid this ?
    Could Photoshare access files that the browser can't ?

  • Posted: 22.05.2003, 15:11
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Since Photoshare runs as a PHP program separate from the web server it can in principle access all files on the web server, but most ISP's restricts PHP's access so it can access only the directories that belongs to the customer. Some ISP's have a file system structure like this:

    /users/your_domain_name/httpdocs

    or

    /users/your_domain_name/public_html

    Then they grant read/write access to anything below "/users/your_domain_name/" which means you could place your Photoshare directories in "/users/your_domain_name/photoshare". This should then be outside the webserver's reach.

    But then - your installation might be without access to "/users/your_domain_name/" and only access to "/users/your_domain_name/httpdocs" in which case you cannot do anything about it.

    There's a bit more about this in the article on the front page.
  • Posted: 22.05.2003, 15:24
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I GOT IT...

    Just perfect...

    Thanks J?rn

Template courtesy of Designs By Darren.