PHP 5.5 and MSSQL driver: Installing ODBC Driver 11 in Windows Server 2012 R2 - sql-server-2012

I have a Windows Server 2012 R2 with IIS 8.5, and another server with MSSQL 2012. I must install PHP in IIS and connect to MSSQL, and I don't have Internet available for Web PI.
I managed to install PHP 5.5 and I'm able to run phpinfo(), and I also assured that php.ini is being loaded from C:\php\php.ini.
I was also able to load sqlsrv driver, it reports in example sqlsrv.ClientBufferMaxKBSize 10240 10240.
But when I execute a php file that connects to DB, I get a message
This extension requires the ODBC Driver 11 for SQL Server. Access the following URL to download the ODBC Driver 11 for SQL Server for x86: http://go.microsoft.com/fwlink/?LinkId=163712
I went to that site and it says
Supported operating systems for version 3.1 of the driver include Windows Server 2012 R2`.
It says
Version 3.1 requires Microsoft ODBC Driver 11 (or higher) for SQL Serverand points tohttp://www.microsoft.com/en-us/download/details.aspx?id=36434`.
In that page, in System Requirements, WinServer 2012 R2 is not listed. When I try to install msodbcsql.msi I get message
Installation of this product failed because it is not supported on this operation system. For information on supported configurations, see the product documentation.`
Well I'm now stuck. I need PHP in WinServer 2012 R2 and IIS 8.5 connecting to MSSQL 2012. But its driver requires ODBC 11, which seems to not support latest WinServer.
Is there any hope, or will I need to wait for Microsoft to support its own OS in its own drivers?

Be sure to download the 1033\x64\msodbcsql.msi (4.4 MB) installer. Even though you are using PHP x86, you need the x64 installer since the OS is x64. I had the same issue and my app now works with PHP x86 after installing the x64 installer.

Related

I can't install SQL Server 2012 on Windows 8

When I try to install SQL Server 2012 on Windows 8, I have a problem.
Windows installer error message:
An error occurred during the installation of assembly 'microsoft.vc80.atl,version="8.0.50727.6229",publickeytoken="1fc8b3b9a1e18e3b",processorarchitecture="x86",type="win32"'. Please refer to help and support for more information. hresult: 0x80070422.
You are trying to install a 64bit SQL Server 2012, with a 32bit processor. I would suggest to download and install the 32bit version.
Download sql server on the basis of the processor of your computer/laptop.(32bit/64bit/ for mac version). you would not face this error

eAccelerator not working in xampp 1.8.0

from error log:
eAccelerator requires Zend Engine API version 220090626.
The Zend Engine API version 220100525 which is installed, is newer.
Contact eAccelerator at http://eaccelerator.net for a later version of eAccelerator.
from phpinfo()
System Windows NT 6.1 build 7601 (Windows Server 2008 R2 Web Server Edition Service Pack 1) i586
Build Date Jun 13 2012 21:17:57
Compiler MSVC9 (Visual C++ 2008)
Architecture x86
Server API Apache 2.4 Handler Apache Lounge
PHP Extension Build API20100525,TS,VC9
Debug Build no
Thread Safety enabled
how can I solve this problem?
Eaccelerator needs to be compiled for exactly the version of zend engine it is used with. You cannot copy a dll from any old installation into a new Php engine version. Eaccelerator is no longer maintained. Please check out "XCache" which is maintained and compatible with php up to 5.5.x:
http://xcache.lighttpd.net/
eAccelerator not working because incompatibility with PHP 5.4.0.

Installing ArangoDB on Windows Server 2008

I'm having difficulty getting Arango 1.4.9 working on my Windows 2008 Standard (SP2) server. It's a fresh install. When I try to start Arango Server I receive this message:
The procedure entry point TryAcquireSRWLockExclusive could not be located in the dynamic link library KERNEL32.dll
I have tried both the 64bit and 32bit versions. I have run the installer as an administrator and vice versa. Any ideas?
TryAcquireSRWLockExclusive is from a newer Windows API. The Windows 2008r2 build uses newer Windows API features such as SRW (Slim/Reader Writer) API to improve performance. These are not available in Windows Server 2008.
I assume that you must recompile for Windows 2008 or ask for a suitable binary in the support forum (https://groups.google.com/forum/#!forum/arangodb).

The 'SQLNCLI' provider is not registered on the local machine, sql server 2012

Working on deploying an application from my development box to a client. On the client when I run my exe, I get the error "The 'SQLNCLI10' Provider is not registered on the local machine.
I'm developing in SQL Server 2012. I have tried installing sqlncli.msi on the target machine with no luck.
Can anyone tell me what package I need to install on the client machine to get my app to work? And if possible provide a URL to said package?
Thanks!
Figured out I needed the 2008 version as opposed to the 2012 version.
http://go.microsoft.com/fwlink/?LinkId=123718&clcid=0x409
Are you perhaps working on a 64 bit machine and used the 32-bit install?
Here's the 64-bit link: http://go.microsoft.com/fwlink/?LinkID=188401&clcid=0x409
Use SQLNCLI11 for connecting to SQLserver 2012
eg:
Provider=SQLNCLI11;Data Source=trv6s177;Integrated Security=SSPI;Initial Catalog=DPVCube_Stage
Downloads
http://go.microsoft.com/fwlink/?LinkID=239649&clcid=0x409
X86 Package (sqlncli.msi)
http://go.microsoft.com/fwlink/?LinkID=239650&clcid=0x409
X64 Package (sqlncli.msi)
Some updates:
SQLNCLI11 works on windows 10 as well, and it can connect SQL 2012 and 2014 (not tested on later SQL versions)
This is the latest version available
At the time of writing, the most updated package can be found here:
https://www.microsoft.com/en-us/download/confirmation.aspx?id=50402
SQL ServerĀ® 2012 Native Client - QFE
From Microsoft:
It is not recommended to use this driver for new development.
The new OLE DB provider is called the Microsoft OLE DB Driver for SQL Server (MSOLEDBSQL)
which will be updated with the most recent server features going forward.
Article:
https://learn.microsoft.com/en-us/sql/relational-databases/native-client/sql-server-native-client?view=sql-server-2017
Download link:
https://learn.microsoft.com/en-us/sql/connect/oledb/oledb-driver-for-sql-server?view=sql-server-2017
Install the sqlncli10 provider on your machine.
The sqlncli10 provider for SQL 2008 R2 can be downloaded from here.
X86 package.
X64 package

Trinidad 1.2.3 can't running in windows server 2008 R2

I have an rails app was using trinidad 1.0.5 on windows server 2008 R2, but today I update trinidad to 1.2.3, and find out it unsupported. Is trinidad no more support windows platform?
the message when I run trinidad:
c:\myapp> jruby -S trinidad -e production
Error daemonizing Trinidad: Unsupported Operating System Windows Server 2008 R2
Support has not been dropped for the Windows platform, but you have probably run up against a bug.
Are you using 64-bit Server 2008 R2?
There is an open issue on the Trinidad Init Services GitHub page for 64-bit 2008 R2 entitled "The bundled version of prunsrv doesn't work on Windows Server 2008 R2 64-bit"
Essentially, it is looking like the bundled library is 32-bit.
A workaround would be to download the 64-bit library linked from the issue and manually swap the library in-place, until Trinidad has been scripted to do this for you.