Solved

Installing a PHP extension in a Vagrant environment

Posted on 2016-07-22
6
130 Views
Last Modified: 2016-07-24
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?
0
Comment
Question by:brucegust
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 41725311
Look at 'php.ini' in your 'Vagrant' environment and see what it tells you.  It should look like this...

; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
; extension_dir = "./"
; On windows:
extension_dir = "C:\PHP\ext"

Open in new window

0
 

Author Comment

by:brucegust
ID: 41725358
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.
0
 

Author Comment

by:brucegust
ID: 41725406
php_ini file search
Here's what I came up with, but what corresponds to Vagrant?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 41725407
what corresponds to Vagrant?
I have no idea.  I do know that you have a big mess on that computer.
0
 

Author Comment

by:brucegust
ID: 41726764
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!
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 41726780
Thanks for the points and good luck.  I don't run any VMs at all.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question