migrating sites from vh host to nvh in cgi mode host

Author Message

Lance Leger

Wednesday 21 December 2005 6:30:32 pm

I've recently had to change web hosting providers and I'm trying to get several eZ publish 3.4+ sites functional on the new host. I had nice urls enabled on all sites from the previous host now my options are limited. PHP runs in CGI mode on the new host and Apache is version 1.3 so I cannot use AcceptPathInfo. I understand that eZ publish 3.4+ supports sites in CGI mode as long as urls are passed as "/index.php?/articles" instead of "/index.php/articles". My question is, what configuration changes need to be made in order for eZ publish to work in CGI mode. I can only edit the settings files manually as I no longer have ssh/telnet access and the I cant access the admin page. I've restored all eZ publish data/database and the index.php page loads fine but if I try to pass a url such as "/index.php?/articles" nothing happens, I just see the default index.php page. I've implemented the following .htaccess file to help keep the URL's friendly as well.

Options SymlinksIfOwnerMatch 
RewriteEngine On 

RewriteRule ^/index.php/(.+)$ /index.php?/$1
RewriteCond %{REQUEST_URI} !.+\.(gif|css|jpg|png|jar|js|ico|pdf|swf)$
RewriteRule ^(.*)$ /index.php?/$1

thanks!

Lance Leger

Sunday 25 December 2005 1:31:57 pm

Ok, I found that the problem was caused by undefined arrays in settings/override/site.ini.append.php. I also added ForceVirtualHost to remove index.php in the links. The site is now working with the .htaccess listed above but since index.php is no longer showing in the links I will be making a few changes.

[SiteSettings]
--added--> SiteList[]
SiteList[]=plain_user

[SiteAccessSettings]
--added--> AvailableSiteAccessList[]
AvailableSiteAccessList[]=plain_user
AvailableSiteAccessList[]=plain_admin
--added--> HostMatchMapItems[]
HostMatchMapItems[]=www.ilovegoodnews.com;plain_user
HostMatchMapItems[]=admin.ilovegoodnews.com;plain_admin
--added--> ForceVirtualHost=true

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 00:37:06
Script start
Timing: Jan 31 2025 00:37:06
Module start 'layout'
Timing: Jan 31 2025 00:37:06
Module start 'content'
Timing: Jan 31 2025 00:37:07
Module end 'content'
Timing: Jan 31 2025 00:37:07
Script end

Main resources:

Total runtime1.1761 sec
Peak memory usage8,192.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 588.3828151.2422
Module start 'layout' 0.00460.0043 739.6250220.7500
Module start 'content' 0.00891.1663 960.37504,371.1406
Module end 'content' 1.17520.0009 5,331.515611.7969
Script end 1.1761  5,343.3125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3071160.0002
Check MTime0.00130.1112160.0001
Mysql Total
Database connection0.00090.076910.0009
Mysqli_queries1.088392.5318520.0209
Looping result0.00050.0430500.0000
Template Total1.118995.120.5595
Template load0.00240.200120.0012
Template processing1.116694.937820.5583
Template load and register function0.00140.119710.0014
states
state_id_array0.00240.200710.0024
state_identifier_array0.00150.130120.0008
Override
Cache load0.00200.1670210.0001
Sytem overhead
Fetch class attribute can translate value0.00200.171310.0020
Fetch class attribute name0.00240.199830.0008
XML
Image XML parsing0.00170.144510.0017
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00390.3290160.0002
String conversion0.00000.000840.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs