Forum Moderators: coopster

Message Too Old, No Replies

php/mysql problem? -- phpinfo(); not processing once php.ini updated

         

mightymid

5:13 pm on Feb 15, 2005 (gmt 0)

10+ Year Member



I installed PHP 5 and MySQL Server 4.1 on my Windows 2000 server.

The documentation at php.net states that after installing MySQL, you must enable php_mysql.dll in php.ini. So I did that, restarted the server, and then tried running phpinfo() to check to see whether MySQL was running.

The phpinfo file wouldn't process. It eventually ended in a CGI timeout. If I comment the php_mysql.dll line back out, phpinfo() processes just fine.

For what it's worth, I also copied libmysql.dll into the WINNT directory, as directed by php.net.

Anyone know what I'm doing wrong?

Thanks,
Mid.

coopster

6:29 pm on Feb 15, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



To make sure that the dlls can be found, you can either copy them to the system directory (e.g. winnt/system32 or windows/system) or you can make sure that they live in the same directory as the main php executable or dll your web server will use (e.g. php.exe, php5apache.dll). The latter is much easier.

More tips here:
Installing PHP5 Under Windows XP and Apache [webmasterworld.com]