Link to home
Start Free TrialLog in
Avatar of Bruce Gust
Bruce GustFlag for United States of America

asked on

Installing a PHP extension in a Vagrant environment

I've been able to install the php_pdflib.dll successfully in my bin directory in a WAMP environment. So I know the correct PHP version as well as the VS version.

On the same machine, I've got a Vagrant environment and I need to install the same PDFlib. How? I've done a search for the bin directory or anything that resembles what I'm expecting to see and I'm not finding anything.

Thoughts?
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bruce Gust

ASKER

That's just it, Dave, and forgive me for being a pig on roller skates, here, but where would I look for the php.ini file within Vagrant? I've done a Ransack search and I can't find squat.
User generated image
Here's what I came up with, but what corresponds to Vagrant?
what corresponds to Vagrant?
I have no idea.  I do know that you have a big mess on that computer.
I'm getting closer, Dave! I've been doing some research and I'm now realizing that Vagrant is a VM that's designed to maintain consistency between developers so there's never a situation where you have one guy saying, "it works on my box."

But if that's the case, I don't understand why I'm running into a situation where I run into "Fatal error: Class 'PDFlib' not found in /vagrant/html/application/helpers/StatementImager/AbstractStatementPDFGenerator.php on line 74." Does it not make sense that if my VM is a clone of the server environment that the actual app runs on that I would have the necessary libraries and extensions installed by default?

I'm going to go ahead and close this question. Thanks for your feedback. I'm now trying to learn how I can set up and run a phpinfo(); page in Code Igniter. That's the framework I'm using on my local box that's tied into the Vagrant environment. I'm thinking if I can see where it's pulling all of it's configurations from I can figure this out a lot quicker. Thanks!
Thanks for the points and good luck.  I don't run any VMs at all.