How to Install Zenphoto on Manjaro

Zenphoto is a free and open source content management system for online image galleries. In this tutorial, we will guide you through the steps to install Zenphoto on Manjaro.

Prerequisites

Before we start, please make sure that you have the following:

Installing Zenphoto

Follow the steps below to install Zenphoto on your Manjaro machine:

  1. Open the terminal by pressing Ctrl+ Alt+ T.
  2. To ensure that our system is up to date, run the following command:
sudo pacman -Syu
  1. Once the system update is complete, we can now proceed to install Apache web server, PHP and the required PHP modules. Run the following command:
sudo pacman -S apache php php-apache mariadb
  1. After the installation is complete, start the Apache and MariaDB services by running the following commands:
sudo systemctl start httpd
sudo systemctl start mariadb
  1. The next step is to create a database for Zenphoto. Run the following command to access the MySQL prompt:
sudo mysql -u root -p
  1. Once you are in the MySQL prompt, create a new database called zenphoto:
CREATE DATABASE zenphoto;
  1. Next, create a new MySQL user called zenphoto with a password:
GRANT ALL PRIVILEGES ON zenphoto.* TO 'zenphoto'@'localhost' IDENTIFIED BY 'strongpassword';
  1. Exit the MySQL prompt by typing exit;.

  2. Download Zenphoto by running the following command:

wget https://github.com/zenphoto/zenphoto/releases/download/1.5.7/zenphoto_1.5.7e.tar.gz
  1. Extract the files from the downloaded archive by running:
tar xzf zenphoto_1.5.7e.tar.gz
  1. Move the Zenphoto files to the Apache document root directory by running:
sudo mv zenphoto /srv/http/
  1. Change the ownership of the Zenphoto directory to the Apache user by running:
sudo chown -R http:http /srv/http/zenphoto
  1. Open your web browser and navigate to http://localhost/zenphoto. You should see the Zenphoto setup page.

  2. Follow the on-screen instructions to complete the Zenphoto setup. When prompted for the database settings, use the following details:

  1. Once the setup is complete, you can now log in to the Zenphoto admin dashboard by navigating to http://localhost/zenphoto/zp-core/admin.php and using the username and password you set during the setup.

Congratulations! You have successfully installed Zenphoto on your Manjaro machine. You can now start creating your own online image galleries.

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!