Coppermine is a free and open-source web-based photo gallery software that allows users to manage and display their images on their websites. In this tutorial, we will guide you on how to install Coppermine on a Manjaro system.
Before starting with the installation process, make sure you have the following prerequisites:
The first step is to download Coppermine from its official website. You can download the latest version of Coppermine from here: https://coppermine-gallery.net/.
wget https://github.com/coppermine-gallery/coppermine/archive/1.6.tar.gz
After downloading the Coppermine archive, you need to extract it using the following command:
tar -xvf 1.6.tar.gz
This will extract the Coppermine files to a new directory named coppermine-1.6
.
Next, you need to move Coppermine files to the Apache web server root directory /srv/http/
:
sudo mv coppermine-1.6 /srv/http/coppermine
After moving Coppermine files to the web server root directory, you need to set proper permissions on the Coppermine directory so that Apache can access it:
sudo chown -R http:http /srv/http/coppermine
To store Coppermine data, you need to create a MySQL database. You can create a new MySQL database called coppermine
and a new MySQL user called coppermineuser
with the following commands:
sudo mysql -u root -p
Enter your MySQL root password and hit Enter.
CREATE DATABASE coppermine;
CREATE USER 'coppermineuser'@'localhost' IDENTIFIED BY 'yourpassword';
GRANT ALL PRIVILEGES ON coppermine.* TO 'coppermineuser'@'localhost';
FLUSH PRIVILEGES;
EXIT;
Next, you need to configure Coppermine by editing the include/config.inc.php
file:
sudo nano /srv/http/coppermine/include/config.inc.php
Find the following lines:
$CONFIG['dbserver'] = 'localhost';
$CONFIG['dbtype'] = 'mysql';
$CONFIG['dbuser'] = 'cpg141';
$CONFIG['dbpass'] = 'password';
$CONFIG['dbname'] = 'cpg141';
Replace these lines with:
$CONFIG['dbserver'] = 'localhost';
$CONFIG['dbtype'] = 'mysqli';
$CONFIG['dbuser'] = 'coppermineuser';
$CONFIG['dbpass'] = 'yourpassword';
$CONFIG['dbname'] = 'coppermine';
Save and close the file.
Finally, you need to run the Coppermine installation script using the following URL:
http://<your-server-ip-address>/coppermine/install.php
Follow the instructions on the screen to complete the installation process. When the installation is complete, remove the installation script for security reasons:
sudo rm /srv/http/coppermine/install.php
You can now access Coppermine by navigating to the following URL in your web browser:
http://<your-server-ip-address>/coppermine/
You should see your Coppermine photo gallery homepage.
Congratulations! You have successfully installed Coppermine on your Manjaro system. You can use Coppermine to manage and display your photos on your website.
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!