The TinyWebGallery is very easy to install, simply go to TinyWebGallery’s official website and download the latest version of the platform available:
Extract the downloaded zip file to the Document Root directory of your website:
unzip twg*.zip -d /var/www/html/gallery/ mv /var/www/html/gallery/twg19/* /var/www/html/gallery/
Change the permissions of the files and directories inside the ‘/var/www/html/gallery/’ directory so they are owned by the web server user:
chown apache:apache -R /var/www/html/gallery/
Edit your ‘php.ini’ file and add/modify the following settings:
memory_limit=64M upload_max_filesize = 20M post_max_size = 20M max_input_time=1800 max_execution_time=1800 default_socket_timeout=1800
To find the location of ‘php.ini’ file on the server, execute the following command:
php -i | grep php.ini Configuration File (php.ini) Path => /etc Loaded Configuration File => /etc/php.ini
To use the ‘Upload Flash’ option you maybe have to copy a .htaccess file to the directory of the upload flash (admin/upload):
cd /var/www/html/gallery/admin/upload unzip htaccess.zip
Create a new virtual host in Apache:
<VirtualHost *:80> ServerAdmin email@example.com DocumentRoot /var/www/html/gallery/ ServerName www.your-domain.com Options FollowSymLinks AllowOverride All ErrorLog logs/your-domain.com-error_log CustomLog logs/your-domain.com-access_log common </VirtualHost>
Restart Apache for the changes to take effect.
Log in to the TinyWebGallery administration back-end at http://www.your-domain.com/admin/index.php and change the default admin password:
User: admin Default password: twg_admin
Enable session caching and set all important parameters under ‘Configuration’ in the TinyWebGallery administrator back-end, then click ‘Save’.
Of course you don’t have to do any of this if you use one of our Linux VPS Hosting services, in which case you can simply ask our expert linux admins to install TinyWebGallery for you. They are available 24×7 and will take care of your request immediately.
PS. 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.