Was trying to export files as a pdf and had time outs after 3 minutes. Checked all PHP settings for max_execution time which is 300 seconds, max_input_time 300 seconds, post_max_size 60MB and upload_max_filesize 60MB. Started checking Nginx logs, Httpd logs, Proxy logs and so on. When I did check PHP logs I found this error
realized Ghost script was missing on my Alma Linux server so installed it[08-Oct-2023 13:48:53] WARNING: [pool site.nl] child 699893 said into stderr: "sh: gs: command not found"
But still nothing. Export still fails in Wordpress using Fancy Product Designer. Also saw for PHP that Imagick was installed but when I didgs --version
bash: gs: command not found
# yum install ghostscript
Last metadata expiration check: 3:20:19 ago on Sun 08 Oct 2023 10:59:31 AM CEST.
Dependencies resolved.
======================================================================================================================
Package Architecture Version Repository Size
======================================================================================================================
Installing:
ghostscript x86_64 9.27-6.el8 appstream 82 k
Transaction Summary
======================================================================================================================
Install 1 Package
Total download size: 82 k
Installed size: 38 k
Is this ok [y/N]: y
Downloading Packages:
ghostscript-9.27-6.el8.x86_64.rpm 4.0 MB/s | 82 kB 00:00
----------------------------------------------------------------------------------------------------------------------
Total 180 kB/s | 82 kB 00:00
.....
Installed:
ghostscript-9.27-6.el8.x86_64
nothing was added. Then read I needed GraphicsMagick for Rhel though PHP had it already so installed itconvert --version
bash: convert: command not found
But I probably do not need it and it does not include Ghost anyways:dnf install GraphicsMagick GraphicsMagick-devel GraphicsMagick-perl
Last metadata expiration check: 3:25:42 ago on Sun 08 Oct 2023 10:59:31 AM CEST.
Dependencies resolved.
======================================================================================================================
Package Architecture Version Repository Size
======================================================================================================================
Installing:
GraphicsMagick x86_64 1.3.38-1.el8 epel 4.6 M
GraphicsMagick-devel x86_64 1.3.38-1.el8 epel 74 k
GraphicsMagick-perl x86_64 1.3.38-1.el8 epel 172 k
Transaction Summary
======================================================================================================================
Install 3 Packages
Total download size: 4.8 M
Installed size: 9.5 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): GraphicsMagick-perl-1.3.38-1.el8.x86_64.rpm 383 kB/s | 172 kB 00:00
(2/3): GraphicsMagick-devel-1.3.38-1.el8.x86_64.rpm 163 kB/s | 74 kB 00:00
(3/3): GraphicsMagick-1.3.38-1.el8.x86_64.rpm 4.0 MB/s | 4.6 MB 00:01
----------------------------------------------------------------------------------------------------------------------
Total 3.1 MB/s | 4.8 MB 00:01
....
Complete!
...
How can I get the Plesk installed PHP FPM 8.0.3 to find Ghost and work with it well so the plugin can generate the pdf files?gm --version
gm: Unrecognized command '-version'. Use -help for a usage summary or see manual..
[root@snaakbeheer snaakontwerp.nl]# gm version
GraphicsMagick 1.3.38 2022-03-26 Q16 GraphicsMagick Image Processing System
Copyright (C) 2002-2022 GraphicsMagick Group.
Additional copyrights and licenses apply to this software.
See GraphicsMagick Copyrights and Licenses for details.
Feature Support:
Native Thread Safe yes
Large Files (> 32 bit) yes
Large Memory (> 32 bit) yes
BZIP yes
DPS no
FlashPix no
FreeType yes
Ghostscript (Library) no
HEIF/HVEC ("HEIC") no
JBIG yes
JPEG-2000 yes
JPEG yes
JPEG XL no
Little CMS yes
Loadable Modules yes
Solaris mtmalloc no
Google perftools tcmalloc no
OpenMP yes (201511 "4.5")
PNG yes
TIFF yes
TRIO no
Solaris umem no
WebP yes
WMF yes
X11 yes
XML yes
ZLIB yes
...