Child pages
  • Getting Started

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Linux, Unix, or Windows. Unix is highly recommended.
  • Apache Web server 1.3 or later.
  • PHP 5.2 or later. (You may have to activate PHP 5 on your hosting service, see below.)
  • MySQL 5.0 or later

Please note that PrestaShop can work with PHP 5.1 or later, but that versions inferior to 5.2 have bugs that might prevent some functionalities to work well (such as invalid date timezone).
Also, PrestaShop can also work IIS Web server 6.0 or later, and nginx 1.0 or later. AnchorInstall_PrestaShopInstall_PrestaShop

Activating PHP5

Oftentimes, dedicated or shared servers have both PHP4 and PHP5 available, but only PHP4 is available by default.

To install PrestaShop, PHP 5 must be activated. If you attempt to run PrestaShop using PHP 4 or older, you will receive numerous errors, including this very common message:

Parse error: parse error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in php file on line X.

Tip

Please don’t hesitate to post a bug report concerning the tips needed to make PrestaShop run on your hosting service. We will continually to add them to this post.

The following is a list of procedures of which we are aware:

1&1

Create an .htaccess file and add this line:

Code Block
html
html

AddType x-mapp-php5 .php

Otherwise, you can try renaming the PHP files to be executed in PHP 5 by changing the extention to “.php”.

For URL re-writing, add these lines:

Code Block
html
html

RewriteEngine on
RewriteBase /

Free

Create an .htaccess file and add this line:

Code Block
html
html

php 1

OVH

Create a .htaccess file and add this line:

Code Block
html
html

SetEnv PHP_VER 5

To deactivate global registers:

Code Block
html
html

SetEnv REGISTER_GLOBALS 0

GoDaddy

Change your default PHP language:

  1. Log in to your Account Manager.
  2. In the My Products section, select Hosting Account List.
  3. Next to the hosting account you want to modify, click Open.
  4. In the Content section of the Hosting Control Center, click the Languages icon.
  5. Select PHP version you’d like to set as the default.
  6. Click Continue.
  7. Verify the listed changes, and then click Update.

Lunarpages shared hosting

  1. Enter the cpanel. Many times this will be at http://www.(your_domain).(com/net/org/etc)/cpanel
  2. Enter your account username and password in the box that appears.
  3. A new page appears. Go to the bottom row of icons in the page and click the icon titled “Enable/Disable PHP 5”
  4. A new page appears. Click "Add PHP 5 To Your Account!".

Your language change is submitted. Please allow up to 24 hours for the change to be processed by the hosting server.

Install PrestaShop

Now that you have made sure that the necessary components are installed on your hosting server, there are a few things to check before installing the PrestaShop e-Commerce software.

...