How to install ZenPhoto Gallery CMS on CentOS 7 using LEMP
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.
Enter the required details to create a database for Zenphoto and save the changes.
The installation is in progress, the user may have to wait for sometime.
Enter the required details to create admin username and password.
After creating the admin credentials, the login page of Zenphoto appears on the screen. Enter the required details and login.
The dashboard of Zenphoto appears on the screen.
This tutorial explains the installation procedure of Zenphoto on CentOS 7 using LEMP is done without any glitches.
Comments ( 0 )
No comments available