Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 18/10/2018, à 14:08

jellfedora

Probléme installation d'un wordpress custom

Bonjour,
je tente d'installer un wordpress custom en local sur ubuntu 18.04 (installé récemment).
J'ai installé lamp et tout à l'air ok de ce côté là mais impossible d'installer un wordpress custom (contenant composer).
Lorsque que je me connecte en localhost sur mon projet (sans wp-config de renseigné) il me propose de créer ce dernier mais rien ne se passe (statut 500).
Si je lance l'install avec wp-config configuré, à savoir nom de la bdd, l'utilisateur, le mdp, clés de salage,url de content etc) j'ai install.php qui est relancé pleins de fois avec le statut 302 et bien sur ma bdd reste vide.

Voici mon .htaccess:

RewriteEngine on
RewriteCond %{REQUEST_URI} !^wp/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1

Si quelqu'un a une idée de ou est le probléme je suis preneur smile

Hors ligne

#2 Le 18/10/2018, à 18:57

krodelabestiole

Re : Probléme installation d'un wordpress custom

modération : déplacement de Accès internet et réseaux vers Serveurs


je ne comprends pas ce que tu entends par "wordpress custom (contenant composer)"...

tu veux dire que tu installes WordPress avec composer ? si c'est ça je te conseille wordplate : https://wordplate.github.io/
un très bon tuto là : https://www.youtube.com/watch?v=IZlWH7CZPFQ

pour une erreur 500 il faut consulter les logs : https://doc.ubuntu-fr.org/apache2#problemes_courants

Hors ligne

#3 Le 18/10/2018, à 22:29

jellfedora

Re : Probléme installation d'un wordpress custom

Tout d'abord désolé pour le post au mauvais endroit.
Ensuite c'est un wordpress contenant déjà le fichier composer.json, et basé sur le squelette johnbloch.
cad:

{
    "name": "mint/three",
    "authors": [
        {
            "name": "...",
            "email": "..."
        }
    ],
    "repositories":[
        {
            "type":"composer",
            "url":"https://wpackagist.org"
        }
    ],
    "require": {
        "johnpbloch/wordpress": "^4.9",
        "wpackagist-theme/twentyseventeen": "*",
        "wpackagist-plugin/hello-dolly": "*"
    },
    "extra": {
        "wordpress-install-dir": "wp",
        "installer-paths": {
            "content/plugins/{$name}/": ["type:wordpress-plugin"],
            "content/themes/{$name}/": ["type:wordpress-theme"]
        }
    }
}

C'est avec celui ci que je souhaite travailler.
Concernant l'erreur 500, je me sers du meme .htaccess que sur mint (avant mon passage sur ubuntu):

RewriteEngine on
RewriteCond %{REQUEST_URI} !^wp/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1

Dernière modification par jellfedora (Le 18/10/2018, à 22:30)

Hors ligne

#4 Le 18/10/2018, à 22:46

krodelabestiole

Re : Probléme installation d'un wordpress custom

et il y a quoi dans les logs d'erreur d'apache ?

Hors ligne

#5 Le 18/10/2018, à 23:06

jellfedora

Re : Probléme installation d'un wordpress custom

Je ne sais pas si ce fichier qu'il te faut (error.log):

  GNU nano 2.9.3                                                                                    apache2/error.log                                                                                              

