1
0
Fork 0
mirror of https://github.com/24eme/signaturepdf synced 2024-04-30 21:22:45 +02:00

Add a troubleshooting section

This commit is contained in:
Vincent LAURENT 2023-12-19 00:18:33 +01:00 committed by GitHub
parent 44af98263f
commit 78cad9e609
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,7 +13,7 @@ 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:
@ -28,7 +28,7 @@ To run it:
php -S localhost:8000 -t public
```
#### PHP Configuration
### PHP Configuration
```
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
```
#### Apache Configuration
### Apache Configuration
```
DocumentRoot /path/to/signaturepdf/public
@ -48,7 +48,22 @@ DocumentRoot /path/to/signaturepdf/public
php_value post_max_size 24M
</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)
@ -85,7 +100,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
```
## [Alpine](#alpine)
Here is a script to install the solution on Linux Alpine (tested with version 3.15).