Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I install and enable Ghostscript module in PHP? #594

Closed
sachyya opened this issue Jun 20, 2019 · 4 comments · Fixed by devilbox/docker-php-fpm#134 or #645
Closed

How do I install and enable Ghostscript module in PHP? #594

sachyya opened this issue Jun 20, 2019 · 4 comments · Fixed by devilbox/docker-php-fpm#134 or #645
Assignees
Labels

Comments

@sachyya
Copy link

sachyya commented Jun 20, 2019

I am Devilbox for WordPress local development. With WP 4.7, PDF preview image generation is supported but it does not work in Devilbox. Through some research(), I found that
ImageMagick
Imagick
Ghostscript
should be enabled on the server.

Now I am stuck on how to install and enable Ghostscript on Devilobx or say the right way to enable external modules.

@sachyya
Copy link
Author

sachyya commented Jun 20, 2019

So far I have resolved it by installing the ghostscript manually by SSHing into the container using sudo apt-get install ghostscript.

But is there any better way or 'devilbox way' to install it?

@science695
Copy link

inside the rebuild script, you can add:
docker-compose exec php 'apt-get update && apt-get install ghostscript'

Then every time you rebuild the containers, it will install ghostcript.

You might be able to do it in a cfg/startup/ script, but that would run every time the container starts, not just when it is created.

@stale
Copy link

stale bot commented Aug 31, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the issue:stale This issue has become stale and is marked for auto-close label Aug 31, 2019
@stale stale bot closed this as completed Sep 7, 2019
@cytopia cytopia removed the issue:stale This issue has become stale and is marked for auto-close label Nov 17, 2019
@cytopia cytopia self-assigned this Nov 17, 2019
@cytopia cytopia reopened this Nov 17, 2019
@cytopia
Copy link
Owner

cytopia commented Nov 17, 2019

@sachyya will be handled in the php-fpm repository via this PR: devilbox/docker-php-fpm#134

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants