View previous topic :: View next topic |
Author |
Message |
phirez -
Joined: 22 Apr 2006 Posts: 57
|
Posted: Thu Dec 20, 2007 3:42 am Post subject: Error 500 after exts |
|
|
I installed PHP5 on Mac OS X using the pre-configured package.
Everything worked fine until I installed two extensions (AMFEXT and Xcache). Now I receive a Error 500 every time I try to access any php file.
Note: I did use the "/Applications/PHP5/bin/phpize" binary when installing the extensions |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Thu Dec 20, 2007 3:47 pm Post subject: Re: Error 500 after exts |
|
|
phirez,
Open the Terminal application and execute the following command:
Code: | /Applications/PHP5/bin/php |
What is the output you get? _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
phirez -
Joined: 22 Apr 2006 Posts: 57
|
Posted: Thu Dec 20, 2007 11:40 pm Post subject: |
|
|
Code: | dyld: NSLinkModule() error
dyld: Symbol not found: _OnUpdateInt
Referenced from: ../../../../../../usr/lib/php/extensions/no-debug-non-zts-20020429/xcache.so
Expected in: flat namespace
Trace/BPT trap |
Is what I get.
If I comment out the lines (in php.ini) relevant to xcache I get...
Code: | dyld: NSLinkModule() error
dyld: Symbol not found: _empty_string
Referenced from: /Applications/PHP5/lib/php/extensions/no-debug-non-zts-20060613/../../../../../../usr/lib/php/extensions/no-debug-non-zts-20020429/amf.so
Expected in: flat namespace
Trace/BPT trap
|
I use six '../' because I noticed php would not load extensions if I had just used one '/'. |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sat Dec 22, 2007 3:46 pm Post subject: |
|
|
phirez,
The extension you are loading is not compatible with the PHP 5 core. The errors you are seeing on your Terminal clearly show that there are problems when the extension tried to hook to the PHP 5 libraries.
By the way: /Applications/PHP5/lib/php/extensions/no-debug-non-zts-20060613/../../../../../../usr/lib/php/extensions/no-debug-non-zts-20020429/amf.so shows an interesting information. Your extension is built against the no-debug-non-zts-20020429 PHP core (this is the core dating back to April 2002, probably an old PHP 4 extension). New PHP 5 cores use the no-debug-non-zts-20060613 core (June 2006).
So either recompile your extensions for PHP 5 or use newer ones. PHP is very picky about its extensions. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
phirez -
Joined: 22 Apr 2006 Posts: 57
|
Posted: Sat Dec 22, 2007 11:30 pm Post subject: |
|
|
Problem Solved, I needed to recompile the extensions with the Code: | --with-php-config=/Applications/PHP5/bin/php-config |
argument on the configure script.
Thank you for the help! |
|
Back to top |
|
 |
|