Issue
How can we enable the Ghostscript feature for users under CageFS?
- WordPress Thumbnails for PDF files were not generated
- WordPress PDF will not generate thumbnail
- WordPress Ghostscript PDF thumbnails
- WordPress Ghostscript shown as not working
- WordPress Ghostscript PDF Preview
Environment
- Cloudlinux
- CageFS
Solution
Install ImageMagick and ghostscript RPM
yum install ImageMagick
yum install ghostscript
Enable Ghostscript under CageFS
cagefsctl --addrpm ghostscript
cagefsctl --force-update
cagefsctl -M
For testing the following PHP script can be used to test Ghostscript functionality:
<?php
$output = shell_exec('gs -v');
if(strpos($output, 'Ghostscript') !== false)
{
echo "Ghostscript is installed. Version details: " . $output;
}
else
{
echo "Ghostscript is not installed or not accessible.";
}
?>
Comments
0 comments
Please sign in to leave a comment.