1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice

[Plesk 7.5] cgi-bin issuse with "alien" files

Discussion in 'Plesk for Linux - 8.x and Older' started by stratofan, Dec 11, 2005.

  1. stratofan

    stratofan Guest

    0
     
    Hello there,

    having trouble to call *.css and *.png files from within the cgi-bin dir. Everytime i call them, the server gets me an 500 because he wants to execute them.
    How can i "fix" this problem.. maybe by altering the vhosts.conf

    thx.

    stratofan
     
  2. stratofan

    stratofan Guest

    0
     
    any suggestions?
     
  3. phoenixisp

    phoenixisp Silver Pleskian

    27
    57%
    Joined:
    Feb 2, 2002
    Messages:
    840
    Likes Received:
    0
    Are you using a relative path in your scripts? Matbe you need to use full paths.
     
  4. stratofan

    stratofan Guest

    0
     
    i think it isn't a problem of the scripts paths, because the files are wrong interpreted by apache.

    In the script the paths are relative, because they are url's to images used in the html output of the script.

    but if u call for example: http://www.myserver.de/cgi-bin/gif.gif it gives an 500 error instead of displaying the image.
     
  5. phoenixisp

    phoenixisp Silver Pleskian

    27
    57%
    Joined:
    Feb 2, 2002
    Messages:
    840
    Likes Received:
    0
    What permissions are on the images? You should chmod them to 644.
     
  6. stratofan2

    stratofan2 Guest

    0
     
    the permission of the graphic files are on 644 but he's still giving me the 500... :-( some ideas?
     
  7. stratofan2

    stratofan2 Guest

    0
     
    still needing a solution for the problem.. any suggestions?
     
  8. crops

    crops Guest

    0
     
    dont use cgi-bin for images

    I dont suggest puting images on the cgi bin folder. try put the images outside the cgi-bin folder and give them a full path or a relative to your document. see if that works.
     
  9. stratofan2

    stratofan2 Guest

    0
     
    that works fine of course, but in this case i have an other problem: the scripts uses includes the images and the css in a html output, that allone wouldn't be a problem, if the script wouldn't include the paths in some complex if-clauses it would be to hard to change them all.
     
Loading...