Does EZ Publish require Mod_Rewrite?

Author Message

Justin Pease

Wednesday 16 April 2003 9:41:51 am

I noticed that EZP3 uses URIs such as:

http://webserver/ezpublish-3.0-1/index.php/demo/content/view/full/26/

Does that require the installation of mod_rewrite?

My install went fine. I can pull up the index.php - but none of the links work, thus my question.

Thanks!

++JP

Jan Borsodi

Wednesday 16 April 2003 12:20:36 pm

mod_rewrite is optional, you can use eZ publish in non-virtual host mode however it is considered much less secure.

Do you have the same problem as this thread?
http://ez.no/developer/ez_publish_3/forum/install_configuration/uri_not_parsing_

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Bill Christian

Thursday 17 April 2003 10:21:05 am

I have a very similar problem, but the linked forum posting does not address my issue. I am running Apache 2.0, MySQL 4.0.1. And, I have not enabled mod_rewrite but I am tempted to do so.

Any suggestions are appreciated.

Bill Christian

Thursday 17 April 2003 9:02:58 pm

Bingo!

I was able to correct this situation by changing my httpd.conf to include the AcceptPathInfo and setting it to "On". Example:

<Directory "/var/www/html/ez3">
Options FollowSymLinks Indexes ExecCGI
AllowOverride None
AcceptPathInfo On
</Directory>

Based on my reading of Apache 2.0 documentation, if you do not have access to httpd.conf but are allowed to override settings (the AllowOverride directive is set to all or includes AcceptPathInfo), then you can adjust your .htaccess is the document root folder. In my case that would be in /var/www/html/ez3/.htaccess.

Check these links for Apache 2.0 help:
http://httpd.apache.org/docs-2.0/howto/htaccess.html
http://httpd.apache.org/docs-2.0/mod/core.html

Hope this helps!
billc

Justin Pease

Wednesday 23 April 2003 10:58:15 am

I am running Apache 2, PHP 4.3.1 and Mysql 3

I tried the AccepthPathInfo fix, but it doesn't fix my problem. The only thing that comes up after install is the index.php

Any index.php/foo uri does not work. I do not have mod_rewrite installed.

Any other suggestions?

Thanks!

Jim Porter

Monday 12 May 2003 3:19:38 am

Had a similar problem with

EZpublish 3.0.2
PHP 4.32
Apache 2.0.45
Windows XP Pro

Firstly EZpublish will only work with Apache running PHP as a SAPI module (picked up from other posts).

Too cut a long story short, no matter what I did I could not get Apache to load php4apache2.dll even after following lots of advice. Apparently there are still many problems with compatibility with Apache and PHP on these versions and in fact PHP.org do not claim support for Apache 2.

Finally gave up and went to Apache 1.3.37 which solved the problem you are having.

Still got other problems though.

Regards
Jim

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 31 2025 01:13:34
Script start
Timing: Jan 31 2025 01:13:34
Module start 'layout'
Timing: Jan 31 2025 01:13:34
Module start 'content'
Timing: Jan 31 2025 01:13:34
Module end 'content'
Timing: Jan 31 2025 01:13:34
Script end

Main resources:

Total runtime0.0258 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 588.2578151.2266
Module start 'layout' 0.00780.0034 739.4844220.7188
Module start 'content' 0.01130.0131 960.20311,001.8359
Module end 'content' 0.02440.0013 1,962.039137.9922
Script end 0.0257  2,000.0313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002710.2928140.0002
Check MTime0.00103.8746140.0001
Mysql Total
Database connection0.00145.548110.0014
Mysqli_queries0.003614.058130.0012
Looping result0.00000.038910.0000
Template Total0.00093.410.0009
Template load0.00072.554710.0007
Template processing0.00020.861710.0002
Override
Cache load0.00051.755010.0005
General
dbfile0.00124.782680.0002
String conversion0.00000.024140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs