Jump to content
  • 0
Peter Wilson

Pre-installation settings (PHP 5, htaccess) for certain hosting services

Question

(Originally posted on February 08, 2008)

Often dedicated or shared servers are activated for PHP 4 but not PHP 5.

To install PrestaShop, PHP 5 must be activated.

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

[b]1&1;[/b]

Create an .htaccess file and add this line:

[code]AddType x-mapp-php5 .php[/code]

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]RewriteEngine on
RewriteBase /
[/code]

[b]Free :[/b]

Create an .htaccess file and add this line:

[code]php 1[/code]

[b]OVH :[/b]

Create an .htaccess file and add this line:

[code]SetEnv PHP_VER 5[/code]

To deactivate global registers:

[code]SetEnv REGISTER_GLOBALS 0[/code]

Warning: Dot not use CHMOD 777, OVH only allow CHMOD 755

[b]GoDaddy :[/b]

How to fix PHP5 if you use Godaddy.com:

[quote]To Change Your Default PHP Language

# Log in to your Account Manager.
# In the My Products section, select Hosting Account List.
# Next to the hosting account you want to modify, click Open.
# In the Content section of the Hosting Control Center, click the Languages icon.
# Select PHP version you'd like to set as the default.
# Click Continue.
# Verify the listed changes, and then click Update.[/quote]

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

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

Share this post


Link to post
Share on other sites

68 answers to this question

Recommended Posts

  • 0
godaddy win hosting permission issue.

when i installed prestashop, it listed the permissions as being all open and correct, this is not true you have to go to the control panel of godaddy and change them all.... (attached is what needs to be done)

Share this post


Link to post
Share on other sites
  • 0
:question: Online servers



Hi,

I use online.net servers.
I've this error : " Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in LanguagesManager.php on line 7"

It seems I don't use the right php version.

I modified the htacces file as free server solution.
But it doesn't work.

Can you help me ?

Thank's a lot.

Share this post


Link to post
Share on other sites
  • 0
i have changed over to linux at godaddy and everything works ok, so if you are going to host at godaddy choose linux server!! if you already have a win account it is really easy to change over, they move it for you , you just have to point your dns to the new ip address.

Share this post


Link to post
Share on other sites
  • 0
Thanks... Yesterday I tried many things. Today I created the [b].htaccess[/b] and put the line

[code]AddType x-mapp-php5 .php [/code]

Worked in SiteGround.com hosting.
It solved the problem after the installation. Yesterday the only message I got was

There is 1 error

[quote]1. employee does not exist, or bad password[/quote]

After creating the .htaccess I finally could log in in the backend

Share this post


Link to post
Share on other sites
  • 0
rename it.

on your server you have a file " htaccess.txt" rename it to ".htaccess"

i found when running on windows server at godaddy it didnt do anything but when i ran it on linux it worked fine.

Share this post


Link to post
Share on other sites
  • 0
Ok, I posted in another thread on this topic until I seen this thread. I have godaddy and have requested the switch from PHP 4 to 5. It is in the process.

However, I had a question.............why is prestashop only configured to work with php 5 ? should it not be backwards compatible ? or atleast allow for php 4 ??

It seems MANY have had this problem, so why is the code not altered to allow for php 4 ?


Just an idea


Chris

Share this post


Link to post
Share on other sites
  • 0
There are two main reasons I can think of:

1) PHP4 is now unsupported, so is likely to disappear from most hosting packages (the only reason it's still there is a combination of apathy and backwards-compatibility with some really ancient/poorly written code).
2) The majority of the nice functionality offered by PrestaShop is enabled through the use of new features which were introduced in PHP5. Having to get these same features working in PHP4 (duplicating the work of many others) would slow development down to a crawl.

:-)

Paul

Share this post


Link to post
Share on other sites
  • 0
hi, the version on the server i use is php4,
i create the [i].htaccess[/i] with this line:

[b]AddType x-mapp-php5 .php[/b]

but instead the white screen, now i've got the following error:

[i]<?php function microtime_float() { list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); } include(dirname(__FILE__).'/config/config.inc.php'); include(dirname(__FILE__).'/header.php'); $smarty->assign('HOOK_HOME', Module::hookExec('home')); $smarty->display(_PS_THEME_DIR_.'index.tpl'); include(dirname(__FILE__).'/footer.php'); ?>
[/i]

Share this post


Link to post
Share on other sites
  • 0
[quote author="Ehinarr" date="1225582638"]What about installation on www.000webhost.com where I cant pass for the second stage - system compatibility?[/quote]

I will have a look and see if I can install on it. Will report later.

Share this post


Link to post
Share on other sites
  • 0
If PHP5 isn't installed on the server nothing you add to an .htaccess file will allow PHP5 execution. I'm confused as to why anyone would have two php installations anyways -- does that make sense? It would only cause conflict on the server. If anything, have PHP5 installed on the server. Most hosts do this for free. If you are on a dedicated server call your tech support and have them install it for you (usually costs money.) By now PHP4 is very outdated compared to PHP5, but even with the upgrade PHP5 scales nicely for scripts written for PHP4 so upgrading the server itself is a much better solution. If I misread the thread my bad lol

