Info: Performing the steps described in this article requires direct server access. Depending upon how your system is hosted and the level of access you have to that system, coordination may be required with your Partner or WoodWing Support team. For a full overview of the steps that need to be done by WoodWing and how to request them, see WoodWing Cloud - Change management.
Integrating Ghostscript in Studio Server is a 2-step process:
Step 1. Installing Ghostscript
Step 2. Configuring Studio Server
1. Ghostscript installation
Installation can be done on Windows or on Linux.
Installation on Windows
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" |
Installation on Linux
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. Studio Server configuration
Define the path where Ghostscript is installed:
- File: configserver.php (recommended: config_overrule.php file)
- Name of option: GHOST_SCRIPT_APP_PATH
- Values: The full path to the folder of the Ghostscript application or optionally 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:
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.