mirror of
https://github.com/24eme/signaturepdf
synced 2024-05-21 07:06:41 +02:00
Add a troubleshooting section
This commit is contained in:
parent
44af98263f
commit
78cad9e609
|
@ -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).
|
||||
|
|
Loading…
Reference in a new issue