[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now


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

Posted on 2015-01-14
Medium Priority
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!
Question by:Trevor Lettman
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
  • 5
  • 4
LVL 18

Expert Comment

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?

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'

LVL 18

Expert Comment

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.

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.


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?

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.
LVL 18

Expert Comment

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.

Accepted Solution

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.
LVL 18

Expert Comment

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.
LVL 30

Expert Comment

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

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.

Featured Post

Independent Software Vendors: 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!

Question has a verified solution.

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

Syslogd is a utility that traps and logs messages sent by running processes. It is configured with the syslog.conf file, which consists of lines containing a pair of fields: "the selector field which specifies the types of messages and priorities to…
We could spend the next millennium discussing the differences of the Mac and Windows platforms. The next century will continue to have fanatics on both side of the equation and neither side will win the war. However, that’s not why we are here. W…
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…

650 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