WILIB-GALLERY 1.0 INSTALLATION:

 

STEP 0 : *** IMPORTANT ***

 Required:

- PHP + Sessions enabled in php.ini

- Make sure you have defined path to tmp folder in php.ini (that's where sessions are going to be saved)

- GD or GD2 enabled in php.ini

- Mysql

 

STEP 1 : *** let's start - 1.step ***

- unzip wilibgallery.zip

- log into your site using ftp

- upload the whole structure of zip file into this folder

- MAKE SURE "albums" folder is in low letters... (wrong format: 'Albums' or  'ALBUMS' ; right: 'albums')

 

STEP 2 : *** uploading gallery ***

- Upload the whole folder structure of your picture gallery (navigation folders, subfolders and pics) using ftp to folder "albums"

- Only jpg pictures are supported as for now

- Also make sure that there is no space (" ") or "&" sign in the name of your pictures or folders. (" " or "&" are simply not accepted)

    - Correct : "my_picture.jpg" in folder "my_pictures"

    - Incorrect: "my picture.jpg"  or folder "my pictures"

- make permissions of all folders in "albums" folder to chmod 777 or If you're using Windows then make sure all files and all folders of wilibgallery folder are read only

 

STEP 3 : *** settings ***

- open config.php and change it the way you want (name of the site, colors and so, database connection...) - IMPORTANT STEP

 

STEP 4 : *** create mysql database ***

- good windows program for accessing your mysql database can be found here: www.mysqlfront.de

- create database called : "wilibgallery"

(If you don't want it to be called "wilibgallery" open "wilibgallery.sql" in your

text editor and change this line:

USE wilibgallery; ...to whatever name you want...)

- then load "wilibgallery.sql" to mysql (or execute content of this file in mysql environment),

it will create the whole mysql structure of WILIB-GALLERY for you

 

STEP 5 : *** fetching to database ***

- go to your site and access this file: http://yoursite.com/wilibgallery/readfiles.php

- this file is for automatic fetching of whole gallery to mysql database

- let it run until you'll see the screen: "successfully done"

- this is the file you have to run every time you add some pictures or change folder

structure of your gallery site album. (it refreshes the mysql database)

 

STEP 6 : *** PROTECT "readfiles.php" and "deletescratchfolders.php" ***

- protect these files by chmod 0

- un-chmod them only for the time, when you'll be using them

 

STEP 7 : *** ready to go ***

- open http://yoursite.com/wilibgallery/index.php

 

 

----------------------------------------------------------------------

IMPORTANT:

*** use "deletescratchfolders.php" before any seriouse change to folder structure of your gallery ***

EXPLANATION:

Whenever you want to make some serious change to your folder structure, like deleting already existing folders and so on... be aware that every folders with at least 1 picture in it, already contains "wilibscratch" subfolder with thumbnails... You can't delete "wilibscratch" folders or thumbnail pictures inside of them, because you're not owner of them. - Don't forget - script created them. So there is an easy fix... before you want to completely delete any folder from your gallery structure, just run "deletescratchfolders.php", and it will get rid of every found "wilibscratch" folder in your album structure. Then just make desired change to your folders structure. Don't forget to run - readfiles.php - to refresh mysql database and it will be all alright. Don't worry about those lost thumbnails - they'll be created automatically after you do the change. Anyway after all this don't forget to PROTECT "readfiles.php" and "deletescratchfolders.php" by chmod-ing them to 0 .

 

------------------------------------------------------------------------

Ok I guess that's all you needed to know to get your gallery up and running.

If any questions, you can contact me at: admin@wilib.com , but only in really serious cases please.

Demo of WILIB gallery can be found at http://www.wilib.com

And WILIB gallery website is also at: http://www.wilib.com