Jak nainstalovat Gallery3 na Ubuntu 14.04 LTS VPS

[Y/n]The following article will guide you through the steps on how to install Gallery3 on [Y/n].

What is Gallery3?

It is an open source photo sharing web application, based on PHP and MySQL.

Gallery3 has intuitive photo management administration and you can use it into your own website no matter whether you’re running a small personal site or a large community portal.


In order to install and run Gallery3 on your [Y/n], the following minimum system requirements have to be met:

  • Apache 2.2 +
  • PHP 5.2.3 +
  • PHP safe_mode must be disabled
  • PHP-Iconv
  • PHP-Simplexml
  • PHP-Filter
  • PHP-Json
  • PHP-Mbstring
  • PHP short_open_tag must be enabled
  • Databázový server MySQL

Ok, before proceeding any further, make sure you are in a obrazovka session and your [Y/n] is up-to-date by running:

## screen -U -s gallery3-screen
## apt-get update
## apt-get upgrade

Since Gallery3 requires a webserver, a database server and a PHP server/support, we will have to install and set-up LAMP (Linux Apache MySQL and PHP) on the system.

Install Apache2 on your Ubuntu 14.04 VPS using:

## apt-get install apache2

Next, proceed with installing the MySQL database server in your system using

## apt-get install mysql-server

once installed, run the post-installation script mysql_secure_installation and configure it like this

## mysql_secure_installation

- Set root password? [Y/n] y
- Remove anonymous users? [Y/n] y
- Disallow root login remotely? [Y/n] y
- Remove test database and access to it? [Y/n] y
- Reload privilege tables now? [Y/n] y

install PHP support on the system using the following command:

## apt-get install php5 php5-mysql php5-gd

check it out using

## php -v

edit your PHP configuration file and set the following:

## vim /etc/php5/apache2/php.ini

short_open_tag = On

restart apache for the changes to take effect:

## service apache2 restart

create a new MySQL database for Gallery3 using MySQL command line or any other tool like phpMyAdmin. Using command line, this can be achieved by running the following SQL statements:

## mysql -u root -p

mysql> CREATE DATABASE gallery3;
mysql> GRANT ALL ON gallery3.* TO [Email protected] IDENTIFIED BY '54YfQndxln';
mysql> q

[Y/n] of Gallery3. At the time of writing this article, the version is 3.0.9. Once you have the URL to the zip archive, pass it to the wget command and run the following:

## wget -O /tmp/gallery3.zip http://downloads.sourceforge.net/project/gallery/gallery3/3.0.9/gallery-3.0.9.zip
## unzip -d /var/www/html /tmp/gallery3.zip
## cd /var/www/html/gallery3
## chown www-data: -R ../gallery3/

with all that in place, navigate to [Y/n] and install Gallery3 using the web-installer as shown on the screenshot below:

Napsat komentář