On Mon, 21 Jul 2003 12:39:31 -0400, The Other Guy responded to a post
from "Jim Gerland" <jgerland.RemoveThis@willcare.com> who wrote in
alt.apache.configuration:
>I'm trying to configure Apache on an IBM iSeries 270 running OS400 V5R1 with
>PHP 4.3 and I can't get it to recognize .php (or .pl for perl files either).
>Here is the relavent part of my apache httpd.conf file:
>
>AddHandler application/x-httpd-perl .cgi .pl
>AddHandler application/x-httpd-php .php .phtml
>ScriptAlias /perl-bin /QOpenSys/perl/bin/
s/b ScriptAlias /perl-bin/ /QOpenSys/perl/bin/
note trailing slash at the end of the nickname -- if one ends with a
trailing slash, the other should as well.
Technically, the AddHandlers here are irrelevant because you are
using ScriptAlias
>AddType application/x-httpd-perl .pl
>AddType application/x-httpd-perl .cgi
Could use one line:
AddType application/x-httpd-perl .pl .cgi
>Action application/x-httpd-perl /perl-bin/perl
><Directory /QOpenSys/perl/bin>
> Options +ExecCGI +FollowSymLinks +MultiViews +Indexes
> Order Allow,Deny
> allow from all
></Directory>
s/b Options +FollowSymLinks +MultiViews +Indexes
don't need +ExecCGI because it is redundant -- ScriptAlias makes all
files in the named directory executable by default.
>ScriptAlias /php-bin /QOpenSys/php/bin/
add trailing slash -- see above.
>AddType application/x-httpd-php .php
Try adding:
AddType application/x-httpd-php-source .phps
but can't say that will be effective.
With the above AddType, only files with the extension .php with be
processed by the PHP interpreter.
>Action application/x-httpd-php /php-bin/php
><Directory /QOpenSys/php/bin>
> Options +ExecCGI +FollowSymLinks +MultiViews +Indexes
> Order Allow,Deny
> allow from all
></Directory>
s/b Options +FollowSymLinks +MultiViews +Indexes
see notes above.
>Any ideas or pointer to how to configure apache on an AS400 would be greatly
>appreciated.
>Thanks,
>Jim....
I can give you the above advice only. It has been literally several
years since I did any work at all with an AS400. Have you tried to
implement them as modules as opposed to CGI?
Make sure that there are no AllowOverrides being inherited from parent
directories.
Try making the changes I suggested to see if that helps any.
Regards,
TOG
--
../configure --prefix=~/zyterion
Not this guy or that guy, The Other Guy.
"If you're not thoroughly confused by now, then you just
don't understand the situation."<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: I got a problem with Apache & PHP.