Comments on How to install Coppermine Photo Gallery on Ubuntu 16.04 LTS

Coppermine is a free, open source, fully featured and integrated photo gallery software written in PHP that allows us to publish and manage a collection of pictures, create personal photo albums, group albums by categories, send e-cards, organize images and photos. In this tutorial, we will learn how to install Coppermine Photo Gallery on Ubuntu 16.04 LTS.

3 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Neil Groeber

Configure Apache for Coppermine

Next, you will need to create an apache virtual host file for Coppermine. You can do this by running the following commmand:

sudo /etc/apache2/sites-available/coppermine.conf

Should this not be vi or nano between the sudo and the file path?

By: Neil Groeber

<VirtualHost *:80> ServerAdmin [email protected] DocumentRoot "/var/www/html/coppermine" ServerName yourdomain.com <Directory /> Options FollowSymLinks AllowOverride All <Directory "/var/www/html/coppermine/"> Options MultiViews FollowSymlinks AllowOverride All Order allow,deny Allow from all </Directory> TransferLog /var/log/apache2/coppermine_access.log ErrorLog /var/log/apache2/coppermine_error.log </VirtualHost>Syntax error on line 17 of /etc/apache2/sites-enabled/coppermine.conf: Expected </Directory> but saw </VirtualHost>

By: Bug Fix

There is an issue with line 5 of the <VirtualHost> config file. The <Directory> Tag is opened up twice, without a second close, and no args for the first tag. Fix this by replacing 

<Directory />

 

with

<Directory "/var/www/html/coppermine/">

Then, delete the repeated line. Run 'apachectl configtest' to check for spelling errors, then run 'systemctl reload apache2' to run.