• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to install ZenPhoto Gallery CMS on CentOS 7 using LEMP

{{postValue.id}}

To install ZenPhoto Gallery CMS on CentOS 7 using LEMP

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 CentOS 7 using LEMP.

Pre-Requisite

LEMP setup

-Nginx

-MariaDB

-PHP 7

Installation procedure

To proceed with the installation procedure, go to its official website and get the package link for downloading it using wget command followed by the download link.

[root@linuxhelp ~]# cd /opt/ & &  wget https://github.com/zenphoto/zenphoto/archive/zenphoto-1.4.9.zip
--2017-09-13 14:30:17--  https://github.com/zenphoto/zenphoto/archive/zenphoto-1.4.9.zip
Resolving github.com (github.com)... 192.30.255.113, 192.30.255.112
Connecting to github.com (github.com)|192.30.255.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/zenphoto/zenphoto/zip/zenphoto-1.4.9 [following]
--2017-09-13 14:30:18--  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  1.02MB/s   in 15s    
2017-09-13 14:30:35 (660 KB/s) - ‘ zenphoto-1.4.9.zip’  saved [10011494]

Extract the downloaded package using unzip command.

[root@linuxhelp ~]# unzip zenphoto-1.4.11.zip  -d /usr/share/nginx/html/

Move into the Nginx HTML location and rename the extracted folder.

[root@linuxhelp ~]# cd /usr/share/nginx/html/
[root@linuxhelp html]# mv zenphoto-zenphoto-1.4.11/  zenphoto

Change the owner permission and file execution permission by executing the set of following commands.

[root@linuxhelp html]# chown -R nginx:nginx /usr/share/nginx/html/zenphoto/
[root@linuxhelp html]# chmod -R 775 /usr/share/nginx/html/zenphoto/

Open your php-fpm configuration file and edit the following changes in the file. Save and exit the file.

[root@linuxhelp]# vim /etc/php-fpm.d/www.conf
cgi.fix_pathinfo=0
listen = /run/php-fpm/php-fpm.sock
listen.owner = nginx
listen.group = nginx
user = nginx
group = nginx

Start your php-fpm service by running the following command.

[root@linuxhelp ~]# systemctl start php-fpm

Change the owner permission as follows.

[root@linuxhelp ~]# chown nginx:nginx /run/php-fpm/php-fpm.sock

Restart your php-fpm service by executing the following command.

[root@linuxhelp ~]# systemctl restart php-fpm

Next open your Nginx configuration file and enter the following contents in the file. Save and exit the file.

[root@linuxhelp ~]# vim /etec/nginx/nginx.conf

server {
        listen       80 default_server 
        listen       [::]:80 default_server 
        server_name  192.168.7.194 
        root         /usr/share/nginx/html/zenphoto 
        # Load configuration files for the default server block.
        include /etc/nginx/default.d/*.conf 

        index   index.php 
        location ~ \.php$ {
        #try_files $uri =404 
        fastcgi_pass unix:/run/php-fpm/php-fpm.sock 
        fastcgi_index index.php 
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name 
        include fastcgi_params 
        }
    }

Restart your Nginx service

[root@linuxhelp ~]# systemctl restart nginx

Switch over to your browser and enter http://192.168.7.194/zenphoto URL and the installation wizard appears on the screen.
browser

Enter the required details to create a database for Zenphoto and save the changes.
database details
database created

The installation is in progress, the user may have to wait for sometime.
installation progress

Enter the required details to create admin username and password.
admin details

After creating the admin credentials, the login page of Zenphoto appears on the screen. Enter the required details and login.
admin login

The dashboard of Zenphoto appears on the screen.

dashboard

This tutorial explains the installation procedure of Zenphoto on CentOS 7 using LEMP is done without any glitches.

Tags:
grayson
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

Wanna I know the Conditions to enter the showcase gallery?

A

If you want to let us know about your site or would like it to be featured on our Zenphoto gallery showcase http://forum.zenphoto.org/categories/showcase please post a link here.

Q

Info regarding accidentally blocked accounts?

A

We get a lot of spam each day so we have a spam filter active. Sadly this is sometimes a bit overactive and may accidentally block user accounts. If you are affected by this, please contact

Q

Give me the Alternative for Zenphoto?

A

here I have to give some of the MediaGoblin, Piwigo, Koken.me, Lychee, ipfs.pics, etc.,

Q

What is the ZenPhoto Gallery?

A

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, filmmakers, and musicians.

Q

What is stable PPA for ZenPhoto Gallery?

A

The stable PPA use for SMPlayer is "apt-get install smplayer smplayer-themes"

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Ganesh Konka ?
Zentya 6.1 http proxy configuration

please send link for creating zentyal 6.1 for http proxy and firewall as gateway.

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.