How to add "Acceptpathinfo On" in httpd.conf.file of Apache 1.3.29

Author Message

Børge Kjeldstad

Thursday 01 April 2004 2:49:13 pm

To run eZ Publish 3.3.4 on my windows XP, I understand I have to either
- run PHP in non-CGI mode
- or use Apache 1.3.29 and add "Acceptpathinfo On" in the httpd.conf.file

Question 1: Is this correct?

Question 2: How do I add "Acceptpathinfo On" in the httpd.conf.file of Apache 1.3.29?
I tried to put it on just some neat place, but then Apache would not start...

Tanks a lot : )
I am now eager to get eZ running : )

Steve Bibayoff

Thursday 01 April 2004 3:01:22 pm

Hello,

I'm assuming this was just an oversight, but "Acceptpathinfo" is a > Apache 2.0.24(?) feature. There is no switch/flag in Apache 1.3.

hth

Steve

Børge Kjeldstad

Thursday 01 April 2004 11:05:36 pm

Thanx Steve,

Concerning AcceptPathInfo Directive, I found this on http://httpd.apache.org/docs-2.0/mod/core.html:
Compatibility: Available in Apache 2.0.30 and later.

However, when I try to install eZ Publish 3.3.4, I get this message when I press the
"Finetune" button:

"1. AcceptPathInfo disabled or running in CGI mode
You need enable AcceptPathInfo in your Apache config file, if you're using apache 2.x eZ publish will not run in CGI mode, if you're running apache 1.3.
Check the Apache documentation, or enter the following into your httpd.conf file.
AcceptPathInfo On
Remember to restart your web server afterwards."

So what should I do then..... ; )

Steve Bibayoff

Friday 02 April 2004 9:55:58 am

Hi,

I just clicked to ignore it. I haven't had time to dig through to see if this is just an oversight, it checks to see if it's turned on(which you can't on Apache 1.3), or something more serious where something else should be added to httpd.conf file but this is what's being caught.

Sorry, I can't help any more right now, if you notice an earlier post, I'm having trouble getting things setup myself.

Steve

Steve Bibayoff

Friday 02 April 2004 10:34:05 am

Hello,

I just checked the test it does to get this info, and it looks like it doesn't check to see what version of Apache it is running on. Here is the relevevant code snipet from ./kernel/setup/ezsetuptests.php:
-----------------
/*!
Test if Apache setting for AcceptPathInfo is enabled
*/
function eZSetupTestAcceptPathInfo( $type, &$arguments )
{
$testPath = $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'] . '/eZ_accept_path_info_test';
$testPath = 'http://' . str_replace( '//', '/', $testPath );
$fp = fopen( $testPath, 'r' );

return array( 'result' => ( $fp !== false ),
'persistent_data' => array( 'result' => array( 'value' => ( $fp !== false ) ) ) );
}
-------------------

I believe this is harmless from the look of this test alone, so it should be OK to check "Ignore this test". Other people are more qualified to comment, so take this advie with a grain of salt.

If I'm correct in the above assement, there's a better way to check for this test across diffenernt versions of apache, I just can't think of it right now. Maybe after I get soem sleep ;) .

hth, some

Steve

Børge Kjeldstad

Sunday 04 April 2004 4:13:00 am

Hi Steve, I hope your sleep was good!
I tried to just ignore the AcceptPathInfo test running on Apache 1.3.29, but I got the HTTP 404 error message again.

After dealing with this I wonder if eZ publish 3.3-4 on windows (XP) is possible with PHP in CGI mode at all. If it is not, I maybe had better try to find out how to run PHP in non CGI mode.

Best regards!
Børge

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.