Difference between revisions of "Zenphoto"
m (→Installation: correct command syntax) |
|||
Line 31: | Line 31: | ||
OpenBase/TmpDir issues | OpenBase/TmpDir issues | ||
− | + | db accounts setprop {youribay} PHPBaseDir /home/e-smith/files/ibays/{youribay}/html/:/tmp/ | |
− | + | db accounts setprop {youribay} PHPUploadDir /home/e-smith/files/ibays/{youribay}/html/tmp/ | |
db accounts show {youribay} | db accounts show {youribay} |
Latest revision as of 14:45, 5 October 2016
ZenPhoto
I recently looked for a simple photo gallery and stumpled across ZenPhoto whcih seemed a nice replacement for the abandoned https://wiki.contribs.org/Gallery3
https://github.com/zenphoto/zenphoto
It was a simple install and easy to use.
Installation
First a few dependencies are required but note that ImageMagick on CentOS 6 is too old so you can just get along with the gd library
For GD support
yum --enablerepo=epel install php-gd
OK, now we need to create an install directory, download zenphoto and untar (or clone it from git)
Before you run the installer I suggest you create a DB and user with phpmyadmin - easier than trying to do it in ZenPhoto
You may need some of the following to aid install
OpenBase/TmpDir issues
db accounts setprop {youribay} PHPBaseDir /home/e-smith/files/ibays/{youribay}/html/:/tmp/ db accounts setprop {youribay} PHPUploadDir /home/e-smith/files/ibays/{youribay}/html/tmp/
db accounts show {youribay}
PHPBaseDir=/home/e-smith/files/ibays/{youribay}/html/:/tmp/ PHPUploadDir=/home/e-smith/files/ibays/{youribay}/html/tmp/
signal-event ibay-modify
You may want to upload the file limits - I used something like this
config setprop php PostMaxSize 100M config setprop php UploadMaxFilesize 15M config setprop php MaxExecutionTime 180
expand-template /etc/php.ini
service httpd-e-smith restart
config show php
php=service AllowUrlFopen=Off MaxExecutionTime=180 MemoryLimit=256M PostMaxSize=100M UploadMaxFilesize=15M status=enabled
Make sure the directory is at least www:shared
Run setup and follow the instructions.
Usage
Admin
Login to the admin page
If you installed direct to your Primary ibay:
https://{yourserver.com}/zp-core/admin.php
Add in required plugins - note the more you install the more likely things will break !
If you have installed ImageMagick then enable it in Options, Images.
General
There are two types of album. Standard and Dynamic.
Standard allows uploads via the web interface
Dynamic allows uploads via ftp to a directory and the system will automatically manage them
Notes
Install letsencrypt and make the site https only
I could not seem to get the mod rewrite to work correctly