logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 27-05-2018 13:16:01

Debian Alain
Membre
Lieu : Bretagne
Distrib. : sid (unstable) / bullseye (stable)
Noyau : Linux sid 6.4.0-3-amd64
(G)UI : Gnome X.org (X11) / GDM3
Inscription : 11-03-2017
Site Web

[Résolu] migration de mon site web wordpress

bonjour .

mon site web est prêt .

malgré tout : impossible de le publier !

voilà le résultat :  1527422800-capture-du-2018-05-27-14-01-23.png

ma base de données :  1527422811-capture-du-2018-05-27-14-00-38.png

les détails du site :  1527422816-capture-du-2018-05-27-14-00-18.png

gestion du site :  1527422829-capture-du-2018-05-27-14-00-00.png

mon fichier de config :

:/var/www/html$ cat wp-config.php


// /var/www/html$ cat wp-config.php
<?php
/**
 * The base configuration for WordPress
 *
 * The wp-config.php creation script uses this file during the
 * installation. You don't have to use the web site, you can
 * copy this file to "wp-config.php" and fill in the values.
 *
 * This file contains the following configurations:
 *
 * * MySQL settings
 * * Secret keys
 * * Database table prefix
 * * ABSPATH
 *
 * @link https://codex.wordpress.org/Editing_wp-config.php
 *
 * @package WordPress
 */


// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'nom de la base de données');

/** MySQL database username */
/** define('DB_USER', 'wpuser'); */
define('DB_USER', 'nom utilisateur bdd');

/** MySQL database password */
define('DB_PASSWORD', 'XXXXXXXXXX');

/** MySQL hostname */
define('DB_HOST', 'localhost');

/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8mb4');

/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');

/**#@+
 * Authentication Unique Keys and Salts.
 *
 * Change these to different unique phrases!
 * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
 * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
 *
 * @since 2.6.0
 */

define('AUTH_KEY',         'V|[GCB[,Flz_}R=(>hPym9FU)88duP5W&DnEwp!QCVgs$A_*5H#tQmB8F tzqP=)');
define('SECURE_AUTH_KEY',  '3i`C&!]B}~jQ~a&-pg+xH*/_x,:FCM;j^;v<!jo<(FGsNp,/4A8ekq$%HF,t^eyw');
define('LOGGED_IN_KEY',    'O- S9zN76J!v=]TaOMI9=|n:+0u_}qRM?zf;eb[0}Cv-a`H~$VDj@&z,ag4DdbI-');
define('NONCE_KEY',        'TvZcJ{8:D9+B@<=@_0-l08W8oAf 8;HSBn?Sm=qfk]p+{Hiow^Y.Qf1K2G?VkfHI');
define('AUTH_SALT',        '|p8fi`>>?@:1hJ$]t7 vO>?o=N#<u!x: )<g ]g_<hkZn#4eVB2mCn$a!~?X2t!*');
define('SECURE_AUTH_SALT', 'v7(uLw|Ssz^yq[M=,y)&Q]KA;N^-hq6+YkLx9Sx4;}<y)U{mMkwTsXGXO630lLC7');
define('LOGGED_IN_SALT',   'D sv}.Fk[v~!eD|JH-DIl/0!|NI*7k^s lJRxyI<w}.CwX=1<u,%EoN<]%s,B46X');
define('NONCE_SALT',       '=GWN$W>2K<WV+V@RC;,Hh5U^`?yHA;}^&=-~D6Nv2rpQbr4I#A>APvG>uU2Z4o(b');

/**#@-*/

/**
 * WordPress Database Table prefix.
 *
 * You can have multiple installations in one database if you give each
 * a unique prefix. Only numbers, letters, and underscores please!
 */

$table_prefix  = 'wp_';

/**
 * For developers: WordPress debugging mode.
 *
 * Change this to true to enable the display of notices during development.
 * It is strongly recommended that plugin and theme developers use WP_DEBUG
 * in their development environments.
 *
 * For information on other constants that can be used for debugging,
 * visit the Codex.
 *
 * @link https://codex.wordpress.org/Debugging_in_WordPress
 */

define('WP_DEBUG', false);

/* That's all, stop editing! Happy blogging. */

/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
  define('ABSPATH', dirname(__FILE__) . '/');

/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');
 



je pige que dalle .

un ch'tit coup de main (ou de pied wink  )

à moins qu'il faille réinitialiser le site ?

Dernière modification par Debian Alain (27-05-2018 15:13:13)

Hors ligne

#2 27-05-2018 13:28:48

IceF0x
Membre
Distrib. : Jessie 8.7
Noyau : Linux 3.16.0-4-amd64
(G)UI : OpenBox
Inscription : 05-02-2012

