{"id":13151,"date":"2019-04-01T03:35:27","date_gmt":"2019-04-01T03:35:27","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=13151"},"modified":"2019-04-01T03:35:27","modified_gmt":"2019-04-01T03:35:27","slug":"piwigo-create-your-own-photo-gallery-website","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/04\/01\/piwigo-create-your-own-photo-gallery-website\/","title":{"rendered":"Piwigo \u2013 Create Your Own Photo Gallery Website"},"content":{"rendered":"<p><strong>Piwigo<\/strong>\u00a0is an open source project which allows you to create your own photo gallery on the web and upload photos and create new albums. The platform includes some powerful features built-in, such as albums, tags, watermark, geolocation, calendars, system notifications, access control levels, themes and statistics.<\/p>\n<p><strong>Piwigo<\/strong>\u00a0has a huge amount of available plugins (over\u00a0<strong>200<\/strong>) and a great collection of themes. It is also translated in more than 50 languages. Its core functions are written in\u00a0<strong>PHP<\/strong>\u00a0programming language and requires a RDBMS database backend, such as\u00a0<strong>MySQL<\/strong>\u00a0database.<\/p>\n<div id=\"attachment_29392\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Piwigo-Photo-Gallery.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29392\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Piwigo-Photo-Gallery.png\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Piwigo-Photo-Gallery.png 800w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Piwigo-Photo-Gallery-768x455.png 768w\" alt=\"Piwigo Photo Gallery\" width=\"800\" height=\"474\" aria-describedby=\"caption-attachment-29392\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-29392\" class=\"wp-caption-text\">Piwigo Photo Gallery<\/p>\n<\/div>\n<p>This fact makes it easy to deploy\u00a0<strong>Piwigo<\/strong>\u00a0on top of a\u00a0<strong>LAMP<\/strong>\u00a0(<strong>Linux<\/strong>,\u00a0<strong>Apache<\/strong>,\u00a0<strong>MySQL<\/strong>\u00a0and\u00a0<strong>PHP<\/strong>) stack installed on your own server, VPS or on shared hosted environments.<\/p>\n<p>An online demo is available for you to try before installing\u00a0<strong>Piwigo<\/strong>\u00a0on CentOS system.<\/p>\n<pre><strong>Demo URL<\/strong>: http:\/\/piwigo.org\/demo\/\r\n<\/pre>\n<h4>Requirements:<\/h4>\n<ol>\n<li>A dedicated VPS with a registered domain name<\/li>\n<li><a href=\"https:\/\/www.tecmint.com\/centos-7-3-installation-guide\/\" target=\"_blank\" rel=\"noopener\">A CentOS 7 Server with Minimal Install<\/a><\/li>\n<li><a href=\"https:\/\/www.tecmint.com\/install-lamp-in-centos-7\/\" target=\"_blank\" rel=\"noopener\">LAMP stack installed in CentOS 7<\/a><\/li>\n<\/ol>\n<p><strong>Piwigo<\/strong>\u00a0is an open source project which can be deployed on a VPS server of your choice.<\/p>\n<div id=\"exam_announcement\">You can get a 2GB RAM VPS from\u00a0<a href=\"https:\/\/www.linode.com\/?r=64ebb9f723fed8b32fda84b6594006df08ad24b6\" target=\"_blank\" rel=\"nofollow noopener\">Linode<\/a>\u00a0for\u00a0<strong>$10<\/strong>, but it\u2019s unmanaged. If you want a Managed VPS, then use our new\u00a0<a href=\"https:\/\/www.bluehost.com\/track\/tecmint\/?page=products\/vps\" target=\"_blank\" rel=\"nofollow noopener\">BlueHost Promotion Offer<\/a>, you will get upto\u00a0<strong>40%<\/strong>\u00a0OFF on hosting with one\u00a0<strong>Free Domain<\/strong>\u00a0for Life. If you get a Managed VPS, they will probably install Piwigo for you.<\/div>\n<p>In this guide we\u2019ll learn how to install and configure\u00a0<strong>Piwigo<\/strong>\u00a0image gallery software on top of a\u00a0<strong>LAMP<\/strong>\u00a0stack in a\u00a0<strong>CentOS 7 VPS<\/strong>\u00a0server.<\/p>\n<h3>Setting Up Pre-requirements for Piwigo<\/h3>\n<p><strong>1.<\/strong>\u00a0After you\u2019ve installed\u00a0<strong>LAMP<\/strong>\u00a0stack on your VPS by following the guide in the article description, make sure you also install the below\u00a0<strong>PHP<\/strong>\u00a0extensions required by\u00a0<strong>Piwigo<\/strong>\u00a0to properly run on your server.<\/p>\n<pre># yum install php php-xml php-mbstring php-gd\r\n<\/pre>\n<p><strong>2.<\/strong>\u00a0Next, install the following command line utilities on your VPS server in order to download and extract\u00a0<strong>Piwigo<\/strong>archive sources in your system.<\/p>\n<pre># yum install unzip zip wget \r\n<\/pre>\n<p><strong>3.<\/strong>\u00a0Next, log in to MySQL database and execute the below command in order to create\u00a0<strong>Piwigo<\/strong>\u00a0database and the user which will be used to manage the database. Replace the database name and credentials used in this tutorial with your own settings.<\/p>\n<pre># mysql -u root -p\r\n<strong>MariaDB [(none)]&gt;<\/strong> create database <strong>piwigo<\/strong>;\r\n<strong>MariaDB [(none)]&gt;<\/strong>grant all privileges on piwigo.* to '<strong>piwigouser<\/strong>'@'localhost' identified by '<strong>pass123<\/strong>';\r\n<strong>MariaDB [(none)]&gt;<\/strong>flush privileges;\r\n<strong>MariaDB [(none)]&gt;<\/strong>exit\r\n<\/pre>\n<p><strong>4.<\/strong>\u00a0Next, open end edit PHP configuration file and set the correct\u00a0<strong>timezone<\/strong>\u00a0settings for your server. Use\u00a0<a href=\"https:\/\/php.net\/manual\/en\/timezones.php\" target=\"_blank\" rel=\"nofollow noopener\">PHP docs<\/a>\u00a0to get the timezone settings list.<\/p>\n<pre># nano \/etc\/php.ini\r\n<\/pre>\n<p>Locate and Insert the below line after\u00a0<code>[Date]<\/code>\u00a0statement.<\/p>\n<pre>date.timezone = Europe\/Your_city\r\n<\/pre>\n<div id=\"attachment_29377\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Set-Timezone-in-PHP-Configuration.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29377\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Set-Timezone-in-PHP-Configuration.png\" alt=\"Set Timezone in PHP Configuration\" width=\"692\" height=\"591\" aria-describedby=\"caption-attachment-29377\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-29377\" class=\"wp-caption-text\">Set Timezone in PHP Configuration<\/p>\n<\/div>\n<p>Save and close the file and restart\u00a0<strong>Apache HTTP<\/strong>\u00a0server to apply all changes, by issuing the below command.<\/p>\n<pre># systemctl restart httpd\r\n<\/pre>\n<p><strong>5.<\/strong>\u00a0Next, completely disable\u00a0<strong>SELinux<\/strong>\u00a0in your CentOS system by executing the below commands. Use\u00a0<a href=\"https:\/\/www.tecmint.com\/13-basic-cat-command-examples-in-linux\/\" target=\"_blank\" rel=\"noopener\">cat command<\/a>\u00a0to show Selinux configuration file.<\/p>\n<pre># cat \/etc\/selinux\/config \r\n# sed -i.backup 's\/SELINUX=enforcing\/SELINUX=disabled\/' \/etc\/selinux\/config \r\n# cat \/etc\/selinux\/config \r\n# setenforce 0\r\n# getenforce\r\n<\/pre>\n<div id=\"attachment_29378\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Disable-SELinux-in-CentOS-7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29378\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Disable-SELinux-in-CentOS-7.png\" sizes=\"auto, (max-width: 842px) 100vw, 842px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Disable-SELinux-in-CentOS-7.png 842w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Disable-SELinux-in-CentOS-7-768x584.png 768w\" alt=\"Disable SELinux in CentOS 7\" width=\"842\" height=\"640\" aria-describedby=\"caption-attachment-29378\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-29378\" class=\"wp-caption-text\">Disable SELinux in CentOS 7<\/p>\n<\/div>\n<h3>Install Piwigo in CentOS 7<\/h3>\n<p><strong>6.<\/strong>\u00a0On the next step, visit\u00a0<a href=\"http:\/\/piwigo.org\/get-piwigo\" target=\"_blank\" rel=\"nofollow noopener\">Piwigo official download<\/a>\u00a0page and grab the latest installer zip sources on your system using\u00a0<a href=\"https:\/\/www.tecmint.com\/10-wget-command-examples-in-linux\/\" target=\"_blank\" rel=\"noopener\">wget utility<\/a>\u00a0by issuing the below command. After download completes, extract Piwigo zip archive in your current working directory.<\/p>\n<pre># wget http:\/\/piwigo.org\/download\/dlcounter.php?code=latest -O piwigo.zip\r\n# ls \r\n# unzip piwigo.zip \r\n<\/pre>\n<div id=\"attachment_29380\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Download-Piwigo-Software.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29380\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Download-Piwigo-Software.png\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Download-Piwigo-Software.png 940w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Download-Piwigo-Software-768x210.png 768w\" alt=\"Download Piwigo Software\" width=\"940\" height=\"257\" aria-describedby=\"caption-attachment-29380\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-29380\" class=\"wp-caption-text\">Download Piwigo Software<\/p>\n<\/div>\n<p><strong>7.<\/strong>\u00a0After you\u2019ve extracted the zip archive, copy\u00a0<strong>Piwigo<\/strong>\u00a0sources files into your domain webroot path by issuing the below command. Afterwards, grant\u00a0<strong>Apache<\/strong>\u00a0account full privileges to\u00a0<strong>webroot<\/strong>\u00a0files and list the content of your web server document root path.<\/p>\n<pre># cp -rf piwigo\/* \/var\/www\/html\/\r\n# chown -R apache:apache \/var\/www\/html\/\r\n# ls -l \/var\/www\/html\/\r\n<\/pre>\n<div id=\"attachment_29381\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Setting-Up-Piwigo-Under-Apache.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29381\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Setting-Up-Piwigo-Under-Apache.png\" alt=\"Setting Up Piwigo Under Apache\" width=\"649\" height=\"725\" aria-describedby=\"caption-attachment-29381\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-29381\" class=\"wp-caption-text\">Setting Up Piwigo Under Apache<\/p>\n<\/div>\n<p><strong>8.<\/strong>\u00a0Next, change the webroot file permissions for\u00a0<strong>Piwigo<\/strong>\u00a0installed files and grant\u00a0<code>_data<\/code>\u00a0directory full write permissions for other system users, by issuing the below commands.<\/p>\n<pre># chmod -R 755 \/var\/www\/html\/\r\n# chmod -R 777 \/var\/www\/html\/_data\/\r\n# ls -al \/var\/www\/html\/\r\n<\/pre>\n<div id=\"attachment_29382\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Setting-Permissions-on-Piwigo.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29382\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Setting-Permissions-on-Piwigo.png\" alt=\"Setting Permissions on Piwigo\" width=\"713\" height=\"757\" aria-describedby=\"caption-attachment-29382\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-29382\" class=\"wp-caption-text\">Setting Permissions on Piwigo<\/p>\n<\/div>\n<p><strong>9.<\/strong>\u00a0Now, start the installation process of\u00a0<strong>Piwigo<\/strong>. Open a browser and navigate to your server IP address or domain name.<\/p>\n<pre>http:\/\/192.168.1.164\r\nOR\r\nhttp:\/\/your-domain.com\r\n<\/pre>\n<p>On the first installation screen, select Piwigo\u00a0<strong>language<\/strong>\u00a0and insert MySQL database settings: host, user, password and table prefix. Also, add a Piwigo admin account with a strong password and the email address of the admin account. Finally, hit on\u00a0<strong>Start installation<\/strong>\u00a0button to install Piwigo.<\/p>\n<div id=\"attachment_29383\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Piwigo-Installation-Configuration.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29383\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Piwigo-Installation-Configuration.png\" sizes=\"auto, (max-width: 1122px) 100vw, 1122px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Piwigo-Installation-Configuration.png 1122w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Piwigo-Installation-Configuration-768x583.png 768w\" alt=\"Piwigo Installation Configuration\" width=\"1122\" height=\"851\" aria-describedby=\"caption-attachment-29383\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-29383\" class=\"wp-caption-text\">Piwigo Installation Configuration<\/p>\n<\/div>\n<p><strong>10.<\/strong>\u00a0After the installation has been completed, hit on\u00a0<strong>Visit the gallery<\/strong>\u00a0button in order to be redirected to Piwigo admin panel.<\/p>\n<div id=\"attachment_29384\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Piwigo-Installation-Completed.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29384\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Piwigo-Installation-Completed.png\" sizes=\"auto, (max-width: 1122px) 100vw, 1122px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Piwigo-Installation-Completed.png 1122w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Piwigo-Installation-Completed-768x583.png 768w\" alt=\"Piwigo Installation Completed\" width=\"1122\" height=\"851\" aria-describedby=\"caption-attachment-29384\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-29384\" class=\"wp-caption-text\">Piwigo Installation Completed<\/p>\n<\/div>\n<p><strong>11.<\/strong>\u00a0On the next screen, because no image has been uploaded to the server yet, hit on\u00a0<strong>Start the Tour<\/strong>\u00a0button in order to display the software guidance window and review all step required to upload your photos and use Piwigo image gallery.<\/p>\n<div id=\"attachment_29385\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Start-Piwigo-Tour.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29385\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Start-Piwigo-Tour.png\" sizes=\"auto, (max-width: 1122px) 100vw, 1122px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Start-Piwigo-Tour.png 1122w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Start-Piwigo-Tour-768x583.png 768w\" alt=\"Start Piwigo Tour\" width=\"1122\" height=\"851\" aria-describedby=\"caption-attachment-29385\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-29385\" class=\"wp-caption-text\">Start Piwigo Tour<\/p>\n<\/div>\n<div id=\"attachment_29386\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Piwigo-Admin-Dashboard.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29386\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Piwigo-Admin-Dashboard.png\" sizes=\"auto, (max-width: 1122px) 100vw, 1122px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Piwigo-Admin-Dashboard.png 1122w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Piwigo-Admin-Dashboard-768x583.png 768w\" alt=\"Piwigo Admin Dashboard\" width=\"1122\" height=\"851\" aria-describedby=\"caption-attachment-29386\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-29386\" class=\"wp-caption-text\">Piwigo Admin Dashboard<\/p>\n<\/div>\n<p>That\u2019s all! Now you can start creating image galleries and upload your image files to the server using one of the most flexible open source solutions to host your photos.<\/p>\n<div id=\"attachment_29387\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Piwigo-Image-Gallery.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29387\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Piwigo-Image-Gallery.png\" sizes=\"auto, (max-width: 1122px) 100vw, 1122px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Piwigo-Image-Gallery.png 1122w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Piwigo-Image-Gallery-768x583.png 768w\" alt=\"Piwigo Image Gallery\" width=\"1122\" height=\"851\" aria-describedby=\"caption-attachment-29387\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-29387\" class=\"wp-caption-text\">Piwigo Image Gallery<\/p>\n<p><a style=\"font-size: 1rem;\" href=\"https:\/\/www.tecmint.com\/install-piwigo-photo-gallery-in-centos\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Piwigo\u00a0is an open source project which allows you to create your own photo gallery on the web and upload photos and create new albums. The platform includes some powerful features built-in, such as albums, tags, watermark, geolocation, calendars, system notifications, access control levels, themes and statistics. Piwigo\u00a0has a huge amount of available plugins (over\u00a0200) and &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/04\/01\/piwigo-create-your-own-photo-gallery-website\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Piwigo \u2013 Create Your Own Photo Gallery Website&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-13151","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13151","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=13151"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13151\/revisions"}],"predecessor-version":[{"id":13152,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13151\/revisions\/13152"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=13151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=13151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=13151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}