PictShare is an image and video sharing web application. It allows users to upload, share, and download images and videos. In this tutorial, we will be installing PictShare on Manjaro.
Before we begin, it is recommended that you have the following software installed on your Manjaro system:
To install PictShare on Manjaro, follow the steps below:
sudo pacman -Syu
sudo pacman -S apache php php-apache mariadb
sudo systemctl enable httpd
sudo systemctl start httpd
sudo systemctl enable mariadb
sudo systemctl start mariadb
sudo mysql -u root -p
CREATE DATABASE pictshare;
GRANT ALL PRIVILEGES ON pictshare.* TO 'pictshareuser'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
EXIT
Note: Replace 'password' with a strong password of your choice.
sudo pacman -S curl zip
cd /var/www/html
sudo curl -LO https://github.com/chrisiaut/pictshare/archive/v2.2.tar.gz
sudo tar -zxvf v2.2.tar.gz
sudo mv pictshare-2.2 pictshare
Note: /var/www/html
is the default web server directory on Manjaro. You can change it to your preferred directory.
sudo cp /var/www/html/pictshare/web.config.sample /var/www/html/pictshare/web.config
sudo nano /var/www/html/pictshare/web.config
In the web.config
file, modify the following lines to match your MySQL database settings:
<database_host>localhost</database_host>
<database_name>pictshare</database_name>
<database_username>pictshareuser</database_username>
<database_password>password</database_password>
Note: Replace 'password' with the password you set for the MySQL database user.
pictshare/uploads
directory.sudo chown -R http:http /var/www/html/pictshare/uploads
sudo chmod -R 777 /var/www/html/pictshare/uploads
sudo systemctl restart httpd
http://localhost/pictshare/install
Follow the on-screen instructions to complete the installation process.
Congratulations! You have successfully installed PictShare on Manjaro.
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!