freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] FreeTDS - PHP - Mac OS X Leopard Server
- From: Eloy Lafuente <stronk7 AT moodle.org>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] FreeTDS - PHP - Mac OS X Leopard Server
- Date: Fri, 25 Sep 2009 15:46:59 +0200
I'd suggest you to use the MacPorts way:
http://www.macports.org/
It's a really handy "downloader/compiler/installer" for all those of things, looking for dependencies, configuring... lots easier than the manual way. I used to be "manual-guy" until discovered it. Once intalled, something like this will do the whole work:
port install php52 +apache2 +mssql +mysql5 +postgresql83
(see variants for options available on each package)
That is my current php5 port, it installs the freetds php driver by default.
Ciao, stronk7 :-)
Daniel Fazekas escribió:
On Sep 25, 2009, at 14:59, Nikhil wrote:
Does anyone have a successful FreeTDS installation with Leopard Server? The built-in PHP module in Leopard is not configured for MSSQL and I cannot seem to get PHP to talk with FreeTDS.
You'll have to build and install the mssql php extension.
First you have to get the PHP source code matching the version on your system.
It's probably easiest to go to
http://www.opensource.apple.com/
Select the Mac OS X version you got, and look for the package named "apache_mod_php-*"
Expand the archive until you get to the actual PHP source code, then it should be as simple as:
cd ext/mssql
phpize && ./configure && make && sudo make install
Then edit /etc/php.ini to get your freshly installed extension loaded:
extension = mssql.so
Finally you may have to reload Apache so that the changes could take place.
sudo apachectl graceful
Or you could try to use the ODBC driver in FreeTDS as PHP on Mac OS X already comes with the odbc extension built in.
_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
--
/// Moodle - open-source software for collaborative learning
///
/// Free software, community, information: http://moodle.org
/// Commercial support and other services: http://moodle.com
-
[freetds] FreeTDS - PHP - Mac OS X Leopard Server,
Nikhil, 09/25/2009
-
Re: [freetds] FreeTDS - PHP - Mac OS X Leopard Server,
Daniel Fazekas, 09/25/2009
-
Re: [freetds] FreeTDS - PHP - Mac OS X Leopard Server,
Eloy Lafuente, 09/25/2009
- Re: [freetds] FreeTDS - PHP - Mac OS X Leopard Server, Nikhil, 09/25/2009
-
Re: [freetds] FreeTDS - PHP - Mac OS X Leopard Server,
Eloy Lafuente, 09/25/2009
-
Re: [freetds] FreeTDS - PHP - Mac OS X Leopard Server,
Daniel Fazekas, 09/25/2009
Archive powered by MHonArc 2.6.24.