This guide will help you install PictShare on Debian Latest. PictShare is a self-hosted, open-source platform for sharing images and videos.
Prerequisites:
- Debian Latest with root access and internet connection
- Web server like Apache or Nginx
- PHP 7.2 or later
- MySQL or MariaDB
Step 1: Download PictShare
Download the PictShare package using:
wget https://www.pictshare.net/download/pictshare_latest.zip
Extract the package:
unzip pictshare_latest.zip -d pictshare
Step 2: Configure PictShare
Edit the pictshare/config.php file to configure PictShare:
nano pictshare/config.php
Update these configurations:
define('URL', 'https://your_domain.com');define('BASEPATH', '/path/to/web/directory');define('DATAFOLDER', '/path/to/data/directory');define('INCLUDEPATH', '/path/to/include/directory');- Replace default
ADMINAPIKEYwith a secure key
Step 3: Create a MySQL Database
Log into MySQL:
mysql -u root -p
Create a new database:
CREATE DATABASE pictshare;
Create a user and grant privileges:
GRANT ALL PRIVILEGES ON pictshare.* TO 'pictshare_user'@'localhost' IDENTIFIED BY 'pictshare_passwd';
FLUSH PRIVILEGES;
exit
Step 4: Install PictShare
Run the installation script:
cd pictshare
./install.sh
Step 5: Configure the Web Server
For Apache, create a new virtual host file:
nano /etc/apache2/sites-available/pictshare.conf
Add this configuration:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/pictshare
<Directory /var/www/html/pictshare>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/pictshare_error.log
CustomLog ${APACHE_LOG_DIR}/pictshare_access.log combined
</VirtualHost>
Enable the virtual host and reload Apache:
a2ensite pictshare.conf
systemctl reload apache2
For Nginx, create a server block file:
nano /etc/nginx/sites-available/pictshare.conf
Add this configuration:
server {
listen 80;
root /var/www/html/pictshare;
index index.php;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include fastcgi.conf;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
}
error_log /var/log/nginx/pictshare_error.log;
access_log /var/log/nginx/pictshare_access.log;
}
Enable the server block and reload Nginx:
ln -s /etc/nginx/sites-available/pictshare.conf /etc/nginx/sites-enabled/
systemctl reload nginx
Step 6: Test the Installation
To verify the installation, visit http://your-domain.com in your browser. If successful, you can upload and view images and videos.
Congratulations, you've successfully installed PictShare on Debian Latest!
For an easy, hands-free self-hosting experience or if you need an external IP address, consider trying Shells for the best virtual desktop!







