johnbarrett Posted December 19, 2006 Share Posted December 19, 2006 Hi,I just downloaded apache 2.2, and php 5.2 both were done both the installers.php was installed in "C:\Program Files\PHP"Apache was installed in "C:\Program Files\Apache Software Foundation\Apache2.2"I am reading a book that says that I have to change two settings in the httpd.conf file:(1) Add-- LoadModule php5_module C:/Program Files/PHP/php5apache2_2.dll(2) Add--AddType application/x-httpd-php .php After this I restart the computer, hoping that php will work, but no such luck.I wrote a page (stored in htdocs) called info.php which has:<?phpphpinfo();?>I just see the text, so I know that php is not working.Can somebody please help a newbie out with this, I am so confused with this, I never thought that it would be this hard getting php to work:(I can be reached at johnbarr@hawaii.edu (personal) or nutratc@hawaii.edu (work)Thank you so much,John Quote Link to comment https://forums.phpfreaks.com/topic/31199-cant-configure-php/ Share on other sites More sharing options...
ukdmbfan Posted December 19, 2006 Share Posted December 19, 2006 First of all, after making any changes, you shouldn't need to restart the computer - just stop and start (or restart) Apache itself.Next, it's usually easier to install your server software into folders with simple names, makes editing the configuration files a lot easier. A root folder such as C:\Server is usually quite good, so you end up with C:\Server\PHP and C:\Server\Apache - the folder names don't need to reflect the actual server name or version.There are loads of guides on the internet for installing and configuring Apache and PHP as it's a very common server setup; try typing something like "installing apache and php on windows" into Google and browsing through the results, one should suit you.Although it's not particularly hard to get the both of them running on Windows, it does require you to have your wits about you. Quote Link to comment https://forums.phpfreaks.com/topic/31199-cant-configure-php/#findComment-144346 Share on other sites More sharing options...
johnbarr Posted December 20, 2006 Share Posted December 20, 2006 Hi,Well I can't seem to fix this. I even tried downloading the Wamp5 that I saw on this list. This Wamp5 does not work either. The same problem, I have checked the conf file in apache,and everything seems to be correct. I even tried just using apache 2.05 instead of apache 2.2.I was trying to set this up for my Nutrition teacher at school, and was going to make him a web site, but with how hard this is to set up, I am not going to try any more. I have used ColdFusion in the past, which was so easy to set up, and I was thinking about trying php as I have heard so many good things about it. I will be using php, but on a host, not setting this up myself! Unless my teacher friend that I was going to help out(without pay), wants to pay for php hosting I am not going to try to set up this server. Might be okay for server people, but I am more of a designer(actually I study graphic design).Anyway, thanks so much for your help:)John Quote Link to comment https://forums.phpfreaks.com/topic/31199-cant-configure-php/#findComment-144922 Share on other sites More sharing options...
xray Posted December 23, 2006 Share Posted December 23, 2006 [quote author=johnbarrett link=topic=119211.msg487956#msg487956 date=1166502787]I am reading a book that says that I have to change two settings in the httpd.conf file:(1) Add-- LoadModule php5_module C:/Program Files/PHP/php5apache2_2.dll(2) Add--AddType application/x-httpd-php .php [/quote]Did you do [b](3) Add-- PHPIniDir "C:/Program Files/php"[/b] ? Quote Link to comment https://forums.phpfreaks.com/topic/31199-cant-configure-php/#findComment-146828 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.