Installation Guide
Getting PicoGallery up and running is designed to be simple. Follow these steps:
Go to the admin area (e.g., yourdomain.com/picogallery/admin/) to log in with the credentials you set in config.php and start creating galleries!
- Download PicoGallery:
Kontaktieren Sie uns, um Ihre Kopie von PicoGallery zu erhalten.
2. Upload to Your Server:
Extract the downloaded ZIP file.
Upload the entire picogallery (or whatever you name the main folder) directory to your web server. This could be in your main web root (e.g., public_html, htdocs, www) or a subdirectory.
3. Set File Permissions:
Ensure the following directories are writable by your web server:
- data/
- uploads/ (and its tmp/ subdirectory, which will be created if it doesn’t exist)
You can usually do this via an FTP client or SSH (e.g., chmod -R 775 data uploads). Consult your hosting provider if unsure.
4. Configure Admin Credentials:
Open the config.php file in the root of your PicoGallery installation with a text editor.
Set your desired ADMIN_USERNAME.
Crucially, generate and set a secure ADMIN_PASSWORD_HASH. Instructions are provided within config.php (this involves running a temporary PHP script). Do not skip this step for security!
Review other settings in config.php like BASE_URL (it attempts to auto-detect, but you might need to adjust it if your setup is in a subdirectory and auto-detection isn’t perfect) and default photographer information.
5. Set up URL Rewriting (for Apache):
If you’re using Apache, ensure the provided .htaccess file is present in the root of your PicoGallery installation and that mod_rewrite is enabled on your server. Your hosting provider might also require AllowOverride All (or similar) in the Apache configuration for .htaccess to function.
For Nginx users, you’ll need to configure server block rules similar to the logic in .htaccess (see example Nginx rewrite rules – you’d add a link to an anchor or a separate page with these).
6. Access PicoGallery:
Navigate to the URL where you uploaded PicoGallery (e.g., yourdomain.com/picogallery/ or yourdomain.com/ if in the root).