How to Install Coppermine on EndeavourOS Latest

Coppermine is a free web gallery software that allows you to easily manage and display your images on a website. In this tutorial, we will guide you through the steps to install Coppermine on EndeavourOS Latest.

Prerequisites

Before installing Coppermine, you need to have the following:

Step 1: Download Coppermine

To download the latest version of Coppermine, go to the official website at https://coppermine-gallery.net/. Once you have downloaded the zip file, extract it to a directory of your choice.

$ cd /tmp
$ wget https://github.com/coppermine-gallery/coppermine/archive/1.6.x.zip
$ unzip 1.6.x.zip

Step 2: Move Coppermine to the Web Server Directory

Now it's time to move the Coppermine files to the Apache web server folder. For this tutorial, we will use the default Apache folder in EndeavourOS Latest, which is /srv/http/.

$ sudo mv coppermine-1.6.x /srv/http/
$ sudo chown -R http:http /srv/http/coppermine-1.6.x/

Step 3: Create a MySQL Database

For Coppermine to work, you need to create a MySQL database. Login to your MySQL server as root to create a new database.

$ mysql -u root -p

Once you are in the MySQL prompt, create a new database and user for Coppermine.

mysql> CREATE DATABASE coppermine;
mysql> CREATE USER 'coppermine'@'localhost' IDENTIFIED BY 'password';
mysql> GRANT ALL PRIVILEGES ON coppermine.* TO 'coppermine'@'localhost';
mysql> FLUSH PRIVILEGES;
mysql> exit

Step 4: Install PHP Modules

Before installing Coppermine, you need to install the required PHP modules. Run the following command to install the necessary modules.

$ sudo pacman -S php-gd php-intl php-mysql php-tidy php-xml

Step 5: Configure Coppermine

To configure Coppermine, rename the include/config.inc.php.sample to include/config.inc.php.

$ cd /srv/http/coppermine-1.6.x/
$ cp include/config.inc.php.sample include/config.inc.php

Edit include/config.inc.php file with your MySQL database details.

$dbserver = 'localhost';
$dbname = 'coppermine';
$dbuser = 'coppermine';
$dbpass = 'password';

Step 6: Access Coppermine Web Installer

You are now ready to access the Coppermine web installer. Open a web browser and navigate to http://localhost/coppermine-1.6.x/install.php. Follow the on-screen instructions to complete the installation.

Step 7: Remove the Web Installer

After installation, it's important to remove the Coppermine web installer for security reasons.

$ sudo rm /srv/http/coppermine-1.6.x/install.php

Conclusion

Congratulations! You have successfully installed Coppermine on EndeavourOS Latest. You can now upload your images and use them on your website with Coppermine.

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!