Re: OSX PHP freetds MAMP install question...

Daniel Fazekas <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
On May 11, 2010, at 15:00, Cole McDonald wrote:

> This PHP is the code I'm currently using to test my install troubleshooting... I get functions not available, not loaded and not listed in the loaded extensions:

What is it that you saw in the phpinfo() output then?


I'd recommend you to try the command-line cli interface of php, executing "php -m" and checking if it complains about anything. Except I have no idea what and where this weird MAMP thing you use installs.

If you can figure out where your Apache error log is, that will probably contain the same kind of error messages.
On a stock Mac OS X system, it would be in /var/log/apache2/error_log, and you could also browse it using the Console utility.

Or you could try turning
display_startup_errors on
in your php.ini.

My hunch is that when you built the PHP mssql extension, you used the copy of phpize provided by Apple which then resulted in a module compatible with the default Apple installation of PHP, rather than the newer or older MAMP version of it. You'd have to rebuild the module using MAMP's copy of phpize.

The PHP startup warning you would see in this case would look like this:

PHP Warning:  PHP Startup: mssql: Unable to initialize module
Module compiled with module API=200XXXXX
PHP    compiled with module API=200YYYYY
These options need to match
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.