{"id":18939,"date":"2016-04-21T13:36:53","date_gmt":"2016-04-21T18:36:53","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=18939"},"modified":"2022-12-15T06:38:18","modified_gmt":"2022-12-15T12:38:18","slug":"install-4images-gallery-on-ubuntu","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/install-4images-gallery-on-ubuntu\/","title":{"rendered":"Install 4images Gallery on Ubuntu"},"content":{"rendered":"
<\/p>\n
We’ll show you, how to Install 4images Gallery on Ubuntu. 4images Gallery is an image gallery management system. It is written in PHP and uses MySQL database to store its data. 4images Gallery is free for private and non-commercial use. The installation of 4images Gallery is very easy and in this tutorial we will help you to install 4images Gallery on a Linux VPS running Ubuntu 14.04 as an operating system.
\n<\/p>\n
Before starting with the installation process, go ahead and connect to your server via SSH<\/a>. Once you log in you can update all your system software to the latest version available. It is very important to keep all you software up to date and for that purpose you can use the following command:<\/p>\n Next, download the latest version of 4images Gallery from the official web site at http:\/\/www.4homepages.de\/download-4images<\/a> and upload the zip archive to your server. Make sure that the zip archive is uploaded to the \/var\/www\/ directory on your Ubuntu VPS<\/a>. Once you upload the file you can continue with the other steps of this tutorial.<\/p>\n Navigate to the \/var\/www\/ directory on your server using the command:<\/p>\n Next, extract the archive using the following command:<\/p>\n If you get an error like the one below:<\/p>\n it means that the unzip package is not installed on your system. To install the unzip package you can use the command:<\/p>\n Then, extract the archive using the same command from above. Now, create an Apache virtual host for 4images Gallery:<\/p>\n Add the following content:<\/p>\n Save the file and close it. Enable 4images Gallery and restart the Apache web server:<\/p>\n Now, create a MySQL database so 4images Gallery can store its data. Enter MySQL as root:<\/p>\n To create a database, a user and set up a password you should enter the commands below, one by one:<\/p>\n You can now continue with the online installation. Open your favorite web browser and enter your domain name into the search bar so you can access your 4images Gallery server<\/a>. You should see something like the image below:<\/p>\n <\/p>\n Fill out the requested fields and set up an admin account so you can manage your 4images Gallery installation later. Once you set up your account and the installation is successful you can log in to the admin panel at http:\/\/yourdomain.com\/admin\/index.php<\/p>\nsudo apt-get update && sudo apt-get -y upgrade<\/pre>\n
cd \/var\/www\/<\/pre>\n
sudo unzip 4images1.7.13.zip<\/pre>\n
-bash: \/usr\/bin\/unzip: No such file or directory<\/pre>\n
sudo apt-get install unzip<\/pre>\n
\nChange the ownership of the files:<\/p>\nsudo chown www-data: -R 4images\/<\/pre>\n
sudo nano \/etc\/apache2\/sites-available\/4images.conf<\/pre>\n
<VirtualHost *:80>\r\n ServerAdmin admin@yourdomain.com\r\n DocumentRoot \/var\/www\/4images\r\n ServerName yourdomain.com\r\n ServerAlias www.yourdomain.com\r\n <Directory \/var\/www\/4images\/>\r\nOptions Indexes FollowSymLinks MultiViews\r\nAllowOverride All\r\nOrder allow,deny\r\nallow from all\r\n <\/Directory>\r\n ErrorLog \/var\/log\/httpd\/yourdomain.com-error_log\r\n CustomLog \/var\/log\/httpd\/yourdomain.com-access_log common\r\n<\/VirtualHost>\r\n<\/pre>\n
sudo a2ensite 4images\r\nsudo service apache2 restart\r\n<\/pre>\n
mysql -u root -p<\/pre>\n
mysql> CREATE DATABASE 4images;\r\nmysql> GRANT ALL PRIVILEGES on 4images.* to '4images_user'@'localhost' identified by 'your_password';\r\nmysql> FLUSH PRIVILEGES;\r\nmysql> exit<\/pre>\n