[Thu Oct 18 14:24:33.064841 2018] [php7:warn] [pid 16831] [client ::1:42178] PHP Warning:  Use of undefined constant DB_USER - assumed 'DB_USER' (this will throw an Error in a future version of PHP) in /home/je$
[Thu Oct 18 14:24:33.064881 2018] [php7:warn] [pid 16831] [client ::1:42178] PHP Warning:  Use of undefined constant DB_PASSWORD - assumed 'DB_PASSWORD' (this will throw an Error in a future version of PHP) in $
[Thu Oct 18 14:24:33.064891 2018] [php7:warn] [pid 16831] [client ::1:42178] PHP Warning:  Use of undefined constant DB_NAME - assumed 'DB_NAME' (this will throw an Error in a future version of PHP) in /home/je$
[Thu Oct 18 14:24:33.064898 2018] [php7:warn] [pid 16831] [client ::1:42178] PHP Warning:  Use of undefined constant DB_HOST - assumed 'DB_HOST' (this will throw an Error in a future version of PHP) in /home/je$
[Thu Oct 18 14:24:40.364569 2018] [php7:warn] [pid 24983] [client ::1:42236] PHP Warning:  Use of undefined constant DB_USER - assumed 'DB_USER' (this will throw an Error in a future version of PHP) in /home/je$
[Thu Oct 18 14:24:40.364608 2018] [php7:warn] [pid 24983] [client ::1:42236] PHP Warning:  Use of undefined constant DB_PASSWORD - assumed 'DB_PASSWORD' (this will throw an Error in a future version of PHP) in $
[Thu Oct 18 14:24:40.364617 2018] [php7:warn] [pid 24983] [client ::1:42236] PHP Warning:  Use of undefined constant DB_NAME - assumed 'DB_NAME' (this will throw an Error in a future version of PHP) in /home/je$
[Thu Oct 18 14:24:40.364625 2018] [php7:warn] [pid 24983] [client ::1:42236] PHP Warning:  Use of undefined constant DB_HOST - assumed 'DB_HOST' (this will throw an Error in a future version of PHP) in /home/je$
[Thu Oct 18 14:24:40.452423 2018] [php7:notice] [pid 24983] [client ::1:42236] Erreur de la base de donn\xc3\xa9es WordPress Unknown column 'wp_' in 'field list' pour la requ\xc3\xaate SELECT wp_, referer: http$
[Thu Oct 18 14:24:48.378430 2018] [php7:notice] [pid 16835] [client ::1:42270] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions.
[Thu Oct 18 14:24:48.480477 2018] [php7:notice] [pid 16835] [client ::1:42270] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions.
[Thu Oct 18 14:24:49.743551 2018] [php7:notice] [pid 16835] [client ::1:42270] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions.
sh: 1: /usr/sbin/sendmail: not found
[Thu Oct 18 14:25:39.631465 2018] [php7:notice] [pid 16831] [client ::1:42734] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions.
[Thu Oct 18 14:49:35.720484 2018] [php7:notice] [pid 27062] [client ::1:43582] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions.
[Thu Oct 18 14:49:38.712306 2018] [php7:notice] [pid 27062] [client ::1:43582] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions.
[Thu Oct 18 14:49:41.711551 2018] [php7:notice] [pid 27062] [client ::1:43582] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions.
[Thu Oct 18 14:49:41.742691 2018] [php7:notice] [pid 27062] [client ::1:43582] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions.
[Thu Oct 18 14:49:41.897474 2018] [php7:notice] [pid 27062] [client ::1:43582] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions.
[Thu Oct 18 14:49:41.995935 2018] [php7:notice] [pid 27062] [client ::1:43582] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions.
[Thu Oct 18 22:06:44.252646 2018] [mpm_prefork:notice] [pid 1071] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Thu Oct 18 22:06:44.257358 2018] [core:notice] [pid 1071] AH00094: Command line: '/usr/sbin/apache2'
[Thu Oct 18 22:31:09.471438 2018] [php7:notice] [pid 1088] [client ::1:51274] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions.
[Thu Oct 18 22:31:09.685599 2018] [php7:notice] [pid 1088] [client ::1:51274] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions.
[Thu Oct 18 22:31:09.693866 2018] [php7:notice] [pid 1085] [client ::1:51276] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions.
[Thu Oct 18 22:31:14.483504 2018] [php7:notice] [pid 1085] [client ::1:51276] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions.
[Thu Oct 18 22:31:14.510677 2018] [php7:notice] [pid 1085] [client ::1:51276] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions.
[Thu Oct 18 22:31:14.773836 2018] [php7:notice] [pid 1085] [client ::1:51276] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions.
[Thu Oct 18 22:31:14.790772 2018] [php7:notice] [pid 5109] [client ::1:51290] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions.
[Thu Oct 18 22:31:14.802711 2018] [php7:notice] [pid 1087] [client ::1:51292] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions.
[Thu Oct 18 22:31:14.808378 2018] [php7:notice] [pid 1086] [client ::1:51294] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions.
[Thu Oct 18 22:31:14.808480 2018] [php7:notice] [pid 1089] [client ::1:51296] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions.
[Thu Oct 18 22:31:14.813418 2018] [php7:notice] [pid 7135] [client ::1:51298] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions.
[Thu Oct 18 22:31:14.819091 2018] [php7:notice] [pid 1085] [client ::1:51276] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions.
[Thu Oct 18 22:31:14.853199 2018] [php7:notice] [pid 5109] [client ::1:51290] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions.
[Thu Oct 18 22:31:15.433893 2018] [php7:notice] [pid 5109] [client ::1:51290] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions.
[Thu Oct 18 22:31:15.650432 2018] [php7:notice] [pid 5109] [client ::1:51290] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions.
[Thu Oct 18 22:31:18.436576 2018] [php7:notice] [pid 5109] [client ::1:51290] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions.
[Thu Oct 18 22:31:19.273852 2018] [php7:notice] [pid 5109] [client ::1:51290] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions.
[Thu Oct 18 22:31:20.748522 2018] [php7:notice] [pid 5109] [client ::1:51290] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions.
[Thu Oct 18 22:55:15.922871 2018] [php7:notice] [pid 7161] [client ::1:51852] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions.
[Thu Oct 18 22:55:21.964975 2018] [php7:notice] [pid 7163] [client ::1:51854] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions.
jellfedora@jellfedora-ubuntu:/var/log$ nano apache2/error.
error.log            error.log.3.gz       error.log.8.gz
error.log.1          error.log.4.gz       error.log.9.gz
error.log.10.gz      error.log.5.gz       error.wordpress.log
error.log.11.gz      error.log.6.gz       
error.log.2.gz       error.log.7.gz  

Dernière modification par jellfedora (Le 18/10/2018, à 23:06)

Hors ligne

#6 Le 18/10/2018, à 23:18

krodelabestiole

Re : Probléme installation d'un wordpress custom

le contenu de error.wordpress.log , je suppose que c'est le log associé à ton hôte virtuel pour wordpress...

Hors ligne

#7 Le 18/10/2018, à 23:21

jellfedora

Re : Probléme installation d'un wordpress custom

Héhé jy ai bien pensé mais il est vide tongue

Hors ligne

#8 Le 19/10/2018, à 07:19

krodelabestiole

Re : Probléme installation d'un wordpress custom

regarde les fichiers de logs, leurs date de dernière modification (ls -l), déclenche l'erreur est donne la dernière ligne inscrite, qui correspond à cette erreur.

Hors ligne