Un-tar and copy the PicWeb PHP files onto your webserver space (we'll assume it's in /home/www/picweb, and the images are in /home/www/images).
Edit the settings.php file in the root of the PicWeb PHP folder.
The important settings are marked in bold:
Application Database Settings | |
$pwDb->username = "picwebphp"; | Database username |
$pwDb->password = "picwebphp"; | Database password |
$pwDb->host = "localhost"; | Database host |
$pwDb->dbname = "picwebphp"; | Database name |
$pwDb->prefix = "PW1"; | Database object prefix |
Login subsystem Database Settings | |
$loginDb->username = "picwebphp"; | Database username |
$loginDb->password = "picwebphp"; | Database password |
$loginDb->host = "localhost"; | Database host |
$loginDb->dbname = "picwebphp"; | Database name |
$loginDb->prefix = "login_"; | Database object prefix |
PicWeb Application Settings | |
$pwBasePath = "../images"; | Relative or absolute path to the images |
$pwWatermark = "webster-smalley.co.uk"; | If you want a watermark on your pics, set this |
$pwThumbHeight = "125"; | "Height" of thumbnails (assuming landscape orientation) |
$pwImageHeight = "400"; | "Height" of preview images (assuming landscape) |
$pwQuality = 60; | JPG quality - higher is bigger / more quality |
$pwThumbColumns = "5"; | Number of columns of thumbs to display |
$pwCopyrightNotice= "Website and all images copyright (c) 2005-2008 Webster-Smalley"; | Copyright notice for the html pages |
$pwGoogleAdClient = "pub-2768696176768366"; | Set this if you want Google ads to show |
Once the settings are correctly set, save and update the file in the web space.
Next, create the db objects by running the script PicWeb_Admin_InstallDb.php in a browser.
You should be greeted with signs of success similar to:
DDL: users table DDL: vUsers view DML: Adding test user to db DDL: csses table DDL: folders table DDL: images table DDL: hits table DDL: vFolderDetails view DDL: vImageDetails view DDL: vCssDetails view Adding css to db (resources/default.css) if it doesn't already exist. Adding css to db (resources/blue.css) if it doesn't already exist.
Enjoy PicWeb PHP by running PicWeb_Main.php.