Error 500 after exts

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
phirez
-


Joined: 22 Apr 2006
Posts: 57

PostPosted: Thu Dec 20, 2007 3:42 am    Post subject: Error 500 after exts Reply with quote

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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu Dec 20, 2007 3:47 pm    Post subject: Re: Error 500 after exts Reply with quote

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 View user's profile Send private message Send e-mail
phirez
-


Joined: 22 Apr 2006
Posts: 57

PostPosted: Thu Dec 20, 2007 11:40 pm    Post subject: Reply with quote

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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Dec 22, 2007 3:46 pm    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail
phirez
-


Joined: 22 Apr 2006
Posts: 57

PostPosted: Sat Dec 22, 2007 11:30 pm    Post subject: Reply with quote

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 View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group