PDA

View Full Version : PHP to Apache


JDesigns
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)

edbr
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.

davidj
01-19-2009, 02:08 PM
http://www.wampserver.com/en/

bee80
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:

http://www.sebastiansulinski.co.uk/web_design_tutorials/web_server/install_apache/install_apache.php?id=apache#
p.s click the watch in new window link.

windows tutorial:

http://www.sebastiansulinski.co.uk/web_design_tutorials/web_server/installing_apache_php_mysql_a.php

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

JDesigns
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.

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