This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Install & configuration » How to install eZ on 1&1 "Pack Perso...
expandshrink

How to install eZ on 1&1 "Pack Perso Initial"

How to install eZ on 1&1 "Pack Perso Initial"

Wednesday 15 August 2012 11:51:41 am - 4 replies

Hi there,

I installed eZ on a shared hosting with 1&1:

  • Local installation
  • File / DB backup
  • FTP upload of backup files
  • Importing SQL
  • Configuring site.ini.append.php to connect DB

NB : eZ is not ate the root but in a folder because there is already an existing site.

Now I have eZ who repind correctly using domain.tld/news but style, images are gone...

And in fact, when I try to access such an url : domain.tld/news/user/login I got a simple 404 page (nothing more than 404 in a blank body).

I suppose this is a problem with my htaccess :

AddType x-mapp-php5 .php

Options -Indexes
Options +FollowSymLinks
DirectoryIndex index.php

<IfModule mod_rewrite.c>

    RewriteEngine on
    RewriteCond %{REQUEST_URI} !^/index.php
    RewriteCond %{REQUEST_URI} !^/index_treemenu.php
    RewriteCond %{REQUEST_URI} !^/var/storage/.*
    RewriteCond %{REQUEST_URI} !^/var/[^/]+/storage/.*
    RewriteCond %{REQUEST_URI} !^/var/cache/texttoimage/.*
    RewriteCond %{REQUEST_URI} !^/var/[^/]+/cache/texttoimage/.*
    RewriteCond %{REQUEST_URI} !^/design/[^/]+/(stylesheets|images|javascript)/.*
    RewriteCond %{REQUEST_URI} !^/share/icons/.*
    RewriteCond %{REQUEST_URI} !^/extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.*
    RewriteCond %{REQUEST_URI} !^/packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.*
    RewriteCond %{REQUEST_URI} !^/packages/styles/.+/thumbnail/.*
    RewriteCond %{REQUEST_URI} !^/favicon\.ico
    RewriteCond %{REQUEST_URI} !^/robots\.txt
    RewriteRule .* index.php [L]
    RewriteRule content/treemenu/?$ /index_treemenu.php [L] 

</IfModule>

Do you know how to make a good htaccess file for 1&1 ?

Thursday 16 August 2012 12:53:37 pm

Hi Damien,

Try:

  1. Adding RewriteBase /news/
  2. Removing the <IfModule> tags

Cheers,
Geoff 

Thursday 16 August 2012 1:39:26 pm

Hi Geoff,

Now, I'm able to access pages like domain.tld/news/user/login or domain.tld/news/administration.

But I still have a problem : eZ is now trying to handle everything without taking care to the RewriteRule like : RewriteRule ^design/[^/]+/(stylesheets|images|javascript)/.* - [L]

So I get a Kernel Error 20 for each file in design, var, ...

Here is the new .htaccess :

AddType x-mapp-php5 .php

Options -Indexes
Options +FollowSymLinks
DirectoryIndex index.php

RewriteEngine on
RewriteBase /news/

RewriteRule ^api/ index_rest.php [L]
RewriteRule ^index_rest\.php - [L]
RewriteRule ^([^/]+/)?content/treemenu.* index_treemenu.php [L]
RewriteRule ^var/([^/]+/)?storage/images(-versioned)?/.* - [L]
RewriteRule ^var/([^/]+/)?cache/(texttoimage|public)/.* - [L]
RewriteRule ^design/[^/]+/(stylesheets|images|javascript)/.* - [L]
RewriteRule ^share/icons/.* - [L]
RewriteRule ^extension/[^/]+/design/[^/]+/(stylesheets|flash|images|lib|javascripts?)/.* - [L]
RewriteRule ^packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
RewriteRule ^packages/styles/.+/thumbnail/.* - [L]
RewriteRule ^var/storage/packages/.* - [L]
RewriteRule ^favicon\.ico - [L]
RewriteRule ^design/standard/images/favicon\.ico - [L]
RewriteRule ^robots\.txt - [L]
RewriteRule ^w3c/p3p\.xml - [L]

RewriteRule .* index.php

Have I something to do ?

Thank you

Modified on Thursday 16 August 2012 1:39:50 pm by Damien MARTIN

Thursday 16 August 2012 10:54:49 pm

It finaly works !

Here is thefinal htaccess file :

Options -Indexes
Options +FollowSymLinks -MultiViews

DirectoryIndex index.php

RewriteEngine On
RewriteBase /news/

RewriteRule ^api/ index_rest.php [L]
RewriteRule ^index_rest\.php - [L]
RewriteRule ^([^/]+/)?content/treemenu.* index_treemenu.php [L]
RewriteRule ^var/([^/]+/)?storage/images(-versioned)?/.* - [L]
RewriteRule ^var/([^/]+/)?cache/(texttoimage|public)/.* - [L]
RewriteRule ^design/[^/]+/(stylesheets|images|javascript)/.* - [L]
RewriteRule ^share/icons/.* - [L]
RewriteRule ^extension/[^/]+/design/[^/]+/(stylesheets|flash|images|lib|javascripts?)/.* - [L]
RewriteRule ^packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
RewriteRule ^packages/styles/.+/thumbnail/.* - [L]
RewriteRule ^var/storage/packages/.* - [L]
RewriteRule ^favicon\.ico - [L]
RewriteRule ^design/standard/images/favicon\.ico - [L]
RewriteRule ^robots\.txt - [L]
RewriteRule ^w3c/p3p\.xml - [L]
RewriteRule .* index.php

See you happy.gif Emoticon

Thursday 16 August 2012 11:36:37 pm

Glad you solved it.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from