aeljosh Posted January 31, 2008 Share Posted January 31, 2008 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 More sharing options...
Matthieu Biart Posted February 4, 2008 Share Posted February 4, 2008 Hi aeljosh As Bruno has said before on the French side, 1&1 is having some trouble with PrestaShop and so far do not want to help us > Please check out the translation of Bruno's message here. Link to comment Share on other sites More sharing options...
Bruno Leveque Posted February 13, 2008 Share Posted February 13, 2008 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 More sharing options...
DigitalAcidLabs Posted August 5, 2008 Share Posted August 5, 2008 I had to use this CGI version on one of my clients sites. The one thing that is needed to get the cgi version working is you need to chmod the php5-cgi file with permissions 544. It needs to be able to execute to get it to work correctly. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now