Jump to content

Access to php.ini file on shared hosting? unexpected T_STRING


Recommended Posts

I get this code when going to the install page

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in ......./htdocs/hew/prestashop/install/classes/ToolsInstall.php on line

I'm wondering if this has anything to do with not being able to access php.ini to see if GD Library functionality is on?

Link to comment
Share on other sites

It's strange because that was on 1and1.co.uk which has php5, but I'll write to them and check what's what. So I went to a new host and it all installed ok without having made any changes to the file permissions which seems odd? I'm going to change them but it seems strange that the shop appears to be up and running - not that I'm taking money on it yet or anything, I'm just having a look at what prestashop is like but the shop is essentially up and running. Is that odd?

Link to comment
Share on other sites

You need to enable PHP 5 on 1&1 by adding the following line to your .htaccess file:

AddType x-mapp-php5 .php



And to enable URL rewriting to work, you need to add the following line to your .htaccess file:

RewriteBase /

Link to comment
Share on other sites

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...