Share this post


Link to post
Share on other sites
  • 0
[quote author="tongfaafaasai" date="1232157844"]i installed on 000webhost.com fine [/quote]
I installed in on their sister host Hosting 24, but my uploads take too long & the server times out. I can only get my Max Execution raised to 300 seconds. Not nearly enough time for the large 200MB they allow for upload sizes. I don't want to migrate to a new host, but it looks as if I'll have to anyway. :(
The .htacess work around works ok, if my file is under 20 MB.

Share this post


Link to post
Share on other sites
  • 0
[quote author="russty" date="1218654874"]i have changed over to linux at godaddy and everything works ok, so if you are going to host at godaddy choose linux server!! if you already have a win account it is really easy to change over, they move it for you , you just have to point your dns to the new ip address.[/quote]

@russty You're AWESOME!!! Thank you for the advices.

Share this post


Link to post
Share on other sites
  • 0
Hi,

I need help with installing prestashop at hostgator.com.
ive already uploaded the files and when i went to the install site address,
this error message came up, "
Parse error: syntax error, unexpected $end in /home/sugih/public_html/hadiahku/shop/install/index.php on line 97"

Can i get some advice on how to get this up and running.
Thanks.

Sugih

Share this post


Link to post
Share on other sites
  • 0
I need help installing at [b]IpowerWeb[/b]...http://www.ipowerweb.com

I have PHP 5+ enabled however when I input the information for the database connection, it states:

"Database server was not found. Please verify the login, password, and database server name fields."

I have run a database connection test script at my host using the settings I would use at the store and it will connect...but not able to connect using the installation script. PLEASE HELP

Here are my settings:

Database Server name: hcmotion.accountsupportmysql.com
Database: shoppe
Login: hcmotion
Password: ********

I contacted my host and we were able to connect to the database using a test script using the setting above at:

http://healthcare-motion.com/testdb.php

...and this was successful!

the location of the installation is simply: http://www.healthcare-motion.com/

Am I missing something in my settings? I need help with this ASAP as my client wants to use PrestaShop. States he looked into a lot of shops but wants this one...so if someone can please help me not look bad...that would be great :)

I have tried everything I know!

Regards,

Harry

Share this post


Link to post
Share on other sites
  • 0
Bonjour à tous !
:red:
Je viens de passer la nuit à l'installation de prestashop (je n'y connais rien quoi...) et lorsque je veux aller du côté admin voici l'erreur que j'ai et qui m'empêche de me connecter :
[quote]
Il y a 1 erreur


1. Path is not the same between your browser and you server :

- Server:
admin1974/login.php

- Browser:
mimimagic/admin1974/login.php

[/quote]

Quelqu'un pourrait il m'aider ?! :grrr: ;-)

Share this post


Link to post
Share on other sites
  • 0
[quote author="tylivia" date="1235785340"]I need help installing at [b]IpowerWeb[/b]...http://www.ipowerweb.com

I have PHP 5+ enabled however when I input the information for the database connection, it states:

"Database server was not found. Please verify the login, password, and database server name fields."

I have run a database connection test script at my host using the settings I would use at the store and it will connect...but not able to connect using the installation script. PLEASE HELP

Here are my settings:

Database Server name: hcmotion.accountsupportmysql.com
Database: shoppe
Login: hcmotion
Password: ********

I contacted my host and we were able to connect to the database using a test script using the setting above at:

http://healthcare-motion.com/testdb.php

...and this was successful!

the location of the installation is simply: http://www.healthcare-motion.com/

Am I missing something in my settings? I need help with this ASAP as my client wants to use PrestaShop. States he looked into a lot of shops but wants this one...so if someone can please help me not look bad...that would be great :)

I have tried everything I know!

Regards,

Harry[/quote]

Any suggestions? Please? Any input would be greatly appreciated!

Share this post


Link to post
Share on other sites
  • 0
Hi, I also can't get past page 2 system compatibility. I changed all the permissions as stated but it still won't let me go pass this. Did you do something else?


[quote author="tongfaafaasai" date="1232157844"][quote author="Ehinarr" date="1225582638"]What about installation on www.000webhost.com where I cant pass for the second stage - system compatibility?[/quote]

i installed on 000webhost.com fine and here is the sample of the site www.tongfaafaasai.com[/quote]

Share this post


Link to post
Share on other sites
  • 0
THIS ONLY PERTAINS TO GODADDY HOSTING


I tried to load Prestashop on several of my hosting accounts for testing.

However after many attempts on my free hosting accounts and several walk thrus of the installation process. I discovered that I could only get Prestashop to work on paid hosting accounts.

On each attempt of the installation the results were the same. On all hosting accounts that were free, the installation froze at the 2nd screen with "optional installation"

On both paid hosting accounts the installation was flawless.


I don't know if this result is common but it seems that the people getting stuck on page 2 of the installation are on free hosting

Share this post


Link to post
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

×