php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #25608 php config lines for httpd.conf
Submitted: 2003-09-19 12:55 UTC Modified: 2003-10-07 13:04 UTC
Votes:1
Avg. Score:2.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: orn dot asgeirsson at decode dot is Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 4.3.3 OS: windows xp
Private report: No CVE-ID: None
 [2003-09-19 12:55 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





Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-19 18:04 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. 
 [2003-09-19 18:53 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.
 [2003-10-06 05:57 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.
 [2003-10-07 13:04 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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 07:01:31 2024 UTC