Zenphoto is an open-source web-based media server used for managing and displaying photos, videos and audio files on the web. In this tutorial, we will guide you to install Zenphoto on the latest Fedora Server.
First, log in to your Fedora Server and update it with the commands below.
sudo dnf update
To install Zenphoto, we need Apache web server, PHP, and a database. Run the command below to install these packages.
sudo dnf install httpd php php-mysqlnd mysql-server
Confirm the installation by typing y
when prompted.
The Zenphoto package can be downloaded from the official website or through package management tools like wget
. Here, we will download the package using the terminal.
cd /var/www/html
sudo wget https://github.com/zenphoto/zenphoto/releases/latest/download/zenphoto.zip
sudo unzip zenphoto.zip && sudo rm -rf zenphoto.zip
sudo mv zenphoto-* zenphoto
Create a new Apache virtual host configuration file for Zenphoto.
sudo nano /etc/httpd/conf.d/zenphoto.conf
Paste the following configuration to the file.
<VirtualHost *:80>
ServerAdmin your_email@email.com
DocumentRoot /var/www/html/zenphoto/
ServerName example.com
ServerAlias www.example.com
<Directory /var/www/html/zenphoto>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/httpd/zenphoto_error.log
CustomLog /var/log/httpd/zenphoto_access.log combined
</VirtualHost>
Remember to replace your_email@email.com
and example.com
with your email address and domain name respectively.
Save and close the file by pressing CTRL+X
, then Y
, and ENTER
.
Start Apache and MySQL services using the commands below.
sudo systemctl start httpd.service
sudo systemctl enable httpd.service
sudo systemctl start mariadb.service
sudo systemctl enable mariadb.service
Access the MySQL command line console.
sudo mysql -u root -p
Enter your root password when prompted.
Once logged in create a new database and a user for Zenphoto.
CREATE DATABASE zenphoto_db;
CREATE USER 'zenphoto_user'@'localhost' IDENTIFIED BY 'your_password_here';
GRANT ALL PRIVILEGES ON zenphoto_db.* TO 'zenphoto_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;
Remember to replace your_password_here
with a strong password.
Visit your website at http://your_domain.com/zenphoto/zp-core/setup.php
to complete Zenphoto installation.
Follow the on-screen instructions and enter your database details, then create your admin account.
Once completed, remove the setup.php
file for security reasons.
sudo rm /var/www/html/zenphoto/zp-core/setup.php
Access your Zenphoto installation on your domain name or IP address.
http://example.com/zenphoto
You will be prompted to log in with your admin username and password.
Following these steps will enable you to install Zenphoto on your Fedora Server. You can now manage your media files through 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!