Zenphoto is a free and open-source software for managing photo galleries. In this tutorial, we will guide you through the process of installing Zenphoto on your Elementary OS Latest machine.
Before we begin, make sure your system is up to date by running the following commands in your terminal:
sudo apt-get update
sudo apt-get upgrade
Zenphoto requires a LAMP (Linux, Apache, MySQL, and PHP) stack to be installed on your system. To install the stack, run the following command:
sudo apt-get install lamp-server^
During the installation process, you will be prompted to enter a password for the MySQL root user.
Visit the Zenphoto website https://www.zenphoto.org/ and download the latest release of Zenphoto. You can download it directly to your home directory by using the following command:
wget https://github.com/zenphoto/zenphoto/archive/2.7.3.zip
Once downloaded, extract the file:
unzip 2.7.3.zip
And move the extracted folder to the Apache document root directory:
sudo mv zenphoto-2.7.3 /var/www/html/zenphoto
Next, grant write permissions to the logs and cache folders:
sudo chmod -R 777 /var/www/html/zenphoto/zp-data
Create a MySQL user and database for Zenphoto:
CREATE DATABASE zenphoto_db;
CREATE USER 'zenphoto_user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON zenphoto_db.* TO 'zenphoto_user'@'localhost';
FLUSH PRIVILEGES;
Copy the zenphoto.cfg.php-dist
file to zenphoto.cfg.php
:
cd /var/www/html/zenphoto
cp zp-data/zenphoto.cfg.php-dist zp-data/zenphoto.cfg.php
Edit the zenphoto.cfg.php
file and update the following settings:
$conf['mysql_user'] = 'zenphoto_user';
$conf['mysql_password'] = 'password';
$conf['mysql_db'] = 'zenphoto_db';
Restart the Apache server:
sudo systemctl restart apache2
You can now access Zenphoto by navigating to http://localhost/zenphoto
in your web browser.
Congratulations! You have successfully installed Zenphoto on your Elementary OS Latest machine. You can now customize and manage your photo galleries using Zenphoto.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!