AcceptPathInfo / CGI system check

Author Message

Andreas Kaiser

Monday 08 January 2007 6:43:36 pm

I've being testing eZ 3.9 on a new dedicated server. The server has Apache 1.3 and PHP 4.4.4-0.dotdeb.3 (including eaccelerator & Suhosin) I also installed a Webhost control panel IspConfig.

I get an error in the system check: 1. AcceptPathInfo disabled or running in CGI mode

But I think I installed php as module. When I check a info.php page I get following, so I think php is installed as module:

Server API 	Apache
Loaded Modules 	mod_php4

My question is how can I confirm that php isn't loaded as cgi (because even if I installed it as module I don't know if the control panel changed this...) - do these lines confirm it?

I have installed eZ Publish and all seems to work, except, that the website loads slow (I have to test this more and perhaps I will remove Suhosin to gain more speed)

eZ Partner in Madrid (Spain)
Web: http://www.atela.net/

kracker (the)

Monday 08 January 2007 9:24:25 pm

I often include the following apache httpd.conf directive inside my virtual host configuration.

AcceptPathInfo On

In the past I have used eZ publish on hosting environments which would not acknowledge this configuration directive enabled. Most solid builds of apache should not have this problem. I've ignored this error in the past without encountering a breakdown.

Related threads,
<i>http://ez.no/community/forum/install_configuration/acceptpathinfo_on_problem
http://ez.no/community/forum/install_configuration/problems_with_acceptpathinfo
http://ez.no/community/forum/install_configuration/acceptpathinfo_apache_2_x
http://ez.no/community/forum/install_configuration/shared_hosting_problems_php_cgi
http://ez.no/community/forum/install_configuration/install_using_htaccess_to_change_acceptpathinfo
</i>

//kracker

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Andreas Kaiser

Tuesday 09 January 2007 1:23:12 am

Thanks for the info. Anyway I found at http://ez.no/ezpublish/documentation/configuration/configuration/ez_publish_running_on_a_cgi_version_of_php that if the server would have PHP as CGI the url would be http://example.com/site/index.php?/articles.new or eZ wouldn't work...

I have two sites on this server one with uri and other with host configuration and the urls are like:

http://example.com/site/articles/new

and

http://example.com/site/index.php/articles/new

So this should demostrate me that the server is not running PHP as CGI.

eZ Partner in Madrid (Spain)
Web: http://www.atela.net/

Brookins Consulting

Tuesday 09 January 2007 1:30:58 am

Your php installation should report
it's configuration running the command.

php --version

It seems as though you are commenting on rogue configuration issues. What seems to be the real problem here?

eZ Partner | North American Experience
http://brookinsconsulting.com/experience

kracker (the)

Tuesday 09 January 2007 1:36:34 am

<i>@Andreas</i>

Only that's not how you tell if 'something' is running as CGI,
or what CGI is all about with respect to php's usage of the term.
It seems as though you confuse url style with a notion of php-cgi configuration ...

The only problem I hear you commenting on with accuracy is slow performance
which has more to do with your own server + eZ publish configuration and your
own specific use of eZ publish and the functional + performance considerations
probably need to made by you for your site.

<i>http://ezpedia.org/wiki/en/ez/performance</i>

Things like which features or configurations to use for optimum performance.
There are much better topics available in the forum for that than this thread.

<i>//kracker

ps. some hosting providers only provide php via cgi mode for performance reasons ... just most often not in your interest.</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

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