Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Feb 2005 17:40:59 +0000
From:      Mark Ovens <marko@freebsd.org>
To:        Adi Pircalabu <apircalabu@bitdefender.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: apache+SSL, which port?
Message-ID:  <41FFBF2B.2030806@freebsd.org>
In-Reply-To: <20050201192233.149af87b@apircalabu.dsd.ro>
References:  <41FE7592.9070305@freebsd.org> <3f8e4a7a7af495009ace9a59c728a74a@mac.com>	<41FE7B67.5070906@freebsd.org> <200501311306.41445.andrewgould@datawok.com>	<41FE9420.3080806@filn.net> <41FFB43B.3000209@freebsd.org>	<20050201190652.7f5ed1b9@apircalabu.dsd.ro> <41FFB862.5030701@freebsd.org> <20050201192233.149af87b@apircalabu.dsd.ro>

next in thread | previous in thread | raw e-mail | index | archive | help
Adi Pircalabu wrote:
> On Tue, 01 Feb 2005 17:12:02 +0000
> Mark Ovens <marko@freebsd.org> wrote:
> 
>> Should have mentioned that I tried adding that but it just caused the 
>> contents of index.php to be displayed in the browser rather than the 
>> directory listing.
> 
> If I understand this correctly, your .php page was not parsed, but
> displayed. You should also need a directive like this:
> 
> AddType application/x-httpd-php .php
> 
>>From what I see, /usr/ports/lang/php4/pkg-message.mod says how to
> complete the integration of php module.

That's fixed it, thanks :-)

httpd.conf from the previous version I had installed doesn't have 
index.php in the DirectoryIndex directive, but it does have

     <IfModule mod_php3.c>
         AddType application/x-httpd-php3 .php3
         AddType application/x-httpd-php3-source .php3s
     </IfModule>
     <IfModule mod_php4.c>
         AddType application/x-httpd-php .php
         AddType application/x-httpd-php-source .phps
     </IfModule>

     <IfModule mod_dir.c>
         <IfModule mod_php3.c>
             <IfModule mod_php4.c>
                 DirectoryIndex index.php index.php3 index.html
             </IfModule>
             <IfModule !mod_php4.c>
                 DirectoryIndex index.php3 index.html
             </IfModule>
         </IfModule>
         <IfModule !mod_php3.c>
             <IfModule mod_php4.c>
                 DirectoryIndex index.php index.html
             </IfModule>
             <IfModule !mod_php4.c>
                 DirectoryIndex index.html
             </IfModule>
         </IfModule>
     </IfModule>

but I'm 99% certain I didn't have to add those....hmmm, the previous 
version was installed from a package, the current version from the 
ports; maybe that's why?

Thanks again for your help.

Regards,

Mark


---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0505-0, 31/01/2005
Tested on: 01/02/2005 17:41:00
avast! - copyright (c) 2000-2004 ALWIL Software.
http://www.avast.com





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41FFBF2B.2030806>