I need help getting php under Tomcat to see my MySql databas
Posted: Fri Jan 18, 2008 7:08 pm
Ok I have php 5 installed and Apache Tomcat 5.x
I was able to get php working under Tomcat OK
Now I already had Mysql database 5 isntalled and want to use it via php.
I follow instructions which said go into php.ini and uncomment the php_mysql.dll extension, then I copied the php_mysql.dll and libmysql.dll so they are both under c:\php
C:\php is under my system path
Isn't that all I was supposed to do?
When I restarted my web server and ran phpinfo I still dont egt any mysql section... help!
UPDATE: It must be something specific to php under Tomcat, because I just tried Apache2 server and everything works, including mysql. But I really need this functionality under Tomcat. Perhaps I need some kind of extra libraries in Tomcat for mysql??
I was able to get php working under Tomcat OK
Now I already had Mysql database 5 isntalled and want to use it via php.
I follow instructions which said go into php.ini and uncomment the php_mysql.dll extension, then I copied the php_mysql.dll and libmysql.dll so they are both under c:\php
C:\php is under my system path
Isn't that all I was supposed to do?
When I restarted my web server and ran phpinfo I still dont egt any mysql section... help!
UPDATE: It must be something specific to php under Tomcat, because I just tried Apache2 server and everything works, including mysql. But I really need this functionality under Tomcat. Perhaps I need some kind of extra libraries in Tomcat for mysql??