---
title: "How to Install PictShare on Debian Latest - CloudBlast"
description: "How to Install PictShare on Debian Latest"
url: "https://cloudblast.io/ar/article/How-to-Install-PictShare-on-Debian-Latest"
language: "ar-SA"
---

المدونة

# How to Install PictShare on Debian Latest

رصيد مجاني 5€ عند التسجيل

سجّل في CloudBlast واحصل على رصيد سحابي مجاني بقيمة 5€ لنشر خوادم VPS الخاصة بك

[احصل على 5€ مجانًا](https://console.cloudblast.io/auth/login?ref=2)

-   [رجوع](https://cloudblast.io/ar)
-   [جميع المقالات](https://cloudblast.io/ar/blog)

2024-09-04

### How to Install PictShare on Debian Latest

tutorials

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 `ADMINAPIKEY` with 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!

مشاركة

## متابعة القراءة

[2026-07-25 How to Install and Set Up Mailcow on Ubuntu and Debian VPS tutorials](https://cloudblast.io/article/how-to-install-and-setup-mailcow-on-ubuntu-and-debian-vps)

[2026-07-25 How to Install Chatwoot on the Latest Ubuntu and Debian Server tutorials](https://cloudblast.io/article/how-to-install-chatwoot-on-ubuntu-and-debian-server)

[2026-07-25 How to Install Mattermost on the Latest Ubuntu and Debian Server tutorials](https://cloudblast.io/article/how-to-install-mattermost-on-ubuntu-and-debian-server)

[2026-07-25 How to Install RustDesk on the Latest Ubuntu and Debian Server tutorials](https://cloudblast.io/article/how-to-install-rustdesk-on-ubuntu-and-debian-server)
