Jump to content
Sign in to follow this  
Patric

[RESOLU] Configuration chez OVH

Recommended Posts

bonjour,
je narrvie pas l'installer; je deja fais le modif sur le fichier htaccess pour le ovh , mais pas de resultate...

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homez.57/guida/www/Boutik/01/install/classes/LanguagesManager.php on line 7

Share this post


Link to post
Share on other sites

rey55 : je te crée un nouveau topic, je pense qu'il est mieux de conserver celui en sticky pour donner des infos plutôt que pour demander de l'aide... ;-)

Share this post


Link to post
Share on other sites

J'ai aussi un problème en installant prestashop sur OVH :

Quand je valide l'adresse
http://www.monsite.com/vente/install/

J'ai sur l'écran
getIncludeTradFilename()) include_once($lm->getIncludeTradFilename()); ?>


Ca semble provenir des lignes suivantes :
include(INSTALL_PATH.'/classes/LanguagesManager.php');
$lm = new LanguageManager(dirname(__FILE__).'/langs/list.xml');
$_LANG = array();
$_LIST_WORDS = array();
function lang($txt) {
global $_LANG , $_LIST_WORDS;
return (isset($_LANG[$txt]) ? $_LANG[$txt] : $txt);
}
if ($lm->getIncludeTradFilename())
include_once($lm->getIncludeTradFilename());
?>

<html >
<head>

*********************************
Mon fichier .htaccess
SetEnv PHP_VER 5
SetEnv REGISTER_GLOBALS 0
RewriteBase /

RewriteEngine on

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 [QSA,L,E]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ supplier.php?id_supplier=$1$3 [QSA,L,E]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]

AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
ErrorDocument 404 /404.php

Merci de votre aide

Share this post


Link to post
Share on other sites
Poste le contenu de ton fichier .htaccess.



merci ,
voila mon fichier htaccess.txt

SetEnv PHP_VER 5
SetEnv REGISTER_GLOBALS 0
RewriteBase /
# URL rewriting module activation
RewriteEngine on

# URL rewriting rules
RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$2$4 [L,E]
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 [QSA,L,E]
RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ cms.php?id_cms=$1 [QSA,L,E]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ supplier.php?id_supplier=$1$3 [QSA,L,E]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]

# Catch 404 errors
ErrorDocument 404 /404.php

Share this post


Link to post
Share on other sites

je suis arriver, ...
il falé renomé le fichier htaccess.txt = .htacces (sans l'extention .txt)

merci, merci encore

Share this post


Link to post
Share on other sites
J'ai aussi un problème en installant prestashop sur OVH :

Quand je valide l'adresse
http://www.monsite.com/vente/install/

J'ai sur l'écran
getIncludeTradFilename()) include_once($lm->getIncludeTradFilename()); ?>



************************************************
Avec le fichier suivant, ça marche.

Merci à vous
************************************************

SetEnv PHP_VER 5
SetEnv REGISTER_GLOBALS 0
RewriteBase /
# URL rewriting module activation
RewriteEngine on

# URL rewriting rules
RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.)$ product.php?id_product=$2$4 [L,E]
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 [QSA,L,E]
RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-])(.)$ cms.php?id_cms=$1 [QSA,L,E]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-])(.)$ supplier.php?id_supplier=$1$3 [QSA,L,E]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-])(.*)$ manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]

# Catch 404 errors
ErrorDocument 404 /404.php

PS :
comment le passer à "résolu" ?

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
Sign in to follow this  

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More