Documentation

+ Structure

+ Required system

+ Installation

+ Your license


Installation



Putting files on the server:

Once you have Photos GalleryHP on your computer, you must put the complete galleryhp directory on the server. In the galleryhp directory there is a directory called admin which will allow you to manage the pictures via your browser.

Important: You ftp client must send files on the server only in binary mode. If not, you may receive the following error message:
"The encoded file a_file.php has expired or is corrupted"
Example of how to change the transfer mode for the ftp client FlashXP:


You must NOT edit the files, or you could corrupt them.


File attributes:

Once the files are on the server, Photos GalleryHP's scripts must be able to modify and create some files/directories.
The Unix web server usually runs as "nobody" or as "www-data". But when you upload files via ftp, these files belong to the user that is logged in..

2 ways of authorizing the web server to have write access to these files:

- 1 If you have ssh or telnet access to the galleryhp directory on the server, you just have to run the Unix command: chown -R www-data galleryhp/
If the web server is running aswww-data

- 2 You can do a chmod to the files/directories which must be in write access via your ftp client. This chmod must authorize write access to the group (public/other):




- 1 - Select the file or the directory that you want to change attributes for.
- 2 - Select the attribute public/other in write access mode.


Tree structure of files and directories:

18 directories, 149 files, the sign «« means the file or directory must be in write access mode.:

`-- galleryhp
    |-- index.php
    |-- admin_pref.inc.php ««
    |-- bottom.html
    |-- top.html
    |-- galleryhp_display.inc.php
    |-- galleryhp_global.inc.php
    |-- galleryhp_lang.inc.php -> Edit this file to modify/create a language
    |-- ghpimages ««
    |-- images
    |-- ioncube
    |-- photos ««
    |-- admin

Access to your gallery:

Once the files are on the web server, you can access the picture's gallery via your browser. Simply type the url of your website and specify the directory where Photos GalleryHP is installed. For example:



To get access to the administration portion, do it in the same way via your browser, type the url of your website, specifying the directory where the admin directory is installed. For example:



Security:

You must protect the administration partion via a .htaccess file to protect your pictures gallery. Please, seek for assistance with the server administrator because each web hoster proposes a different solution.
As an example, to protect the admin directory on ICDSOFT's servers, you can do it through the web interface:




You can also rename the admin directory to, for example, 9878764 and put the administration linked to your favorite/bookmark.

ou can protect your picture gallery in the same way, using the .htaccess file.

Background:



This is the default background in the file top.html, to change it you just have to modify the file background_color.jpg found in the directory ghpimages via your ftp client.

Uploading pictures:

When you upload new pics in the administration partion, they must not be in read-only mode, otherwise they may be in read-only mode on the server and this will block the directory.
If a picture is in read-only mode on the server, you must change attributs of this picutre in taking the control of the web server. Seek for assistance with the server administrator in this case.

FTP: When you upload pictures by ftp, once the upload is complete you must select all of them to ensure they are in write acces mode for the public/other group.

Norton Firewall:

If you use Norton Firwall, it could block access to some thumbnails or pictures and you will get a gallery result such as:



In this case, the person using the Norton Firewall can't access the thumbnails, if the firewall is terminated, the thumbnails will be accessible.

You can for example use the firewall Sygate Personal Firewall available for free: www.download.com instead of Norton.




 
bottom_background.png

© Copyright 2003 Siova Networks, Inc.