Click to See Complete Forum and Search --> : Finding extensions on Apache


Ethelbert2
09-02-2006, 07:09 AM
I have set up and run php on past computers using phpmyadmin.

Trying to install again on a new machine.

I have set up Apache 1.3.27, MYsql 5.0.21 and PHP5.1.5 as an apache module on my WinXPSP2 machine. I have the ZoneAlarm free version running as a firewall (before I had Kerio).

Apache works, MySQL works via the MySQL GUI tools and PHP delivers a page of info when I call a phpinfo() file in the browser.Firefox.

But it does not seem to find the extensions - I have tried to set up PHPMyAdmin which keeps telling me that it cannot load the mysql extension and that I need to check the php.ini. MYSQL is not shown on the phpinfo page either as itself or under "additional modules".

I edited the "recommended" ini file as suggested on the php manual to enable the MySQL module and to include the extensions path with

extension_dir = c:\php\ext

Renamed it ini of course. The ini is in the c:\php file

I thought the php.ini file was OK and should direct it to the extension files. I have uncommented the requisite bits (the mysql extensions eg) and
I edited the windows PATH variable to include C:\php

ON the php info panel which phpinfo() calls the configuration path is given as C:\Windows

Two questions - what have I missed in getting the extension recognised?

And should it be the MySQL or MySQLi extension that I use anyway? Or both

Thank you

Ethelbert2
09-02-2006, 11:32 AM
Self-answer

Two problems - my ext dir pointer in the ini file had a semi-colon instead of a colon after the c ie c;\php instead of c:\php


But also the system was not finding the php file on c anyway because I did not read the manual carefully enough. As well as adding C:\php to the path you also have to create a new variable - a phprc variable in the "environment variables" section of Win XP.


So this is resolved may I tell the mediators