1
0
Fork 0
mirror of https://github.com/24eme/signaturepdf synced 2024-06-01 13:32:24 +02:00

Compare commits

...

3 commits

Author SHA1 Message Date
Vincent LAURENT a0a7a337b6
Update installation.md 2023-12-19 00:26:08 +01:00
Vincent LAURENT 41e1334acf
Update installation.md 2023-12-19 00:25:48 +01:00
Vincent LAURENT 78cad9e609
Add a troubleshooting section 2023-12-19 00:18:33 +01:00

View file

@ -13,7 +13,7 @@ Dependencies:
Installing dependencies: Installing dependencies:
``` ```
sudo aptitude install php librsvg2-bin pdftk imagemagick potrace ghostscript locales sudo apt-get install php librsvg2-bin pdftk imagemagick potrace ghostscript locales
``` ```
Getting the source code: Getting the source code:
@ -28,7 +28,7 @@ To run it:
php -S localhost:8000 -t public php -S localhost:8000 -t public
``` ```
#### PHP Configuration ### PHP Configuration
``` ```
upload_max_filesize = 24M # Maximum size of the PDF file to sign upload_max_filesize = 24M # Maximum size of the PDF file to sign
@ -36,7 +36,7 @@ post_max_size = 24M # Maximum size of the PDF file to sign
max_file_uploads = 201 # Maximum number of pages in the PDF, here 200 pages + the original PDF max_file_uploads = 201 # Maximum number of pages in the PDF, here 200 pages + the original PDF
``` ```
#### Apache Configuration ### Apache Configuration
``` ```
DocumentRoot /path/to/signaturepdf/public DocumentRoot /path/to/signaturepdf/public
@ -48,7 +48,24 @@ DocumentRoot /path/to/signaturepdf/public
php_value post_max_size 24M php_value post_max_size 24M
</Directory> </Directory>
``` ```
### Troubleshooting
#### The translation is not done
The language remains in English in the interface.
Check that your locales are properly installed:
```
sudo apt-get install locales
sudo dpkg-reconfigure locales
```
Then if you use apache, you have to restart it:
```
sudo service apache2 restart
```
## [Deploy with Docker](#docker) ## [Deploy with Docker](#docker)
@ -85,7 +102,6 @@ The following variables can be used to configure the deployment:
docker run -d --name=signaturepdf -p 8080:80 -e SERVERNAME=pdf.example.org -e UPLOAD_MAX_FILESIZE=48M -e POST_MAX_SIZE=48M -e MAX_FILE_UPLOADS=401 -e PDF_STORAGE_PATH=/data signaturepdf docker run -d --name=signaturepdf -p 8080:80 -e SERVERNAME=pdf.example.org -e UPLOAD_MAX_FILESIZE=48M -e POST_MAX_SIZE=48M -e MAX_FILE_UPLOADS=401 -e PDF_STORAGE_PATH=/data signaturepdf
``` ```
## [Alpine](#alpine) ## [Alpine](#alpine)
Here is a script to install the solution on Linux Alpine (tested with version 3.15). Here is a script to install the solution on Linux Alpine (tested with version 3.15).