Jump to content

recompiling php to use mssql extension


Recommended Posts

Hello all,

 

I have a Linux box with Redhat ES 3, using PHP 4.3.2. It will all be upgraded in another 6 months, but I need to get this problem resolved before then.

 

I want to use php to query an SQL Server 2005 on a Windows server. I have freetds installed and configured and can do command line querying.

 

I added the line: extension=mssql.so to the php.ini file.

 

Now, I believe I need to recompile php to use the extension. My question is whether I need to do a recompile on the existing install, or can I install it in another area and just move the mssql.so file into the current install?

 

Also, php was installed as an rpm. If I want to recompile, I assume I need a source rpm (version 4.3.2), but then how do I apply the current configuration information. I have all that information, collected from the phpinfo.php file. I would add ghis:

 

--with-mssql=/usr/local so that it knows about freetds

 

So, any tips would be great. Can I use an rpm to do what I want?

Link to comment
https://forums.phpfreaks.com/topic/208558-recompiling-php-to-use-mssql-extension/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.