Quantcast
Channel: Microsoft Drivers for PHP for SQL Server forum
Viewing all articles
Browse latest Browse all 163

Apache vs IIS - Can the PHP / SQL Drivers be used with Apache + PHP + SQL instead of IIS + PHP + SQL Server?

$
0
0

Trying to get an Apache + PHP + SQL server upgraded to newer software.  Having problems.  Wondering if PHP SQL Server extensions are compatible with Apache.

I have previously used a configuration with Apache2.2 + PHP5 + SQL Server 2008 R2 for years which has worked wonderfully.   I'm now trying to upgrade to:

Apache 2.4

PHP 7.0  (ThreadSafe)

SQL 2008 R2 and eventually SQL 2014

Windows 7 SP1, 64 Bit

I got Apache and PHP connected and working (before PHP SQL drivers).  I've then tried to load the PHP SQL server extensions (x64 TS versions).  Also added version 11 odbc driver.   Tried to add the version 11 SQL Native Client but SNAC wouldn't install.  

After loading the PHP SQL server extensions in my Ext folder:

php_sqlsrv_7_ts_x64

php_pdo_sqlsrv_7_ts_x64

Neither sqlsrv or PDO extensions will load when PHP loads.  They do not show up when I run the PHPInfo() command to view the PHP setup.  I've done all the basic stuff (I hope) like restarting Apache, verifying the X64 vs X86 versions, verified my spelling, added the loadModule command, enabled extensions,  etc..


PHP ERROR LOG:

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\PHP\\ext\\php_sqlsrv_7_ts_x64.dll' - The specified procedure could not be found.\r\n in Unknown on line 0

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\PHP\\ext\\php_pdo_sqlsrv_7_ts_x64.dll' - The specified procedure could not be found.\r\n in Unknown on line 0

In any event, is it even possible to use these drivers with Apache instead of IIS?   Also, the error log is weird in that its showing double "\\" in the error log file path description.  I would not expect to see that.

I've previously had to copy that pesky NTWDBLIB.DLL into system32 on my xp web server.  Could that be the problem in X64 win7?  Also had to copy msvcr71.dll previously as well.  Don't know if they are used in X64 Win 7 OS.

Any ideas?


Viewing all articles
Browse latest Browse all 163

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>