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.