Jump to content

Installing on 1and1 server


Recommended Posts

Hi

 

Im using 1and1 shared servers and have php4 default.  But the server has the option to change to php5 adding a line  AddType x-mapp-php5 .php  on the htaccess line.

 

When I tried to install  an error appears:

 

Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homepages/22/d219558595/htdocs/4ever/shop/install/classes/LanguagesManager.php on line 7

 

I read in another post about this.  Someone response that only has to change to php4 to php5. 

 

I change the htaccess but theres no result

 

My htaccess file

 

AddType x-mapp-php5 .php

AddHandler x-mapp-php5 .php

 

# URL rewriting module activation

RewriteEngine on

 

# URL rewriting rules

RewriteRule ^([0-9]+)-([a-zA-Z0-9-]*).html(.*)$ product.php?id_product=$1$3 [L,E]

RewriteRule ^([0-9]+)-([a-zA-Z0-9-]*)(.*)$ category.php?id_category=$1$3 [L,E]

 

# Catch 404 errors

ErrorDocument 404 /404.php

 

Thanks for the help

Link to comment
Share on other sites

  • 2 weeks later...

Hi Marck,

 

Thanks for your help! we hope to solve problems with 1&1 ASAP.

 

Just a few points about your post:

 


    [li]PrestaShop isn't using deprecated PHP short tags and cleaning magic quotes if activated, so the first block for .htaccess file isn't required.[/li]
    [li]PHP 5 cgi handler is slower than the module[/li]
    [li]1&1 already supports PHP 5 and PrestaShop is running correctly with it[/li]

 

The latest issue we have with 1&1 is occasionally slow SQL queries, but so far they haven't been able to explain why that is happening.

 

Best regards

Link to comment
Share on other sites

  • 5 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...