Re : [Résolu] migration de mon site web wordpress

Si je comprend bien, ta base de donnée n'est pas hébergé chez toi mais le site oui ?

1475862269.gif

Hors ligne

#3 27-05-2018 13:35:21

Debian Alain
Membre
Lieu : Bretagne
Distrib. : sid (unstable) / bullseye (stable)
Noyau : Linux sid 6.4.0-3-amd64
(G)UI : Gnome X.org (X11) / GDM3
Inscription : 11-03-2017
Site Web

Re : [Résolu] migration de mon site web wordpress

attends IceF0x , je t'explique :

j'ai créé un site web chez moi , en local .

qui dit site web , dit php , mysql , /var/www/html/ , et tout le toutim .

je transfère le site sur 000webhost . le transfert se passe bien .

je transfère la bdd : j'ai eu du mal mais j'y suis arrivé .

reste le fichier de config ("wp-config.php") et là , ça foire .

mon site ne fonctionne toujours pas et je ne sais pas comment m'y prendre .

chez moi , en local , tout est ok .

chez l'hébergeur : la panade !

Dernière modification par Debian Alain (27-05-2018 20:48:30)

Hors ligne

#4 27-05-2018 13:57:24

potemkine17
Membre
Distrib. : Débian Bookworm Cinnamon
Noyau : amd64
Inscription : 17-09-2014

Re : [Résolu] migration de mon site web wordpress

Ton site devrait être en ligne depuis quand ?

Hors ligne

#5 27-05-2018 14:19:01

Debian Alain
Membre
Lieu : Bretagne
Distrib. : sid (unstable) / bullseye (stable)
Noyau : Linux sid 6.4.0-3-amd64
(G)UI : Gnome X.org (X11) / GDM3
Inscription : 11-03-2017
Site Web

Re : [Résolu] migration de mon site web wordpress

c'est bon potemkine17 et icef0x , souci résolu .

ça fesait au moins 2 semaines que je trainais dessus , presque un mois .

par contre , il parait que je dois changer mon mot de passe , lequel ?

voilà , c'est fait .

j'espère que j'ai pas gaffé .

Dernière modification par Debian Alain (27-05-2018 14:24:52)

Hors ligne

#6 27-05-2018 14:34:20

potemkine17
Membre
Distrib. : Débian Bookworm Cinnamon
Noyau : amd64
Inscription : 17-09-2014

Re : [Résolu] migration de mon site web wordpress

Très bien... Mais si tu pouvais en dire plus. pas vraiment pour moi ( mes galères sont à l'opposer des tiennes) mais pour les utilisateurs de WP  par exemple : Si L'appli de 000webhost  pose problème , c'est bon à savoir.  Bonne journée.

Hors ligne

#7 27-05-2018 15:07:25

captnfab
Admin-Girafe
Lieu : /dev/random
Distrib. : Debian
Noyau : Dur
(G)UI : gui gui, je zuis un doiseau
Inscription : 07-07-2008
Site Web

Re : [Résolu] migration de mon site web wordpress

Lorsque l'on migre un WordPress, il faut faire deux changements immédiatement :

D'abord, reconfigurer la connexion à la base de donnée. Ça se fait dans le wp-config.php, il faut modifier les lignes correspondantes, avec les informations données par l'hébergeur :

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'ma nouvelle base de donnée');
 
/** MySQL database username */
define('DB_USER', 'le username mysql');
 
/** MySQL database password */
define('DB_PASSWORD', 'le pass mysql');
 
/** MySQL hostname */
define('DB_HOST', 'localhost');



Ensuite, si l'adresse du site a changé, comme celle-ci est enregistrée dans la base de donnée, il faut la forcer provisoirement via le fichier de configuration, en rajoutant les lignes :

define('WP_HOME','https://lanouvelleadressedemonsite/');
define('WP_SITEURL','https://lanouvelleadressedemonsite/');



Une fois ces deux opérations effectuées, le site de Debian Alain est tombé en marche smile


captnfab,
Association Debian-Facile, bépo.
TheDoctor: Your wish is my command… But be careful what you wish for.

Hors ligne

#8 27-05-2018 15:10:46

Debian Alain
Membre
Lieu : Bretagne
Distrib. : sid (unstable) / bullseye (stable)
Noyau : Linux sid 6.4.0-3-amd64
(G)UI : Gnome X.org (X11) / GDM3
Inscription : 11-03-2017
Site Web

Re : [Résolu] migration de mon site web wordpress

il m'a fallu rajouter deux lignes au fichier wp-config.php .

:/var/www/html$ cat wp-config.php



<?php
/**
 * The base configuration for WordPress
 *
 * The wp-config.php creation script uses this file during the
 * installation. You don't have to use the web site, you can
 * copy this file to "wp-config.php" and fill in the values.
 *
 * This file contains the following configurations:
 *
 * * MySQL settings
 * * Secret keys
 * * Database table prefix
 * * ABSPATH
 *
 * @link https://codex.wordpress.org/Editing_wp-config.php
 *
 * @package WordPress
 */


define('WP_HOME','https://alain-bellec.000webhostapp.com/');
define('WP_SITEURL','https://alain-bellec.000webhostapp.com/');

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'nom de la base de données');

/** MySQL database username */
/** define('DB_USER', 'wpuser'); */
define('DB_USER', 'nom de l utilisateur de la bdd');

/** MySQL database password */
define('DB_PASSWORD', 'mt de passe de la bdd');

/** MySQL hostname */
define('DB_HOST', 'localhost');

/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8mb4');

/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');

/**#@+
 * Authentication Unique Keys and Salts.
 *
 * Change these to different unique phrases!
 * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
 * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
 *
 * @since 2.6.0
 */

define('AUTH_KEY',         'V|[GCB[,Flz_}R=(>hPym9FU)88duP5W&DnEwp!QCVgs$A_*5H#tQmB8F tzqP=)');
define('SECURE_AUTH_KEY',  '3i`C&!]B}~jQ~a&-pg+xH*/_x,:FCM;j^;v<!jo<(FGsNp,/4A8ekq$%HF,t^eyw');
define('LOGGED_IN_KEY',    'O- S9zN76J!v=]TaOMI9=|n:+0u_}qRM?zf;eb[0}Cv-a`H~$VDj@&z,ag4DdbI-');
define('NONCE_KEY',        'TvZcJ{8:D9+B@<=@_0-l08W8oAf 8;HSBn?Sm=qfk]p+{Hiow^Y.Qf1K2G?VkfHI');
define('AUTH_SALT',        '|p8fi`>>?@:1hJ$]t7 vO>?o=N#<u!x: )<g ]g_<hkZn#4eVB2mCn$a!~?X2t!*');
define('SECURE_AUTH_SALT', 'v7(uLw|Ssz^yq[M=,y)&Q]KA;N^-hq6+YkLx9Sx4;}<y)U{mMkwTsXGXO630lLC7');
define('LOGGED_IN_SALT',   'D sv}.Fk[v~!eD|JH-DIl/0!|NI*7k^s lJRxyI<w}.CwX=1<u,%EoN<]%s,B46X');
define('NONCE_SALT',       '=GWN$W>2K<WV+V@RC;,Hh5U^`?yHA;}^&=-~D6Nv2rpQbr4I#A>APvG>uU2Z4o(b');

/**#@-*/

/**
 * WordPress Database Table prefix.
 *
 * You can have multiple installations in one database if you give each
 * a unique prefix. Only numbers, letters, and underscores please!
 */

$table_prefix  = 'wp_';

/**
 * For developers: WordPress debugging mode.
 *
 * Change this to true to enable the display of notices during development.
 * It is strongly recommended that plugin and theme developers use WP_DEBUG
 * in their development environments.
 *
 * For information on other constants that can be used for debugging,
 * visit the Codex.
 *
 * @link https://codex.wordpress.org/Debugging_in_WordPress
 */

define('WP_DEBUG', true);

/* That's all, stop editing! Happy blogging. */

/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
  define('ABSPATH', dirname(__FILE__) . '/');

/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');
 



et après transfert du fichier , tout était ok .

Dernière modification par Debian Alain (27-05-2018 20:50:30)

Hors ligne

#9 27-05-2018 15:29:48

potemkine17
Membre
Distrib. : Débian Bookworm Cinnamon
Noyau : amd64
Inscription : 17-09-2014

Re : [Résolu] migration de mon site web wordpress

reconfigurer la connexion à la base de donnée


J'ai eu ce problème mais pas la solution. J'ai du virer WP car je ne savais pas quoi modifier. Trop tard pour moi.

Hors ligne

#10 18-05-2021 11:31:16

TyZef
Membre
Lieu : Clan d'Eau.
Distrib. : ~ Debian 12 noDE ~ inspired by nakeDeb ~
Noyau : Linux 6.1.0-18-amd64
(G)UI : OB3
Inscription : 09-05-2013

Re : [Résolu] migration de mon site web wordpress

potemkine17 a écrit :

reconfigurer la connexion à la base de donnée


J'ai eu ce problème mais pas la solution. J'ai du virer WP car je ne savais pas quoi modifier. Trop tard pour moi.


Comme quoi www.debian-facile.org est ton ami !


« De deux choses lune, l’autre c’est le soleil » - Barbara Prévert.

En ligne

Pied de page des forums