httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Fleming" <>
Subject Re: PHP 4.2 and Apache 2.0.35 for Csaba and others
Date Mon, 06 May 2002 22:04:13 GMT
you need to add these lines to httpd.conf

AddType application/x-httpd-php .php .php3
AddType application/x-httpd-php-source .phps

----Original Message Follows----
From: "Alex" <>
To: "Users" <>
Subject: PHP 4.2 and Apache 2.0.35 for Csaba and others
Date: Mon, 6 May 2002 17:55:47 -0500

My Apache works . I am able to display my web page at local host. The
problem is PHP .  I was following the instructions posted at
"website database basics with php and mysql" it says to create a document
"helloworld' and save it as a text file with the name "helloworld.php" and
then with your web browser to open it up and it says it would display
"HelloWorld". Well when I open it, it shows the code I wrote using note pad.


print "Hello World"


Follows the configuration:

<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP

ServerRoot "C:/Program Files/Apache Group/Apache"

<IfModule mpm_winnt.c>
ThreadsPerChild 250
MaxRequestsPerChild  0

Listen 80

  LoadModule php4_module "C:\Program Files\Apache

  ServerAdmin root@localhost


UseCanonicalName Off

  DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs"

<Directory />
     Options FollowSymLinks
     AllowOverride None

<Directory "C:/Program Files/Apache Group/Apache/htdocs">


UserDir "My Documents/My Website"

DirectoryIndex index.html index.html.var

DefaultType text/plain

Alias /icons/ "C:/Program Files/Apache Group/Apache/icons/"

<Directory "C:/Program Files/Apache Group/Apache/icons">
     Options Indexes MultiViews
     AllowOverride None
     Order allow,deny
     Allow from all

Alias /manual "C:/Program Files/Apache Group/Apache/manual"

<Directory "C:/Program Files/Apache Group/Apache/manual">
     Options Indexes FollowSymLinks MultiViews
     AllowOverride None
     Order allow,deny
     Allow from all

<Directory "C:/Program Files/Apache Group/Apache/cgi-bin">
     AllowOverride None
     Options None
     Order allow,deny
     Allow from all

   AddOutputFilter INCLUDES .shtml .php .phtml

ScriptAlias /php/ "c:/php/"

I noticed I have output filter twice .Would that do it?

C.Alex Morales BBA,MBA
Senior Consultant Peoplesoft/Siebel

-----Original Message-----
From: Csaba Gabor []
Sent: Monday, May 06, 2002 3:55 PM
Subject: RE: Getting Apache 2 to work with PHP

I use apache as a service and am not familiar with the -t option.
My suspicion is that you have some problem in Apache's httpd.conf file
I presume that Apache serves up an example .htm file OK (I guess it
must since you're able to see the source code of your .php file).

If it's still not working, how about post the following parts of
your httpd.conf file (I don't want to wade through the whole thing).
Post them in the order listed in the file, not the order that
I list below:

Any line that has php in it (and its container (<>), if relevant).
DirectoryIndex lines
ServerRoot line
ServerName line
DocumentRoot line
<Directory /> section


Do You Yahoo!?
Yahoo! Health - your guide to health and wellness

Niall Fleming

When the world's falling apart around you,
feel good inside, knowing your friends are
all around you.

Chat with friends online, try MSN Messenger:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message