Author Topic: newbie - img_dir question  (Read 2645 times)

0 Members and 1 Guest are viewing this topic.

Offline gumshoo

  • album.pl User
  • *
  • Posts: 4
  • Karma: +0/-0
  • I forgot to change the default text.
newbie - img_dir question
« on: April 13, 2003, 22:47:19 »
BACKGROUND
I am using album.pl v6.1. I just started messing around with it yesterday. I pay for a web hosting service. All of the webpages I serve have to be within a folder called httpdocs. The system path to this dir is:/home/httpd/vhosts/mydomain.com/httpdocs. So, when one types in their browser http://www.mydomain.com/ the file index.html located in /home/httpd/vhosts/mydomain.com/httpdocs is what gets served.

PROBLEM
I guess what all this boils down to is that I am not sure how to specify the img_dir setting. The description on the configuration magagement page says:
Quote
    "This section defines the image directory and the
     filenames of individual icons and buttons. The path
     to the directory containing all icons and buttons.
     This should be relative to album.pl's location, as
     it is appended to album_web to get the actual URL."
   
It says that this path should be relative to album.pl's location. Well, album.pl is located in /home/httpd/vhosts/mydomain.com/cgi-bin/. So, this would mean that I should specify img_dir as ../httpdocs/album/icons_and_buttons. But since img_dir is appended to album_web, the program would wind up with http://www.mydomain.com/album/photographs/../httpdocs/album/icons_and_buttons. What am I missing? Does this have to do with the fact that my cgi-bin directroy is not located within my httpdocs directory?

Things (exept for an error on the configuration management page) seem to
work with these settings:
     cgi_dir = /home/httpd/vhosts/mydomain.com/cgi-bin/
    album_dir = /home/httpd/vhosts/mydomain.com/httpdocs/album/photographs/
     cgi_web = http://www.mydomain.com/cgi-bin/
    album_web = http://www.mydomain.com/album/photographs/
     img_dir = /album/icons_and_buttons  
    [/list]
    All the buttons and icons appear to be working, however, when I go into Configuration Management I see the following message next to the img_dir assignment (with img_dir set as above):
    Quote
        "STOP: This directory does not currently exist
         or is not readable to the web server. You must
         either create it or modify this config item
         before your album will work."
       
    As I said, it appears that all buttons and icons appear to be working despite this message. Should I ignore the warning?

    Thanks,

    gumshoo



    Offline Mike Bobbitt

    • album.pl Author
    • Administrator
    • I Spend Too Much Time Here
    • *****
    • Posts: 3381
    • Karma: +35/-2
      • Mike's Development Archive
    Re:newbie - img_dir question
    « Reply #1 on: April 14, 2003, 12:30:09 »
    Hi gumshoo,

    The config screen errors won't match "reality" in your case. The check that the config screen does will actually fail, even though it's set correctly.

    It looks like you've got the right settings (I might use img_dir=../../album/icons_and_buttons instead) so if it works, just ignore the config screen errors. (They don't actually stop the album from working, they're just there to help configure it - though in this case they're wrong...)


    Cheers

    Offline gumshoo

    • album.pl User
    • *
    • Posts: 4
    • Karma: +0/-0
    • I forgot to change the default text.
    Re:newbie - img_dir question
    « Reply #2 on: April 16, 2003, 07:27:00 »
    Thanks for the prompt reply. I have changed to img_dir=../../album/icons_and_buttons and everything seems to be working. I'll just ignore the erros on the configuration management page.

    Thanks,

    gumshoo

    Offline cryssby

    • album.pl User
    • *
    • Posts: 1
    • Karma: +0/-0
    Re: newbie - img_dir question
    « Reply #3 on: March 02, 2007, 07:31:28 »
    Hello Mark! I`ve just registered yesterday on your site just to tell you I had the same problem and I`m installing the album on my own server with no restrictions. It seems that the validator script is searching for a logical location on the disk "/usr/local/www/site/album/img/" to not give any errors, but setting up like this doesn`t load the images in browser because the end-user browser looks for "http://www.somedomain.ro/usr/local/www/site/album/img/something.png". So i left the configuration with error, with just "/img" or "/album/img" and warnings on all files and worked properly i see...
    Anyway, i have no problem with this, i just wanted to let you know  ;D
    Great software, cool stuff with the YaBB, i really use YaBB and took your software random from Google and i was very happy i don`t have to setup any mysql  ;D

    bye