How to Install Zenphoto on EndeavourOS Latest
Zenphoto is a self-hosted web gallery CMS (content management system) that allows users to manage and showcase their images and videos online. In this tutorial, we will guide you through the steps to install Zenphoto on EndeavourOS Latest.
Prerequisites
- A server with EndeavourOS Latest installed.
- Apache, PHP, and MySQL installed.
Step 1: Download Zenphoto
You can download the latest release of Zenphoto from the official website at https://www.zenphoto.org/download/. Choose the version that is compatible with your server and download the zip file.
wget https://www.zenphoto.org/dl/zenphoto-latest.zip
Step 2: Extract Zenphoto
After downloading the zip file, extract it to the document root folder of your web server, usually located at /var/www/html/.
sudo unzip zenphoto-latest.zip -d /var/www/html/
Step 3: Create a MySQL Database
Create a new MySQL database and a MySQL user with full permissions to access the database. You can use the following commands to create the database and the user.
sudo mysql -u root -p
CREATE DATABASE zenphoto;
CREATE USER 'zenphoto_user'@'localhost' IDENTIFIED BY 'YOUR_PASSWORD';
GRANT ALL PRIVILEGES ON zenphoto.* TO 'zenphoto_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;
Step 4: Configure Zenphoto
Go to the Zenphoto directory that you extracted in Step 2 and copy the zp-config.php-dist file to zp-config.php.
cd /var/www/html/zenphoto/
cp zp-config.php-dist zp-config.php
Open the zp-config.php file using a text editor and update the values of the database, username, and password to your MySQL database credentials.
nano zp-config.php
$conf['mysql_user'] = 'zenphoto_user';
$conf['mysql_password'] = 'YOUR_PASSWORD';
$conf['mysql_database'] = 'zenphoto';
Step 5: Set File Permissions
To allow Zenphoto to write files to the server, set the correct file permissions.
sudo chown -R www-data:www-data /var/www/html/zenphoto/
sudo chmod -R 755 /var/www/html/zenphoto/
Step 6: Verify the Installation
Restart Apache to apply the changes.
sudo systemctl restart apache2
Open your web browser and navigate to http://YOUR_DOMAIN_NAME/zenphoto/. Follow the on-screen instructions to finish the installation process.
Conclusion
By following these steps, you have successfully installed Zenphoto on EndeavourOS Latest. You can now manage and showcase your images and videos using Zenphoto.