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

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.