How VPS - How to use/setup VPS
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
How VPS - How to use/setup VPS
No Result
View All Result
Home Operating System Linux

Install Piwigo on the One-Click LEMP Application

How VPS by How VPS
January 1, 2020
in Linux
0
0
SHARES
25
VIEWS
Share on FacebookShare on Twitter

Contents

  1. Introduction
  2. Prerequisites
  3. Step one: Create a database
  4. Step two: Download the Piwigo NetInstall script
  5. Step three: Configure and install Piwigo from your browser
    1. Basic configuration
    2. Database configuration
    3. Administration configuration
  6. Want to contribute?


Introduction

Piwigo is a popular open-source photo gallery software. In this article, I will show you how to install Piwigo on a Vultr server based on the One-Click LEMP application.

Prerequisites

  • Deploy a One-Click LEMP Vultr app.
  • Login to the app VPS over SSH as root (otherwise you may use sudo).

Step one: Create a database

Display the MySQL root password on your terminal.

cat /root/.my.cnf

Use the root password to log into the MySQL console.

mysql -u root -p

Create and configure a database in MySQL with the following commands. Remember to replace the database name piwigo, the user name myusername, and the password mypassword with your own ones.

create database piwigo;
create user 'myusername'@'localhost' identified by 'mypassword';
grant all privileges on piwigo.* to 'myusername'@'localhost' identified by 'mypassword' with grant option;
flush privileges;
exit;

Step two: Download the Piwigo NetInstall script

Piwigo can be installed with a single NetInstall script or a full archive package. As a matter of convenience, we will use the former.

First, you need to delete the default files that were created by Vultr.

cd /usr/share/nginx/html/
rm -f background.jpg index.php logo.png

Visit the Piwigo offical website from your browser, click the button Download NetInstall to download the script named piwigo-netinstall.php to your local machine. Then, upload it to the directory /usr/share/nginx/html/ on your Vultr VPS with your SCP client of choice.

Step three: Configure and install Piwigo from your browser

Before the installation, you need to add write permissions to the directory /usr/share/nginx/html/, or you will encounter a permission error.

chmod -R a+w /usr/share/nginx/html/

Visit http://[SERVER_IP]/piwigo-netinstall.php in your browser. Substitute the [SERVER_IP] with the IP address of your VPS. Follow the on-screen instructions to configure Piwigo.

On the page of “Welcome to NetInstall”, you can choose the language and install destination.

For this article, we will choose to install Piwigo in the root directory. Delete “piwigo” from the textbox. Alternatively, you could specify another destination.

Click the button “Retrieve and unzip Piwigo”.

On the page of “Congratulations!”, click “Install Piwigo now”.

On the page of “Configurations”, you need to input parameters as specified below.


Basic configuration

Pick a language as you wish.

Database configuration

Host: localhost
User: myusername
Password: mypassword
Database name: piwigo
Database table prefix: piwigo_

Remember to replace the database user myusername, the database password mypassword, the database name piwigo, and the database table prefix piwigo_ with your own ones. Do not modify the “Host” field.

Administration configuration

Specify administrator’s username, password and email address.


Click “Start installation”.

On the page of “Congratulations!”, click “Visit the gallery”.

You may see a warning message.

Warning: strftime(): It is not safe to rely on the system's timezone settings. 

To fix the warning, you need to modify the php.ini file.

vi /etc/php.ini

Locate the following line.

;date.timezone = 

Assuming that your VPS has been deployed at “Los Angeles, California”, you need to update the line as follows.

date.timezone = America/Los_Angeles

If your VPS will be deployed at another location, you can find the appropriate value from https://php.net/manual/en/timezones.php.

Save and quit vi.

:wq

To put these changes into effect, you need to restart the web server:

service nginx restart && service php-fpm restart

That’s it. You have installed Piwigo onto your Vultr VPS. Visit http://[SERVER_IP]/ to start to use it.

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article
How VPS

How VPS

Related Posts

How to Install Apache Tomcat 8 on CentOS 7
Linux

How to Install Apache Tomcat 8 on CentOS 7?

February 11, 2020
Linux

Setup IonCube Loader on Ubuntu 14

January 1, 2020
Linux

Converting from MySQL to MariaDB on Ubuntu

January 1, 2020
Next Post

Terraria Server with TShock on Linux

How to Setup Gunicorn to Serve Python Web Applications

How to Install and Use ArangoDB on Ubuntu 16.04

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Follow Us

  • 121 Followers
  • 87.2k Followers

Recommended

How To Set up a VSFTPD Server on a CentOS 7 VPS or Dedicated Server

How To Set up a VSFTPD Server on a CentOS 7 VPS or Dedicated Server

4 years ago

How to Auto Execute Commands/Scripts During Reboot or Startup

4 years ago

Installing Netdata on Debian 9

3 years ago

3 Ways to Find Out Which Process Listening on a Particular Port

4 years ago

Instagram

    Please install/update and activate JNews Instagram plugin.

Categories

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel

Topics

Apache Web Server Bluehost Review 2019 Bluehost Review 2020 Bluehost Review 2021 Centmin Mod CentminMod centos install htop fsck htop install HTTP DoS attack Install Snort on an Ubuntu install Zabbix on CentOS install Zabbix on CentOS 7 Linux Commands linux guide linux install htop linux vps setup guide MariaDB MariaDB Error Mysql mysqld error optimize MariaDB optimize Mysql snort Ubuntu
No Result
View All Result

Highlights

Top Free Web Hosting Control Panels To Manage VPS/Dedicated Servers

Webmin Reviews

Virtualmin Reviews

CentOS Web Panel Reviews

Ajenti Reviews

ISPConfig Reviews

Trending

Failed to download metadata for repo 'appstream' on Centos 8
CentOS

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

by How VPS
February 25, 2022
0

I tried to update some extensions by use yum on centOs which I specified in Dockerfile. After...

How to Fix MySQL Error "Plugin 'InnoDB' registration as a STORAGE ENGINE failed"?

How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”?

November 17, 2020
How to optimize Mysql or MariaDB

How to optimize Mysql or MariaDB

November 3, 2020
Top Free Web Hosting Control Panels To Manage VPS/Dedicated Servers

Top Free Web Hosting Control Panels To Manage VPS/Dedicated Servers

February 17, 2020
Webmin Reviews

Webmin Reviews

February 17, 2020
How VPS – How to use/setup VPS

We bring you the best Premium WordPress Themes that perfect for news, magazine, personal blog, etc. Visit our landing page to see all features & demos.
LEARN MORE »

Recent News

  • How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8 February 25, 2022
  • How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”? November 17, 2020
  • How to optimize Mysql or MariaDB November 3, 2020

Categories

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel

[mc4wp_form]

© 2018 JNews - City News Magazine WordPress theme. All rights belong to their respective owners.
JNews is a top selling 2018 WordPress News, Blog, Newspaper & Magazine Theme.

No Result
View All Result
  • Home

© 2023 JNews - Premium WordPress news & magazine theme by Jegtheme.