From 0ad83065e507e9aad27bc2516ec9413a32059347 Mon Sep 17 00:00:00 2001 From: cave beat Date: Mon, 22 May 2017 19:56:53 +0200 Subject: [PATCH] added apache2 config --- README.md | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cc8a131..3ccd25e 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ UPDATES - Oct. 10: [Album functionality](#smart-query-system) finally ready ## Why would I want to host my own images? -If you own a server (even an home server) you can host your own PictShare instance so you have full control over your content and can delete images hasslefree. +If you own a server (even a home server) you can host your own PictShare instance so you have full control over your content and can delete images hasslefree. If you're an **app developer** or **sysadmin** you can use it for a centralized image hosting. With the simple upload API you can upload images to your PictShare instance and get a nice short URL @@ -240,6 +240,33 @@ server { } ``` +## Apache config +This is a simple vHost config that should make PictShare work on Apache2. + +- Install php5: ```apt-get install php5 libapache2-mod-php5``` +- Install php Graphics libraries: ```apt-get install php5-gd``` +- enable mod_rewrite + +``` + + ServerAdmin webmaster@sub.domain.tld + ServerName sub.domain.tld + ServerAlias sub.domain.tld + DocumentRoot /var/www/html + + + Options Indexes FollowSymLinks MultiViews + AllowOverride All + Order allow,deny + Allow from All + + ErrorLog ${APACHE_LOG_DIR}/error.log + LogLevel warn + CustomLog ${APACHE_LOG_DIR}/access.log combined + +``` + + ## Upgrading - Just re-download the [PictShare zip](https://github.com/chrisiaut/pictshare/archive/master.zip) file and extract and overwrite existing pictshare files. Uploads and config won't be affected. - Check if your ```/inc/config.inc.php``` file has all settings required by the ```/inc/example.config.inc.php``` since new options might get added in new versions