Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble installing custom php 5 on 10.5.4 with mcrypt




On Jul 25, 2008, at 17:10 PM, Jeremy Bush wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Brian Blood wrote:



How about going the other way.....

I ran into a similar situation setting up an Intel Xserve with a new
install of Leopard Server.
I was trying to get the entropy.ch PHP module (which contains mcrypt
FYI) running and it would not load due to "no appropriate image found"
errors.


Apache on Leopard is a fat binary and was trying to load as a 64-bit
app, which of course means that all plug-ins, loadable libraries need to
be 64-bit as well and the Entropy PHP doesn't currently have a 64-bit
x86 image.


Since this is for an Apache 2 web server and I would be using the
pre-forked model and any single one of my requests that would be running
PHP code would be very unlikely to need anywhere near more than even 1GB
of RAM, I forced Apache to run as a 32-bit process so that the PHP
module would load.


I did this by using the lipo command to thin out Apple's apache2 binary
(after making a backup of course) to just contain a 32-bit x86 image.


Works like a charm.

This is not a recommended path to follow, you're better off compiling things using the correct flags than you to open yourself up to issues caused by software update.



Indeed. I guess I was just being 64bit stubborn ;)

Not really, right idea wrong approach.


Jeremy Bush Image Management LLC http://www.imagemanagement.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)

iD8DBQFIikEvQ66b+fgziNURAg5aAJ41pWzTdaaobc1+gIW40xlXUKj/LACfbLSu
EUnySOga36+2DHP3usmK+BI=
=U48B
-----END PGP SIGNATURE-----
begin:vcard
fn:Jeremy Bush
n:Bush;Jeremy
org:Image Management LLC
adr;dom:Suite 200;;610 Main St;Racine;Wi;53403
email;internet:email@hidden
title:Web Master
tel;work:262-898-9137
tel;fax:262-898-9138
url:http://www.imagemanagement.com
version:2.1
end:vcard

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/webmaster% 40macftphttp.serverbox.org


This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden

This email sent to email@hidden

References: 
 >Trouble installing custom php 5 on 10.5.4 with mcrypt (From: Jeremy Bush <email@hidden>)
 >Re: Trouble installing custom php 5 on 10.5.4 with mcrypt (From: Brian Blood <email@hidden>)
 >Re: Trouble installing custom php 5 on 10.5.4 with mcrypt (From: Jeremy Bush <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.