How to install ZenPhoto Gallery on OpenSUSE Leap 42.3

To install ZenPhoto Gallery on OpenSUSE Leap 42.3

ZenPhoto is free and open-source standalone content management system (CMS) for creating gallery focused websites. ZenPhoto is feature-rich PHP based application and it has everything you need to manage your own photo galleries. Zenpage CMS plugin provides a fully integrated news section (blog) and custom pages to run entire websites. This makes ZenPhoto the ideal CMS for personal websites of illustrators, artists, designers, photographers, film makers and musicians. This tutorial covers the installation procedure of ZenPhoto Gallery CMS on OpenSUSE Leap 42.3.

Pre- Requisite
LAMP Stack (Use the following link, to know about the installation of LAMP click the following link, https://www.linuxhelp.com/how-to-install-and-configure-lamp-in-open-suse-leap/)
- Apache
- Mariadb
- Php7 along with the dependencies (php php-openssl php-mysql php-mbstring php-dom php-json php-session php-ctype php-tokenizer php-simplexml php-pcre php-zip php-pdo php-curl php-iconv php-xml)

Installation procedure

To proceed with the installation procedure, download the latest stable version using wget command followed by the download link.

linuxhelp:~ # wget https://github.com/zenphoto/zenphoto/archive/zenphoto-1.4.9.zip
--2017-11-02 10:47:20--  https://github.com/zenphoto/zenphoto/archive/zenphoto-1.4.9.zip
Resolving github.com (github.com)... 192.30.255.112, 192.30.255.113
Connecting to github.com (github.com)|192.30.255.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/zenphoto/zenphoto/zip/zenphoto-1.4.9 [following]
--2017-11-02 10:47:21--  https://codeload.github.com/zenphoto/zenphoto/zip/zenphoto-1.4.9
Resolving codeload.github.com (codeload.github.com)... 192.30.255.121, 192.30.255.120
Connecting to codeload.github.com (codeload.github.com)|192.30.255.121|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘ zenphoto-1.4.9.zip’ 

    [                                                                                                                                    < =>                                    ] 10,011,494   421KB/s   in 31s    

2017-11-02 10:47:55 (314 KB/s) - ‘ zenphoto-1.4.9.zip’  saved [10011494]

Extract the downloaded package in Apache document root by running the unzip command.

linuxhelp:~ # unzip zenphoto-1.4.9.zip -d /srv/www/htdocs/
Archive:  zenphoto-1.4.9.zip
58543e70057bb8818d126ebee8f8070451b13ef3
   creating: /srv/www/htdocs/zenphoto-zenphoto-1.4.9/
  inflating: /srv/www/htdocs/zenphoto-zenphoto-1.4.9/.gitattributes  
  inflating: /srv/www/htdocs/zenphoto-zenphoto-1.4.9/.gitignore  
  inflating: /srv/www/htdocs/zenphoto-zenphoto-1.4.9/LICENSE  
  inflating: /srv/www/htdocs/zenphoto-zenphoto-1.4.9/README.md  
   creating: /srv/www/htdocs/zenphoto-zenphoto-1.4.9/albums/
 extracting: /srv/www/htdocs/zenphoto-zenphoto-1.4.9/albums/.gitignore  
  inflating: /srv/www/htdocs/zenphoto-zenphoto-1.4.9/contributing.md  
  inflating: /srv/www/htdocs/zenphoto-zenphoto-1.4.9/index.php  
   creating: /srv/www/htdocs/zenphoto-zenphoto-1.4.9/plugins/
.
.
.
.
.
inflating: /srv/www/htdocs/zenphoto-zenphoto-1.4.9/zp-core/zp-extensions/zenphotoDonate.php  
  inflating: /srv/www/htdocs/zenphoto-zenphoto-1.4.9/zp-core/zp-extensions/zenphoto_news.php  
   creating: /srv/www/htdocs/zenphoto-zenphoto-1.4.9/zp-core/zp-extensions/zenphoto_news/
  inflating: /srv/www/htdocs/zenphoto-zenphoto-1.4.9/zp-core/zp-extensions/zenphoto_news/rsslib.php  
  inflating: /srv/www/htdocs/zenphoto-zenphoto-1.4.9/zp-core/zp-extensions/zenphoto_sendmail.php  
  inflating: /srv/www/htdocs/zenphoto-zenphoto-1.4.9/zp-core/zp-extensions/zpCaptcha.php  
   creating: /srv/www/htdocs/zenphoto-zenphoto-1.4.9/zp-core/zp-extensions/zpCaptcha/
  inflating: /srv/www/htdocs/zenphoto-zenphoto-1.4.9/zp-core/zp-extensions/zpCaptcha/c.php  
   creating: /srv/www/htdocs/zenphoto-zenphoto-1.4.9/zp-data/
 extracting: /srv/www/htdocs/zenphoto-zenphoto-1.4.9/zp-data/.gitignore  

Move to the Apache document root by running the following cd command.

linuxhelp:~ # cd /srv/www/htdocs/

Rename the following package to any name the you desire by executing the following command.

linuxhelp:/srv/www/htdocs # mv zenphoto-zenphoto-1.4.9 zenphoto

Provide the Owner Permission and file execution Permission for the file.

linuxhelp:/srv/www/htdocs # chown -R wwwrun:www /srv/www/htdocs/
linuxhelp:/srv/www/htdocs # chmod -R 775 /srv/www/htdocs/

Create an Apache Configuration file named zen.conf and enter the following content in the file. Save and exit the file.

linuxhelp:/srv/www/htdocs # vim /etc/apache2/conf.d/zen.conf
< VirtualHost *:80> 
DocumentRoot " /srv/www/htdocs" 
ServerName www.linuxhelp1.com
< Directory " /srv/www/htdocs/" > 
DirectoryIndex index.php
Options FollowSymLinks
AllowOverride All
Require all granted
< /Directory> 
< /VirtualHost> 

Restart the Apache Service.

linuxhelp:/srv/www/htdocs #systemctl restart apache

Switch over to the browser and enter the URL as http://yourdomain/zenphoto. The installation setup of Zenphoto appears on the screen.

Enter the required details for creating a database and click save option.

The database and other configuration settings has been done and now click Go to complete the setup.

Enter the required details for creating an admin in Zenphoto.

Now login to Zenphoto by entering the admin credentials and click Log in.

The zenphoto is now open and running. You can choose to add an user to the website other than the admin and save the changes.

The dashboard of Zenphoto is displayed on the screen.

Thus we conclude the installation procedure of Zenphoto on OpenSUSE Leap 42.3.

FAQ
Q
What about the manage blog and pages in Zenphoto?
A
Custom pages management including nested subpages
Custom menu's
Drag & drop sorting of pages and categories
News section (blog) with nested categories
Q
What are the supported formats for videos in Zenphoto?
A
Videos: .mp4*, .m4a*, .flv*, .mov**, .3gp**, .ogv***, .webm***
Q
What are the main features of the ZenPhoto?
A
File system based: Upload files and folders via the administration or directly via FTP
Search engine with boolean expressions
Dynamic albums based on "saved searches"
Multifile upload.
Q
What are most required php modules in ZenPhoto?
A
php php-openssl php-mysql php-mbstring php-dom php-json php-session php-ctype
php-tokenizer php-simplexml php-pcre php-zip php-pdo php-curl php-iconv php-xml
Q
What are the supported formats for images in Zenphoto?
A
Images: .jpg, .gif, .png (generally all formats your server's graphics libary supports)