Jump to content

Recommended Posts

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:
<?php
phpinfo();
?>

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
Link to comment
https://forums.phpfreaks.com/topic/31199-cant-configure-php/
Share on other sites

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.
Link to comment
https://forums.phpfreaks.com/topic/31199-cant-configure-php/#findComment-144346
Share on other sites

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
Link to comment
https://forums.phpfreaks.com/topic/31199-cant-configure-php/#findComment-144922
Share on other sites

[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]  ?
Link to comment
https://forums.phpfreaks.com/topic/31199-cant-configure-php/#findComment-146828
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.