Witajcie!
Z góry przepraszam, za poruszenie po raz setny tego samego problemu, ale już nie daję rady. Od razu zaznaczam iż przejrzałem chyba wszystkie możliwe fora i prosiłbym o pomoc.
Ogólne zagadnienia...
Postawiłem webserva na XP-ku. na razie testwowo, chce postawić na tym stronę działającą, a następnie męczyć się z przenosinami na maszynę prodykcyjną.
PHP(5.3 VC9 TS, łączenie przez PDO)
Następnie:
- Zmienne środowiskowe(Path ustawione na ścieżkę z php C:/WebServ/php/ )
- wrzucone dll-ki do ext + windows32 na wszelkie wypadek:
-msql.dll
-ntwdblib.dll
-php_msql.dll
-php_pdo.dll
-php_pdo_mssql.dll
-php_pdo_sqlsrv_53_ts_vc9.dll wyciągnięte z drivera z versji 2.0-wersja 3 nie chce się otworzyć. - DLL dodatkowo wrzucone według tego postu:
http://php.net/manual/en/ref.mssql.php#81594 - Zmiany w php.ini
-włączone php_pdo_mssql.dll
-dodane extension=php_pdo_sqlsrv_53_ts_vc9.dll -sekcja Extension, następnie Added
-zmiana z mssql.secure_connection = Off na mssql.secure_connection = On
*oczywiście ścieżka extension sprawdzona - extension_dir = "C:/WebServ/php/ext/"
Problemy:
Przy starcie serwera wyrzuca błąd:
PHP Startup: pdo_mssql: Unable to initialize module
Module compiled with module API=20050922
PHP compiled with module API=20090626
Those options need to match
Domyślam się, że mam za stary plik, ale innego nie mogę znaleźć.
Ponadto standardowo:
Fatal error: Call to undefined function sqlsrv_connect() in C:\WebServ\httpd\test.php on line 11
Error.log:
[sql]PHP Warning: PHP Startup: pdo_mssql: Unable to initialize module\nModule compiled with module API=20050922\nPHP compiled with module API=20090626\nThese options need to match\n in Unknown on line 0
Warning: PHP Startup: pdo_mssql: Unable to initialize module
Module compiled with module API=20050922
PHP compiled with module API=20090626
These options need to match
in Unknown on line 0
PHP Deprecated: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0
Deprecated: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0
[Mon Mar 11 1520 2013] [notice] Apache/2.2.22 (Win32) PHP/5.3.20 configured -- resuming normal operations
[Mon Mar 11 1520 2013] [notice] Server built: Feb 13 2012 1259
[Mon Mar 11 1520 2013] [notice] Parent: Created child process 4924
PHP Warning: PHP Startup: pdo_mssql: Unable to initialize module\nModule compiled with module API=20050922\nPHP compiled with module API=20090626\nThese options need to match\n in Unknown on line 0
Warning: PHP Startup: pdo_mssql: Unable to initialize module
Module compiled with module API=20050922
PHP compiled with module API=20090626
These options need to match
in Unknown on line 0
PHP Deprecated: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0
Deprecated: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0
[Mon Mar 11 1521 2013] [notice] Child 4924: Child process is running
[Mon Mar 11 1521 2013] [notice] Child 4924: Acquired the start mutex.
[Mon Mar 11 1521 2013] [notice] Child 4924: Starting 64 worker threads.
[Mon Mar 11 1521 2013] [notice] Child 4924: Starting thread to listen on port 80.
[/sql]
Z góry dziekuję!