Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ApacheHTTP-PHP-MySQL combination

1 view
Skip to first unread message

gabriël

unread,
Sep 9, 2010, 4:13:19 AM9/9/10
to
I installed Apache HTTP Server 2.2 on a Windows 7 workstation and that
works just fine.
Then I installed PHP 5.2.14 and that works also as it should be.
In order to recognize PHP I added following entries in the apache
http.conf file :

PHPIniDir "C:/PHP/"
LoadModule php5_module "C:/PHP/php5apache2_2.dll"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

with the following script I can see the complete PHP configuration.
<?php
phpinfo();
?>

Afterwards I installed MySQL Server 5.1.50 and even that seems to work
fine as a stand-alone server (with an admin tool I can add databases,
tables, queries,...).
In order to use MySQL server in the web environment I removed the ";"
in the PHP.ini file for the following extensions:

extension=php_mbstring.dll
extension=php_mysql.dll

But if I use a PHP script that uses mysql server I get an error message:
"Cannot load mysql extension. Please check your PHP configuration."

Can anyone help me with this?

many thanks in advance.

Luuk

unread,
Sep 11, 2010, 12:51:37 PM9/11/10
to
Op 09-09-10 10:13, gabriël schreef:

what is the value of extension_dir in your PHP.INI,
and does php_mysql.dll exists in that directory ?

extension_dir="C:\PHP\ext"

--
Luuk

gabriël

unread,
Sep 12, 2010, 12:08:18 PM9/12/10
to
thank you very much for the answer.
Meanwhile I got my mySQL Server up and running.
The first item was indeed the extension_dir setting.
The second item was a system vatiable: in the path the entries
c:\program files\SQL\Bin and C:\PHP had to be added.
0 new messages