Subject: pkg/23536: www/ap-php4/MESSAGE needs change for apache2
To: None <gnats-bugs@gnats.netbsd.org>
From: None <makoto@ki.nu>
List: netbsd-bugs
Date: 11/23/2003 10:28:04
>Number: 23536
>Category: pkg
>Synopsis: www/ap-php4/MESSAGE needs change
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Nov 23 01:29:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Makoto Fujiwara
>Release: NetBSD 1.6T
>Organization:
KINU Corporation
Makoto Fujiwara
makoto@ki.nu
>Environment:
System: NetBSD harry 1.6T NetBSD 1.6T (INSECURE-ZS-L2CR-SHM) #1: Thu Jul 3 09:39:43 JST 2003 makoto@harry:/export/20030604ts/src/sys/arch/macppc/compile/INSECURE-ZS-L2CR-SHM macppc
Architecture: powerpc
Machine: macppc
>Description:
> pkg_info -D ap-php suggests following line,
----------------------------------
Information for ap-php-4.3.4:
Install notice:
add the following to your httpd.conf file:
AddType application/x-httpd-php .php
----------------------------------
but it actually need AddHandler directive to run with Apache2.
|
v
----------------------------------
AddHandler application/x-httpd-php .php
----------------------------------
>How-To-Repeat:
cd www/apache2 ; make ; make install;
cd www/ap-php4 ; make ; make install;
change /usr/pkg/etc/httpd/httpd.conf as:
--- /usr/pkg/etc/httpd/httpd.conf-original 2003-11-23 09:03:52.000000000 +0900
+++ /usr/pkg/etc/httpd/httpd.conf 2003-11-23 10:03:26.000000000 +0900
@@ -228,6 +228,7 @@
#
# Example:
# LoadModule foo_module modules/mod_foo.so
+LoadModule php4_module lib/httpd/mod_php4.so
#
#
@@ -836,6 +837,7 @@
# file mime.types for specific file types.
#
#AddType application/x-tar .tgz
+AddType application/x-httpd-php .php
#
# AddEncoding allows you to have certain browsers uncompress
# information on the fly. Note: Not all browsers support this.
and start apache:
env apache=YES /usr/pkg/etc/rc.d/apache start
Have following file with phpinfo.php
---------
<?php
phpinfo();
?>
---------
Add access to that file from browser. you will get
Save to disk ? dialog.
>Fix:
Index: MESSAGE
===================================================================
RCS file: /e/c/CVSup/main/pkgsrc/www/ap-php4/MESSAGE,v
retrieving revision 1.3
diff -u -r1.3 MESSAGE
--- MESSAGE 26 Aug 2002 00:12:51 -0000 1.3
+++ MESSAGE 23 Nov 2003 01:19:44 -0000
@@ -5,7 +5,10 @@
add the following to your httpd.conf file:
LoadModule php4_module lib/httpd/mod_php4.so
- AddType application/x-httpd-php .php
+ AddType application/x-httpd-php .php
+(for apache 1)
+ AddHandler application/x-httpd-php .php
+(for apache 2)
You may also add following if you still use .php3 files:
>Release-Note:
>Audit-Trail:
>Unformatted: