PictShare is an open-source, easy-to-use image hosting and sharing platform, that allows you to upload, host, and share images and videos painlessly. In this tutorial, we will describe the steps to install PictShare on Linux Mint Latest.
Before proceeding with the installation, ensure that your system meets the following requirements:
PictShare is a PHP based application, so the first thing you need to do is to install LAMP (Linux, Apache, MySQL, and PHP) stack on your system. Run the following command on the terminal:
sudo apt-get update
sudo apt-get install apache2 mysql-server php libapache2-mod-php php-mysql php-gd php-imagick php-curl php-zip
This will install all the required dependencies for the LAMP stack on your system.
After installing the MySQL server, you need to secure it by running the mysql_secure_installation
command.
sudo mysql_secure_installation
Answer the questions, and set the root password for the MySQL server.
Download PictShare source code from the official website or GitHub repository.
cd /var/www/html
sudo git clone https://github.com/chrisiaut/pictshare.git
Configure Apache to point to the PictShare directory by creating a virtual host configuration file:
sudo nano /etc/apache2/sites-available/pictshare.conf
Add the following Virtual Host settings:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/pictshare/
ServerName localhost
<Directory /var/www/html/pictshare/>
Options Indexes FollowSymLinks Multiviews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/pictshare_error.log
CustomLog /var/log/apache2/pictshare_access.log combined
</VirtualHost>
Save and close the file.
Enable the virtual host:
sudo a2ensite pictshare.conf
Restart Apache:
sudo systemctl restart apache2
Create a new configuration file in the PictShare directory:
cd /var/www/html/pictshare/
cp config_default.php config.php
Edit the configuration file with your MySQL server details and other desired settings:
sudo nano config.php
Save and close the file.
Run the setup script by accessing the setup page in your web browser:
http://localhost/setup/
Follow the steps in the setup wizard to complete the installation.
PictShare is now successfully installed on your Linux Mint system. You can now start uploading and sharing your images and videos with your friends and colleagues.
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!