PHP Bugs  
php.net | support | documentation | report a bug | advanced search | search howto | statistics | login

go to bug id or search bugs for  

Bug #25608 php config lines for httpd.conf
Submitted:19 Sep 2003 12:55pm UTC Modified: 7 Oct 2003 1:04pm UTC
From:orn dot asgeirsson at decode dot is Assigned to:
Status:Bogus Category:Documentation problem
Version:4.3.3 OS:windows xp
Votes:1 Avg. Score:2.0 ± 0.0 Reproduced:0 of 0 (0.0%)
View/Vote Developer Edit Submission

Welcome! If you don't have a SVN account, you can't do anything here. You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
SVN Username: SVN Password:
Quick Fix:
Status: Assign to:
Category:
Summary:
From: orn dot asgeirsson at decode dot is
New email:
Version: OS:
New/Additional Comment:

[19 Sep 2003 12:55pm UTC] orn dot asgeirsson at decode dot is
Description:
------------
Those three php config lines you tell people to add to their httpd.conf
line won't work unless they are put there in their correct category:

"After you've set up the file layout properly, you're ready to finally
configure Apache to load the PHP4 module. Just add the following lines
to your httpd.conf:

   LoadModule php4_module c:/php/sapi/php4apache.dll
   AddModule mod_php4.c
   AddType application/x-httpd-php .php"

I tried this without success, but when I added the LoadModule line to
the LoadModule part of httpd.conf, AddModule to the AddModule part of
httpd.conf and AddType to the AddType part of httpd.conf everything
worked fine.

apache did not know what to do whith .php files using your guide.

Thanks.

Orn

[19 Sep 2003 6:04pm UTC] jmcastagnetto@php.net
Please indicate the server used and its version. 
 
Your observations are incorrect for Apache 1.3.x in 
Solaris 7 and 8, SuSe 8.2 and Red Hat 7.1. In all those 
platforms and the indicated server, the position where you 
put the lines is not relevant for a stand-alone server (no 
virtual hosts, etc.). 
 
I don't have a Windows box around so I cannot test on that 
OS. 
[19 Sep 2003 6:53pm UTC] orn dot asgeirsson at decode dot is
Server used:
Apache (apache_1.3.28-win32-x86-no_src.msi)
Windows XP workstation, fully patched.
[6 Oct 2003 5:57am UTC] benoit dot vianin at sinabe dot ch
On Windows 2K Sp4 Apache 1.3.28 PHP 4.3.3

You need to put the path for LoadModule like this
LoadModule php4_module "c:/php/sapi/php4apache.dll"

And you must move the AddType line in the right section of the
httpd.conf

But this is only for the windows users.
[7 Oct 2003 1:04pm UTC] betz@php.net
apache 1.3.28, php4.3.3
Can't test on WinXP, but the following is true for win2k:

at the end of httpd.conf:

  LoadModule php4_module d:/php/sapi/php4apache.dll
  AddModule mod_php4.c
  AddType application/x-httpd-php .php

This works regardless of the AddModule directive is used or not.
So I can confirm Jesus findigs true also for Windows. I can't imagine
there is a really important difference between win2k and xp running
apache ;-)

By the way: please read
http://www.php.net/manual/en/install.apache.php#install.apache.windows
carefully, these docs refer to the right sections, so where did you get
your information?

So this is bogus. 
Please ask support questions on the mailing lists.

Regards
Friedhelm Betz

RSS feed | show source 

PHP Copyright © 2001-2009 The PHP Group
All rights reserved.
Last updated: Sat Nov 21 10:30:49 2009 UTC