[MSSQL][APACHE-WIN] Problem z połączeniem z bazą., Problem połączenia z bazą mssql. |
[MSSQL][APACHE-WIN] Problem z połączeniem z bazą., Problem połączenia z bazą mssql. |
11.03.2013, 15:59:00
Post
#1
|
|
Grupa: Zarejestrowani Postów: 1 Pomógł: 0 Dołączył: 11.03.2013 Ostrzeżenie: (0%) |
Witajcie!
Z góry przepraszam, za poruszenie po raz setny tego samego problemu, ale już nie daję rady. Odrazu zaznaczam iż przejrzałem chyba wszystkie możliwe fora i prosiłbym o pomoc. Ogólne zagadnienia... Postawiłem webserva na XP-ku. Narazie 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: 1. Zmienne środowiskowe(Path ustawione na ścieżkę z php C:/WebServ/php/ ) 2. 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ć. 3. DLL dodatkowo wrzucone według tego postu: http://php.net/manual/en/ref.mssql.php#81594 4. 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:
Z góry dziekuję! |
|
|
23.10.2013, 23:07:58
Post
#2
|
|
Grupa: Zarejestrowani Postów: 171 Pomógł: 18 Dołączył: 13.03.2009 Skąd: lublin Ostrzeżenie: (0%) |
moduł pdo_mssql masz nie do tej wersji PHP co odpalasz z Apache tylko do starszej - cóż załatw sobie nowszy to zadziała
|
|
|
23.10.2013, 23:18:24
Post
#3
|
|
Grupa: Zarejestrowani Postów: 3 034 Pomógł: 366 Dołączył: 24.05.2012 Ostrzeżenie: (0%) |
Cytat 11.03.2013 na pewno to przeczyta
|
|
|
Wersja Lo-Fi | Aktualny czas: 24.09.2024 - 08:52 |