Jump to content

[SOLVED] configuring MySQL 5 with Apache 2.2 with PHP 5.2.3


Guardian-Mage

Recommended Posts

I have Apache and PHP installed already. They work fine. I tried to install MySQL 5. Everything went downhill. None of the tutorials I read help. First of all, here is what my PHP directory looks like:

 

http://www.NorthernLightstech.com/myphp.png

 

From what I can tell I should have a lot more files but I don't. That is a plain installation, I have modified nothing. My PHP.ini file is here:

 

http://www.NorthernLightstech.com/php.ini.txt

 

and my apache 2.2 http.conf file

 

 

http://www.NorthernLightstech.com/httpd.conf.txt

 

And I haven't touched my MySQL installation.

Please help

I guess you have used the installer. The installer doesn't come with all the files. Download the zip package on the php.net download page and then extract the zip contents into the installation folder for PHP overwriting existing files.

 

Also remove the following lines in the httpd.conf:

LoadModule php5_module "d:/Program Files/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "D:\Program Files\php"

For some reason they are in there.

 

PHP is installed in C: not D: and the correct config lines have been added at the bottom of the httpd.conf by the installer.

 

Now add this line:

PHPIniDir "C:\\Program Files\\php"

at the bottom of the httpd.conf after this line:

LoadModule php5_module "C:\\Program Files\\php\\php5apache2_2.dll"

 

Once you have done that restart Apache.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.