Integrating Ghostscript in Enterprise Server 10 is a 2-step process:
Step 1. Installing Ghostscript
Step 2. Configuring Enterprise Server
Info: This article contains references to macOS. Running Enterprise Server 10 on macOS is only supported on Enterprise Server version 10.8 or lower.
1. Ghostscript installation
Step 1. Download the installer from http://sourceforge.net/projects/ghostscript/files/.
Step 2. Install Ghostscript in the following location:
/usr/local
Note: The binaries are installed in /usr/local/bin.
Step 1. Download a version under the GPL license from http://prdownloads.sourceforge.net/ghostscript.
Tip: The same link can also be used for downloading other versions (under another license).
Note: Open a subdirectory and locate a file named "gs###w32.exe" (where ### is the version number, for instance gs907w32.exe).
Step 2. Run the installer and follow the instructions.
Step 3. Allow a PHP page to start a command shell.
IMPORTANT: Allowing PHP pages to execute a command shell can cause a security risk for your Web server because any PHP page can now execute any DOS command. Therefore, be sure that:
|
This can be established in two ways:
- Copy the executable cmd.exe from the <windows>\system32 directory to the PHP directory (the directory where php.exe resides, e.g. c:\php).
- Assign “read and execute” access rights for the Web server user IUSR_<machinename> to the file cmd.exe in the <windows>\system32 directory.
Notes:
"Unable to Fork" |
Use one of the following methods:
- Download a version under the GPL license from http://prdownloads.sourceforge.net/ghostscript/. Choose a version subdirectory first, for instance “9.07”. Run the file.
Tip: The same link can also be used for downloading other versions (under another license).
- Download the .tar.gz archives, and compile and install the source code. Follow the instructions in the “How to install Ghostscript” document (doc/install.htm).
2. Enterprise Server configuration
Define the path where Ghostscript is installed:
- File: configserver.php
- Name of option: GHOST_SCRIPT_APP_PATH
- Values: The full path to the folder of the Ghostscript application or (optionally on Windows) to the executable.
Note: Use forward slashes and do NOT end with a slash.
On Windows 64-bit platforms, Ghostscript can be run as either a 32-bit application or a 64-bit application. Enter one of the following values:
- To point to the 32-bit version, point to the directory or to the executable
- To point to the 64-bit version, point to the executable
- Example:
- For Linux/Mac:
define( 'GHOST_SCRIPT_APP_PATH', '/usr/local/bin' );
- For Windows:
define( 'GHOST_SCRIPT_APP_PATH', 'C:/Program Files/gs/gs8.71/bin/gswin64c.exe' );
Comment
Do you have corrections or additional information about this article? Leave a comment! Do you have a question about what is described in this article? Please contact Support.
0 comments
Please sign in to leave a comment.