How to install Piwigo Photo gallery on OpenSUSE Leap 42.3

To install Piwigo Photo Gallery on OpenSUSE Leap 42.3

Piwigo is an open-source online photo gallery application written in PHP language and uses MySQL database for storage. It is highly customizable as anyone is allowed to modify it according to their use, besides that it has its extensions freely available. It also organizes the photos, allows privacy, generates multiple size photos, and contains statistics and management tools. In addition, albums can be created through folder/directory structure instead of creating them individually. It is also so simple to install Piwigio Photo Gallery on OpenSUSE Leap 42.3

Requirements
LAMP Stack
Apache Webserver
Mariadb (Create database for piwigo, user protected with password)
Php7

PHP Modules
zypper in php php-mysql php-gd php-mbstring php-common

Installing Piwigio

First of all, you need to get the latest stable version of Piwigo by fetching the link from its official website either as .zip or .tar format and download it using wget command in the following manner.

linuxhelp:~ # wget " http://piwigo.org/download/dlcounter.php?code=latest"  -O piwigo-latest.zip
--2017-11-29 11:54:15--  http://piwigo.org/download/dlcounter.php?code=latest
Resolving piwigo.org (piwigo.org)... 87.98.147.22
Connecting to piwigo.org (piwigo.org)|87.98.147.22|:80... connected.
HTTP request sent, awaiting response... 
200 OK
Length: 7794574 (7.4M) [application/zip]
Saving to: ‘ piwigo-latest.zip’ 

100%[===========================================================================================> ] 7,794,574   34.0MB/s   in 0.2s   

2017-11-29 11:54:42 (34.0 MB/s) - ‘ piwigo-latest.zip’  saved [7794574/7794574]

After that, you need to extract the downloaded package in apache document root location and for that, you need to run the following command.

linuxhelp:~ # unzip piwigo-latest.zip -d /srv/www/htdocs/
Archive:  piwigo-latest.zip
   creating: /srv/www/htdocs/piwigo/
  inflating: /srv/www/htdocs/piwigo/.gitignore  
   creating: /srv/www/htdocs/piwigo/_data/
 extracting: /srv/www/htdocs/piwigo/_data/dummy.txt  
  inflating: /srv/www/htdocs/piwigo/about.php  
  inflating: /srv/www/htdocs/piwigo/action.php  
   creating: /srv/www/htdocs/piwigo/admin/
.
.
.
.
inflating: /srv/www/htdocs/piwigo/tools/triggers_list.php  
  inflating: /srv/www/htdocs/piwigo/tools/ws.htm  
  inflating: /srv/www/htdocs/piwigo/upgrade.php  
  inflating: /srv/www/htdocs/piwigo/upgrade_feed.php  
   creating: /srv/www/htdocs/piwigo/upload/
  inflating: /srv/www/htdocs/piwigo/ws.php  

And then, move inside apache document root location to list and see the extracted files and folders.

linuxhelp:~ # cd /srv/www/htdocs/
linuxhelp:/srv/www/htdocs # ls -l
total 16
drwxrwxr-x  2 wwwrun www  4096 Oct  9 23:15 gif
-rwxrwxr-x  1 wwwrun www  2356 Mar 18  2017 info2html.css
drwxr-xr-x 15 root   root 4096 Oct  6 13:50 piwigo

Next, you need to provide appropriate owner and file execution permissions for your Apache document root location. Do that by running the following commands.

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

Next, you need to configure your Apache VirtualHost for Piwigo Photo Gallery by creating a new conf file

linuxhelp:/srv/www/htdocs # vim /etc/apache2/conf.d/piwigo.conf

And add the following lines it.

< 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> 

After making changes, restart your Apache service by running the following command.

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

Make sure you have enabled Apache service via firewall.

linuxhelp:/srv/www/htdocs # vim /etc/sysconfig/SuSEfirewall2
FW_CONFIGURATIONS_EXT=" apache" 

Finally switch to your browser and type your domain name. This prompts you to your installation wizard

Provide all the needed details such as Language, Database Configuration and Administration configuration and proceed further by clicking Start Installation.

After that, the installation is completed.

Next, you will get a page to open up your gallery for that click Start the Tour.

You will be taken to the dashboard of your Piwigo application to get an overall view of your site.

You can change the color of the Piwigo gallery.

With this, the installation of Piwigo comes to an end.

FAQ
Q
Can I host any photo?
A
No pornography, no nudity without private access, no illegal activities that would violate laws in the country you live in (such as explicit violence or historical revisionism).
Q
What happens at the end of the trial period?
A
At the end of the trial period, your account is suspended and kept for 3 months so that you can subscribe. As long as you do not decide to subscribe, no payment is required.
Q
What is Piwigo Photo gallery on OpenSUSE Leap?
A
Piwigo is an open-source online photo gallery application written in PHP language and uses MySQL database for storage. It is highly customizable as anyone is allowed to modify it according to their use, besides that it has its extensions freely available. It also organizes the photos, allows privacy, generates multiple size photos, and contains statistics and management tools.
Q
How to extract the downloaded package?
A
Run the following command:
# unzip piwigo-latest.zip -d /srv/www/htdocs/
Q
How to install Piwigo Photo gallery on OpenSUSE Leap?
A
Use the following command:
# wget " http://piwigo.org/download/dlcounter.php?code=latest" -O piwigo-latest.zip