?
Solved

How can I get HttpRequest PHP class on OS X 10.10?

Posted on 2015-01-14
10
Medium Priority
?
218 Views
Last Modified: 2015-02-03
I'm trying to set up a local LAMP environment on my macbook (os x 10.10) and am having problems getting pecl_http to work -- specifically need to be able to access the HttpRequest PHP class.

I've googled the heck out of this and feel like I'm very close, but missing something. Thanks in advance!
0
Comment
Question by:Trevor Lettman
  • 5
  • 4
10 Comments
 
LVL 18

Expert Comment

by:Simon
ID: 40550301
On a Mac it's MAMP rather than LAMP (as the 'L' refers to Linux)...

How have you gone about it? Macports, Homebrew or another route?
0
 

Author Comment

by:Trevor Lettman
ID: 40550308
Ah, yes. I'm using AMPPS for my basic setup. Macports is installed. Here's what I'm getting in the Apache error logs on restart:

PHP Warning:  PHP Startup: Unable to load dynamic library '/Applications/AMPPS/php-5.5/lib/extensions/ext/propro.so' - dlopen(/Applications/AMPPS/php-5.5/lib/extensions/ext/propro.so, 9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/Applications/AMPPS/php-5.5/lib/extensions/ext/raphf.so' - dlopen(/Applications/AMPPS/php-5.5/lib/extensions/ext/raphf.so, 9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/Applications/AMPPS/php-5.5/lib/extensions/ext/http.so' - dlopen(/Applications/AMPPS/php-5.5/lib/extensions/ext/http.so, 9): image not found in Unknown on line 0
[Wed Jan 14 18:36:26.646287 2015] [mpm_prefork:notice] [pid 4386] AH00163: Apache/2.4.10 (Unix) PHP/5.5.19 mod_wsgi/3.5 Python/2.7.8 OpenSSL/1.0.1j configured -- resuming normal operations
[Wed Jan 14 18:36:26.646307 2015] [core:notice] [pid 4386] AH00094: Command line: '/Applications/AMPPS/apache/bin/httpd'

Thanks!
0
 
LVL 18

Expert Comment

by:Simon
ID: 40550314
I don't know about AMPPS. I'll google it. I  have a working MAMP setup (on Mavericks) using the instructions at
Macports: How to integrate Apache2, PHP, and MySQL (MAMP)
which was re-written just a couple of weeks ago to suit Yosemite.

I note that you'd get a newer version of PHP using the Macports package manager, but your focus may be different as I see that AMPPS includes some other stuff.
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!

 

Author Comment

by:Trevor Lettman
ID: 40550316
Once again, it's all set up EXCEPT I get this error:

Fatal error: Class 'HttpRequest' not found in [file name]

It has to do with missing depencies, based on my error log. Just incorrect paths?
0
 

Author Comment

by:Trevor Lettman
ID: 40550317
To be clearer: I'm running a php script that is trying to access the "HttpRequest" class, which isn't available.
0
 
LVL 18

Expert Comment

by:Simon
ID: 40550333
Sorry, I can't help. Someone else on here may be able to, or try the AMPPS support or forums link. It doesn't install to the same paths as Macports does.
0
 

Accepted Solution

by:
Trevor Lettman earned 0 total points
ID: 40551204
Thanks for your help. The issue is resolved (sort of). It was twofold: path issue with the .so files and AMPPS, and a 32/64 bit conflict with the same files once those paths were resolved.
0
 
LVL 18

Expert Comment

by:Simon
ID: 40551246
Whew! glad you managed to make progress with it. I had a quick look at AMPPS website - it looks good, but I had no idea what the level of support might be like or how active the user community might be.
0
 
LVL 31

Expert Comment

by:serialband
ID: 40552634
Was it something to do with the LD_LIBRARY_PATH variable?

I don't have MacPorts, but your error basically tells you it was failing to find the correct propro.so in /Applications/AMPPS/php-5.5/lib/extensions/ext/propro.so
0
 

Author Closing Comment

by:Trevor Lettman
ID: 40585857
Although this was resolved, I'm not sure this is going to help anyone else... the entire process is too lengthy to document here, and may be quite specific to my environment.
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

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

In this article we will discuss some EI Capitan Mail app issues and provide some manual process to resolve them.
This is a tech scam I recently helped my parents through.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

840 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