From 2885a03efe425bd1bfb3f5617050b1590f7afb32 Mon Sep 17 00:00:00 2001 From: v3d Date: Wed, 27 Mar 2019 23:07:56 +0000 Subject: [PATCH] Update pivilion manual setup --- pivilion-manual-setup.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pivilion-manual-setup.md b/pivilion-manual-setup.md index ee9b0b2..e1fddb8 100644 --- a/pivilion-manual-setup.md +++ b/pivilion-manual-setup.md @@ -298,6 +298,22 @@ The script is very simple - it uses PHP to generate a static HTML site. It can t The gallery generator takes in some basic data such as the name, description, title of the specific works, etc. Sections are vertical while slides are horizontal. Each piece has its own page. You should play around to figure out how it works. Keep in mind that the script will overwrite everything each time you generate a new gallery, so preparing a directory of media and **backing up** :) is the way to go. This will be better implemented in the future. +### Changing PHP file size limits + +If you need to upload larger files, or more files at once, you can edit the file /etc/php/7.0/cgi/php.ini with + +`sudo nano /etc/php/7.0/cgi/php.ini` + +There you will find options such as + +`post_max_size` +`upload_max_filesize` +`max_file_uploads` + +You can observe their values and read the comments around them to figure out what they do and what inputs they take. After it's adjusted you need to restart Lighty with + +`sudo service lighttpd force-reload` + ### Custom HTML You can also choose to overwrite anything the generator script generates or edit it manually just like you would HTML / PHP on any server. Use an FTP client such as [Filezilla](https://filezilla-project.org/) and the same username / password you would for logging in via SSH (point Filezilla to your Pi's IP and port 22). The directory that's served is /var/www/html/pivilion/gen. You can also edit Lighty's config in /etc/ lighttpd.conf and move the directory to where you see fit.