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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.