Author Topic: album.pl Files and Permissions  (Read 14523 times)

0 Members and 1 Guest are viewing this topic.

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
album.pl Files and Permissions
« on: June 30, 2002, 06:26:37 »
Below is a list of the files and directories that are used by album.pl, their purpose, and their preferred permissions. (Sample UNIX permissions are provided in brackets.) The items listed here are the files and directories used by default. Your specific configuration may be different, but this will give you an idea of what is involved. Each of these paths are web paths. That is, they are as if they were from the web root, not from the file system root.

Note that the sample UNIX permissions below may be "more permissive" than they need to be on your system. If you're a security nut like myself, you'll want to chown many of these files over to the web server, and make them readable/writable only to the owner.

Note that not all of these files will be present! Many are created by album.pl as needed. [ more info ]

FileDescriptionPermissions
/Photo_Album.cssThe cascading style sheet for the album. [Optional, set by style_sheet]Readable by Web Server (644)
/cgi-bin/album.plThe main album.pl script.World Executable (755)
/cgi-bin/Modules/album_admin.pmAll admin functions.World Executable (755)
/cgi-bin/Modules/album_display.pmAll display functions.World Executable (755)
/cgi-bin/Modules/album_login.pmAll login functions.World Executable (755)
/cgi-bin/Modules/album_ratings.pmAll ratings functions.World Executable (755)
/cgi-bin/Modules/album_recent.pmAll recent upload functions.World Executable (755)
/cgi-bin/Modules/album_upload.pmAll upload functions.World Executable (755)
/cgi-bin/album.cfg.cleanThe "base" config file included with new versions.Readable by Web Server (644)
/cgi-bin/album.cfgYour local config file. This is created during an install, or updated during an upgrade.Writable by Web Server (or just readable by web server if you do not intend to use the function=config feature) (666)
/cgi-bin/album_strings.txtThe string table. Contains all "hard coded" strings, ready for translation.Readable by Web Server (644)
/cgi-bin/album.tmlThe album template file. You may want to edit this.Readable by Web Server (644)
/cgi-bin/album_header.tmlThe album header sub-template file. You may want to edit this. It's automatically included into album.tml and photo.tml.Readable by Web Server (644)
/cgi-bin/album_footer.tmlThe album footer sub-template file. You may want to edit this. It's automatically included into album.tml and photo.tml.Readable by Web Server (644)
/cgi-bin/album_photo.tmlThe photo template file. You may want to edit this.Readable by Web Server (644)
/cgi-bin/album_upload.tmlThe upload form template file. You may want to edit this.Readable by Web Server (644)
/cgi-bin/album_rating.tmlThe rating form template file. You may want to edit this.Readable by Web Server (644)
/cgi-bin/album_login.tmlThe login form template file. You may want to edit this.Readable by Web Server (644)
/cgi-bin/album_recent.tmlThe recent uploads template file. You may want to edit this.Readable by Web Server (644)
/img/thmb_photo.gifThe icon for a photo. [Optional, set by icons=1]Readable by Web Server (644)
/img/thmb_album.gifThe icon for an album. [Optional, set by icons=1]Readable by Web Server (644)
/img/thmb_movie.gifThe icon for a movie. [Optional, set by icons=1]Readable by Web Server (644)
/album/Your actual photo album root directory. Images put in here will show up as photos in your gallery.Writable by Web Server (777)
/album/descriptions.txtUsed to describe the photos and albums in your gallery. For formatting rules see below. [Optional]Writable by Web Server (666)
/album/views.txtCreated automatically by this script. Used to keep track of the number of times each photo in this album has been viewed. [Optional, set by viewfile]Writable by Web Server (666)
/album/subdirA sub album. Can contain more photos and a descriptions.txt file, as desired.Writable by Web Server (777)
/album/somephoto.jpgA photo in your album.Readable by Web Server (644)
/album/thmb_somephoto.jpgA thumbnail for a photo in your album.Readable by Web Server (644)
../logs/album.logLog file to log all photo uploads. Should be above the web root, so people can't browse to it.Writable by Web Server (666)
../auth_db.txtAuthentication database. Should be above the web root, so people can't browse to it. [Optional, set by authentication_type=0]Readable by Web Server (644)

I think that's about it. If you are having problems, turn off options like "notify" then you don't have to worry about files such as the photo_address.txt. I'd recommend turning all the "options" off and getting it to work that way, then turn on the ones you want to use.
« Last Edit: January 11, 2006, 16:22:07 by Mike Bobbitt »