UberGallery is a free, open-source photo gallery software that allows you to create and manage beautiful photo galleries on your website. In this tutorial, we will walk you through the process of installing UberGallery on macOS.
Before we start, make sure your macOS system has the following requirements:
The first step is to download UberGallery from its official website https://www.ubergallery.net/. You can click on the "Download ZIP" button to download the latest version of UberGallery.
If you haven't installed Apache, PHP and MySQL on your macOS, then you can download them from the official websites or install them via Homebrew.
Open the terminal app on your macOS and run the following command to install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Next, install Apache, PHP, and MySQL by running the following command:
brew install apache2 php mysql
The default Apache web server on macOS is installed under /Library/WebServer/Documents/. You can use this directory to store your UberGallery files. Open the httpd.conf file and uncomment the following lines to enable PHP support:
LoadModule php7_module libexec/apache2/libphp7.so
AddHandler php7-script .php
Open the MySQL shell by running the following command:
mysql -u root -p
Create a new database called "ubergallery":
CREATE DATABASE ubergallery;
Create a new MySQL user and grant it permission to access the ubergallery database:
CREATE USER 'ubergalleryuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON ubergallery.* TO 'ubergalleryuser'@'localhost';
Extract the downloaded UberGallery zip file and move the contents to /Library/WebServer/Documents/ubergallery/:
mv /path/to/ubergallery-master /Library/WebServer/Documents/ubergallery
Navigate to the ubergallery directory and rename the configuration file:
cd /Library/WebServer/Documents/ubergallery
cp ubergallery.config.sample.php ubergallery.config.php
Open the ubergallery.config.php file and set the following values:
define('UG_ROOT', '/ubergallery');
define('UG_PUBLIC_ROOT', 'http://localhost/ubergallery');
define('DB_HOST', 'localhost');
define('DB_USER', 'ubergalleryuser');
define('DB_PASSWORD', 'password');
define('DB_NAME', 'ubergallery');
Create a new virtual host configuration file at /private/etc/apache2/extra/httpd-vhosts.conf:
sudo nano /private/etc/apache2/extra/httpd-vhosts.conf
Add the following configuration:
<VirtualHost *:80>
ServerName ubergallery.dev
DocumentRoot "/Library/WebServer/Documents/ubergallery"
<Directory "/Library/WebServer/Documents/ubergallery">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
Save and close the file.
Finally, restart Apache web server to load the new configuration:
sudo apachectl restart
Open your web browser and navigate to http://localhost/ubergallery or http://ubergallery.dev (if you created a virtual host). You should now see the UberGallery welcome screen.
Congratulations! You have successfully installed UberGallery on your macOS system. You can now create photo galleries and manage them using the UberGallery admin panel.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!