Problems with AcceptPathInfo

Author Message

Linas Adomas

Sunday 31 July 2005 10:16:25 am

During my instalation I get warning "1. AcceptPathInfo disabled or running in CGI mode"
As I understand reading the forum that there is problem with apachi configuration.

As I dont have access to my apachi configuration file, because I am using hosting from one company, I created htaccess file with such configurtion:
<Files ".">
Options +Includes
SetOutputFilter INCLUDES
AcceptPathInfo On
</Files>
Does this file contains correct configuration?
Because if I try to access my page then htaccess file is enabled I get 500 error.
And there is problem with all the htaccess files, despite what I write in it I am getting 500 error.
Could anyone help me with this problem?
This is not the first time I am in such situation, before I solved it by chosing another CMS, but this time I want to know could I solve this problem.
Ez link :
http://www.sandanegolf.no/new2/index.php
PhpInfo:
http://www.sandanegolf.no/info.php
Thanks

Łukasz Serwatka

Sunday 31 July 2005 11:32:33 pm

Hi Linas,

You have CGI version of PHP , this is not recommend for eZ publish. Your websites works when you access links like

http://www.sandanegolf.no/new2/index.php?/plain/news

More you can read here:

http://ez.no/products/ez_publish_cms/documentation/configuration/configuration/ez_publish_running_on_a_cgi_version_of_php

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Linas Adomas

Monday 01 August 2005 4:46:23 am

Thanks Lukasz about information, now I see my problem, but in the article that you gave link I havent fond how to solve it. Could you explain me where should i put these lines mentioned in the article :

ScriptAlias /php/ /usr/local/bin/
AddType application/x-httpd-php .php
Action application/x-httpd-php /php/php-cgi

I have no access to the server configuration files. Could I solve it somehow different?

Thanks,
Linas

Linas Adomas

Wednesday 03 August 2005 3:14:56 am

Does anybody knows there should I write configuration lines mentioned above?
Or it is inposible to change something?
Thanks for any comments.

Łukasz Serwatka

Wednesday 03 August 2005 4:46:02 am

Your PHP works correctly, you don`t have to add this configuration lines in httpd.conf (Apache config file). What version on Apache is running on your server? If 1.3 than ignore message "1. AcceptPathInfo disabled or running in CGI mode" and remove .htaccess file with AcceptPathInfo On. eZ publish should autmaticly convert URL to index.php?/something/like/this, but you will need run insallation in non-virtual host mode.

I strongly not recommend use eZ publish with PHP in CGI mode, if you are looking recommend eZ publish hosting look here http://ez.no/partner/partner_list/(partner)/hosting/(sort)

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

James Ashley

Tuesday 16 August 2005 2:47:48 pm

Linas:

I'm not sure about software versions and such, but I beat my head against a while last night trying to solve this. I had accept_path_info on, and I knew I was not in CGI mode.

The problem I encountered (Apache 2) is that the test for this (ez 3.7.0.rc1) requires php.ini to have allow_url_open turned On. Not that it bothers to check this.

If this is strictly a 3.7 problem, I have nothing to complain about, though it would be nice if there were some direct way to report it to the developers so it doesn't make it into release code.

If it's in 3.6, it's just another example of the carelessness they've taken with the setup.

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

eZ debug

Timing: Jan 18 2025 19:28:17
Script start
Timing: Jan 18 2025 19:28:17
Module start 'layout'
Timing: Jan 18 2025 19:28:17
Module start 'content'
Timing: Jan 18 2025 19:28:18
Module end 'content'
Timing: Jan 18 2025 19:28:18
Script end

Main resources:

Total runtime0.8163 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0081 592.3359152.6406
Module start 'layout' 0.00810.0048 744.976639.4766
Module start 'content' 0.01290.8017 784.4531608.6406
Module end 'content' 0.81460.0016 1,393.093816.1484
Script end 0.8163  1,409.2422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.4974160.0003
Check MTime0.00190.2318160.0001
Mysql Total
Database connection0.00120.145010.0012
Mysqli_queries0.744891.2416680.0110
Looping result0.00110.1290660.0000
Template Total0.773194.720.3865
Template load0.00200.249720.0010
Template processing0.771094.450320.3855
Template load and register function0.00030.040910.0003
states
state_id_array0.00190.237910.0019
state_identifier_array0.00100.118320.0005
Override
Cache load0.00170.2117500.0000
Sytem overhead
Fetch class attribute can translate value0.00100.121230.0003
Fetch class attribute name0.00140.177470.0002
XML
Image XML parsing0.00090.115230.0003
class_abstraction
Instantiating content class attribute0.00000.002780.0000
General
dbfile0.00100.1273180.0001
String conversion0.00000.001740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs