Citation :
beru a écrit :
L'installation c'est le plus compliqué, après ça roule tout seul ![](https://www.frxoops.org/uploads/smil4bb645df78dd6.gif)
Voici le fichier mainfile.php pour cette arborescence :
Citation :Citation :
Tu places tes fichiers comme ceci :
• /xoops_libs au premier niveau
• /xoops_date au premier niveau
• tout le reste au 2e niveau, c'est à dire dans le dossier /www
Cela donnera :
Citation :Citation :Citation :2e niveau :
/www/mainfile.php (ainsi que tout le reste)
Pour le fichier mainfile, il devra alors commencer comme ceci:
if (!defined("XOOPS_MAINFILE_INCLUDED")) {
define("XOOPS_MAINFILE_INCLUDED", 1);
// XOOPS Physical Paths
// Physical path to the XOOPS documents (served) directory WITHOUT trailing slash
define('XOOPS_ROOT_PATH', '/xyz/www');
// For forward compatibility
// Physical path to the XOOPS library directory WITHOUT trailing slash
define('XOOPS_PATH', '/xyz/xoops_lib');
// Physical path to the XOOPS datafiles (writable) directory WITHOUT trailing slash
define('XOOPS_VAR_PATH', '/xyz/xoops_data');
// Alias of XOOPS_PATH, for compatibility, temporary solution
define("XOOPS_TRUST_PATH", XOOPS_PATH);
// URL Association for SSL and Protocol Compatibility
$http = 'http://';
if (!empty($_SERVER['HTTPS'])) {
$http = ($_SERVER['HTTPS']=='on') ? 'https://' : 'http://';
}
define('XOOPS_PROT', $http);
// XOOPS Virtual Path (URL)
// Virtual path to your main XOOPS directory WITHOUT trailing slash
// Example: define('XOOPS_URL', '');
define('XOOPS_URL', 'http://www.ton-nom-de-domaine.com');
(en changeant bien entendu www.ton-nom-de-domaine.com)
Ecoute, avant d'avoir lu ce message j'ai refait l'instal. et j'ai réussi !
En fait, si ça peut aider quelqu'un, le problème que j'avais était que je faisais le config. avant de déplacer les fichiers hors du www et (je ne sais pas pourquoi) les modifications de mainfile.php ne fonctionnaient pas.
Bref, il faut d'abord mettre les fichiers "xoops_lib" et "xoops_data" hors du "www" et ensuite configurer Xoops et là ça fonctionne.
Un grand merci à toi et à ceux qui m'ont aider !
Jean