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.