Uhh...Nikako da nateram PHP da radi sa MySQL-om...
Instalirao sam Apache 2.2.4, MySQL 5.0.45 i PHP 5.2.3 (zip).
Sve sam instalirao po ovom uputstvu.Naravno,umesto php4ts.dll sam u Windows folder iskopirao php5ts.dll.I umesto ovoga ->
ScriptAlias /php/ "c:/Program Files/Web Settings/PHP/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .htm
AddType application/x-httpd-php .html
AddType application/x-httpd-php .phtml
Action application/x-httpd-php "/php/php.exe
sam u httpd.conf stavio ovo ->
LoadModule php5_module "c:/Program Files/Web Settings/PHP/php5apache2_2.dll"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .htm
AddType application/x-httpd-php .html
AddType application/x-httpd-php .dhtml
Action application/x-httpd-php "/php/php.exe
Sa ovim podesavanjima 'sve' funkcionise kako treba,ali PHP nece da se zakaci na MySQL...
U php.ini sam ikljucio php_mysql.dll (pokusavao sam i sa php_mysqli.dll),ali i dalje nece .
Evo greske iz Apache loga:
[Sun Jul 29 05:18:14 2007] [notice] Apache/2.2.4 (Win32) PHP/5.2.3 configured -- resuming normal operations
[Sun Jul 29 05:18:14 2007] [notice] Server built: Jan 9 2007 23:17:20
[Sun Jul 29 05:18:14 2007] [notice] Parent: Created child process 2076
PHP Warning: PHP Startup: Unable to load dynamic library './php_mysql.dll' - The specified module could not be found.\r\n in Unknown on line 0
[Sun Jul 29 05:18:15 2007] [notice] Child 2076: Child process is running
[Sun Jul 29 05:18:15 2007] [notice] Child 2076: Acquired the start mutex.
[Sun Jul 29 05:18:15 2007] [notice] Child 2076: Starting 250 worker threads.
[Sun Jul 29 05:18:15 2007] [notice] Child 2076: Starting thread to listen on port 80.
[Sun Jul 29 05:47:06 2007] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function mysql_connect() in C:\\www\\viki\\unos.php on line 8
Ima li neko neki predlog?
|