{"id":17890,"date":"2015-12-17T15:26:49","date_gmt":"2015-12-17T21:26:49","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=17890"},"modified":"2022-06-03T03:43:58","modified_gmt":"2022-06-03T08:43:58","slug":"how-to-install-coppermine-photo-gallery-on-an-ubuntu-14-04-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-coppermine-photo-gallery-on-an-ubuntu-14-04-vps\/","title":{"rendered":"How to install Coppermine Photo Gallery on Ubuntu 14.04"},"content":{"rendered":"
Coppermine is a multi purpose, fully featured and integrated web picture gallery script written in PHP which will allows users\u00a0to organize images and photos.\u00a0Coppermine Photo Gallery is one of the oldest and most popular web picture gallery scripts.<\/p>\n
Coppermine has the following features: user management (groups, private galleries, etc.), e-cards feature, automatic thumbnail creation, user comments, a slideshow viewer etc.<\/p>\n
In this tutorial we will explain how to install Coppermine Photo Gallery on an Ubuntu 14.04 VPS<\/a><\/strong>. This tutorial should work on any other Debian based Linux distribution.<\/p>\n This install guide assumes that Apache, MySQL and PHP are already installed and configured on your virtual server. At the time of writing this tutorial, the latest stable version of Coppermine Photo Gallery is 1.5.38 and it requires:<\/p>\n Installation instructions:<\/p>\n Login to your server via SSH:<\/p>\n Update the system and install necessary packages:<\/p>\n Download and extract the Coppermine Photo Gallery archive:<\/p>\n Coppermine Photo Gallery needs write access to ‘albums’ and ‘include’ directories within the ‘\/var\/www\/html\/coppermine’ directory. This can easily be accomplished by running the following command:<\/p>\n Locate the PHP configuration file:<\/p>\n Edit the \u2018\/etc\/php5\/apache2\/php.ini\u2019 configuration file:<\/p>\n Add\/modify the following settings:<\/p>\n Create a new MySQL database for Coppermine Photo Gallery on your server:<\/p>\n Do not forget to replace \u2018your-password\u2019 with a strong password. Then, add the following lines:<\/p>\n Restart the Apache web server for the changes to take effect:<\/p>\n Open your favorite web browser, navigate to http:\/\/your-domain.com\/install.php and follow the easy instructions on the install screen inserting the necessary information as requested. Select \u2018GD2\u2019 (or \u2018ImageMagick\u2019 if you have ImageMagick package installed on your server), enter your MySQL username and password and finally create a Coppermine administration account.<\/p>\n That is it. You successfully installed Coppermine Photo Gallery on your Ubuntu 14.04 VPS. Log in to the administrator back-end and start uploading your pictures and publish photo albums.<\/p>\n Of course you don\u2019t have to do any of this if you use one of our Ubuntu Linux VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install Coppermine Photo Gallery<\/strong> for you. They are available 24×7 and will take care of your request immediately.<\/p>\n PS.<\/strong><\/span> If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":" Coppermine is a multi purpose, fully featured and integrated web picture gallery script written in PHP which will allows users\u00a0to … <\/p>\n\n
ssh root@server_ip<\/pre>\n
apt-get update && sudo apt-get -y upgrade\r\napt-get install unzip<\/pre>\n
wget http:\/\/downloads.sourceforge.net\/project\/coppermine\/Coppermine\/1.5.x\/cpg1.5.38.zip\r\nunzip cpg1.5.38.zip\r\nmv cpg15x\/ \/var\/www\/html\/coppermine<\/pre>\n
chown www-data:www-data -R \/var\/www\/html\/coppermine<\/pre>\n
# php -i | grep -i php.ini\r\nConfiguration File (php.ini) Path => \/etc\/php5\/cli\r\nLoaded Configuration File => \/etc\/php5\/cli\/php.ini<\/pre>\n
nano \/etc\/php5\/cli\/php.ini<\/pre>\n
max_execution_time = 300\r\nmax_input_time = 300\r\nmemory_limit = 256M\r\npost_max_size = 32M\r\nupload_max_filesize = 32M<\/pre>\n
mysql -u root -p\r\nmysql> CREATE DATABASE copperminedb;\r\nmysql> GRANT ALL PRIVILEGES ON copperminedb.* TO 'coppermineuser'@'localhost' IDENTIFIED BY 'your-password' WITH GRANT OPTION;\r\nmysql> FLUSH PRIVILEGES;\r\nmysql> quit<\/pre>\n
\nCreate a new virtual host directive in Apache. For example, create a new Apache configuration file named \u2018coppermine.conf\u2019 on your virtual server:<\/p>\ntouch \/etc\/apache2\/sites-available\/coppermine.conf\r\nln -s \/etc\/apache2\/sites-available\/coppermine.conf \/etc\/apache2\/sites-enabled\/coppermine.conf\r\nnano \/etc\/apache2\/sites-available\/coppermine.conf<\/pre>\n
<VirtualHost *:80>\r\nServerAdmin admin@yourdomain.com\r\nDocumentRoot \/var\/www\/html\/coppermine\/\r\nServerName your-domain.com\r\nServerAlias www.your-domain.com\r\n<Directory \/var\/www\/html\/coppermine\/>\r\nOptions FollowSymLinks\r\nAllowOverride All\r\n<\/Directory>\r\nErrorLog \/var\/log\/apache2\/your-domain.com-error_log\r\nCustomLog \/var\/log\/apache2\/your-domain.com-access_log common\r\n<\/VirtualHost><\/pre>\n
service apache2 restart<\/pre>\n