View Full Version : PHP to Apache

01-19-2009, 08:22 AM
So, Im trying to install the last of the 3 installations...MySQL, Apache, and PHP.

I'm trying to config the httpd.conf file in apache.

I'm following the following steps and afterwards I create a phpinfo.php file and place in the htdocs folder in apache.

Add following lines to httpd.conf file:
LoadModule php5_module C:/php/php5apache2_2.dll
PHPIniDir "C:/php/"
AddType application/x-httpd-php .php .html

I try to read the file http://localhost/phpinfo.php and get a screen with the code inside the file <?php phpinfo(); ?>.

I am suppose to get a buch of info on the php configuration. What am i doing wrong.

MySQL 5.1.30
Apache 2.2.11
PHP 5.2.8 (no PECL packages)

01-19-2009, 08:58 AM
someone recently posted that they got this going in vista, personally after weeks of pulling my hair and teeth out I confess i gave up and used apache 2 triad, it self installs and makes you weep how easy it is.

01-19-2009, 02:08 PM

01-19-2009, 06:47 PM
yes i installed all 3 on vista about 2-3 weeks ago, i used 2 video tutorials for apache and php, mysql is simple enough to install yourself.

i would recommend you uninstall apache and MySQL, and make sure all folders etc are also removed then install them in this order: apache, php then mysql.

Here are the video tutorials , follow them in order, minimise the video browser window so u can work and watch/pause the video when needed,
vista tutorial:

p.s click the watch in new window link.

windows tutorial:


Hope this helps.
(woohoo i think this maybe my first helpful post rather than help needed lol)

01-20-2009, 11:25 PM
Thanks, everything is good. I used your links bee80. but i did have to change a few things just for FYI.

I had to point to php5apache2_2.dll instead of php5apache2.dll in LoadType.

Also, I had uninstalled and reinstalled MySQL multiple times and the last time it had a problem with the password from the previous install.

There is a hidden C:\programdata\ folder that had a MySQL folder that needed to be deleted.

Thanks again.

01-21-2009, 05:16 PM
wampserver would have been easier