Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Newbie needs help - php/MySQL and apache |
|
Author |
|
chunli
Joined: 11 May 2007 Posts: 2
|
Posted: Fri 11 May '07 4:25 Post subject: Newbie needs help - php/MySQL and apache |
|
|
Hello,
I want to start off by pointing out that I am completely new to this area, so I would probably need a bit more detail than someone who is familiar with this stuff.
My problem is, I can not get PHP to work with MySQL, it complains about "class not found".
I am using php 5.2.2, apache 2.0.59 and MySQL 5.0.37 ("mysql-essential-5.0.37-win32" package). I am running windows XP sp2. I do not have phpmyadmin (don't think its a requiment, is it?) I have this application called "Navicat" which makes things easy for someone just starting off with this stuff.
I followed some instructions telling me to uncomment
Code: |
extension=php_mysql.dll
extension=php_mysqli.dll
|
But it still does not work.
Any help is very appreciated, thanks. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Fri 11 May '07 7:36 Post subject: |
|
|
Some known issues:
Did you set phpinidir in httpd.conf? So that your apache uses the right ini file?
Sometimes it is needed to copy blibmysql.dll from mysql\bin to apache\bin folder |
|
Back to top |
|
chunli
Joined: 11 May 2007 Posts: 2
|
Posted: Sat 12 May '07 16:20 Post subject: |
|
|
James Blond wrote: | Some known issues:
Did you set phpinidir in httpd.conf? So that your apache uses the right ini file?
Sometimes it is needed to copy blibmysql.dll from mysql\bin to apache\bin folder |
Yeah, have done that and it did not work either. Must just be some small little detail the guides i followed don't mention or something. I ended up using "Xampp" even though i did not want to, and that worked perfectly after a few clicks of the mouse. I really don't want to have Xampp as a permanent solution though, but for now it will do. |
|
Back to top |
|
tdonovan Moderator
Joined: 17 Dec 2005 Posts: 611 Location: Milford, MA, USA
|
Posted: Sat 12 May '07 19:08 Post subject: |
|
|
It might help to edit your php.ini file and set the PHP extension directory.
For example (with PHP 5.2.2 in C:\PHP522) : Code: | ; Directory in which the loadable extensions (modules) reside.
extension_dir = "C:/PHP522/ext"
|
-tom- |
|
Back to top |
|
|
|
|
|
|