mirror of
https://gitlab.com/hacklab01/pivilion.git
synced 2025-04-29 16:47:17 +00:00
Update pivilion manual setup
parent
ab6c5095fd
commit
2885a03efe
@ -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.
|
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
|
### 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.
|
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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user