Installation serveur LAMP

Postez ici toutes vos demandes d’assistance générale concernant le fonctionnement de Linux Mint, qui n'entrent pas dans les autres rubriques.
Avatar du membre
Pingouindumint
Messages : 609
Enregistré le : ven. 6 janv. 2017 17:47
Contact :

Re: Installation serveur LAMP

Message par Pingouindumint »

Dernier message de la page précédente :

A quelle étape exactement ?
Je n'ai pas d'accès à la console mysql : pas de login user, ni root et pas de mdp.
Si au cours de l'install, il me demande le mdp de mysql, je suis chocolat.

Pour info, mon site en prod tourne avec apache et mysql.
Je vais regarder ton lien sur l'install de wordpress. Je verrai si je pourrai l'adapter.
PC1 : Asus Kernel: 6.17.0-20-generic arch: x86_64 bits: 64
Desktop: MATE v: 1.26.2 Distro: Linux Mint 22.3 Zena

Machine:
Desktop Mobo: ASRock model: AB350 Pro4 serial: <superuser required>
CM ASRock AB350 Pro4 - CPU : AMD Ryzen 5 2600 - 64 - CG Sapphire Radeon HD 6450
Realtek RTL8111/8168/8411 PCI - Hdd : Seagate 1.82 TiB et Kingston SSD : 240 Go - RAM 2x 8 Go
Double boot : Win10-linuxmint

PC 2 : Linux Mint 21.1 Mate 64 - CM : Asus M3A - CPU: AMD Phenom 9350e - CG : MSI Radeon HD 5450 - Realtek RTL-8100/8101L/8139 PCI Fast Ethernet Adapter
Avatar du membre
Pingouindumint
Messages : 609
Enregistré le : ven. 6 janv. 2017 17:47
Contact :

Re: Installation serveur LAMP

Message par Pingouindumint »

Réponse de la console :

Code : Tout sélectionner

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Et même en arrêtant mysql, j'ai la même erreur.
:(
PC1 : Asus Kernel: 6.17.0-20-generic arch: x86_64 bits: 64
Desktop: MATE v: 1.26.2 Distro: Linux Mint 22.3 Zena

Machine:
Desktop Mobo: ASRock model: AB350 Pro4 serial: <superuser required>
CM ASRock AB350 Pro4 - CPU : AMD Ryzen 5 2600 - 64 - CG Sapphire Radeon HD 6450
Realtek RTL8111/8168/8411 PCI - Hdd : Seagate 1.82 TiB et Kingston SSD : 240 Go - RAM 2x 8 Go
Double boot : Win10-linuxmint

PC 2 : Linux Mint 21.1 Mate 64 - CM : Asus M3A - CPU: AMD Phenom 9350e - CG : MSI Radeon HD 5450 - Realtek RTL-8100/8101L/8139 PCI Fast Ethernet Adapter
Avatar du membre
Pingouindumint
Messages : 609
Enregistré le : ven. 6 janv. 2017 17:47
Contact :

Re: Installation serveur LAMP

Message par Pingouindumint »

Ah, cette fois-ci en ayant rebooté, ça a marché.

Mais maintenant, je n'ai plus de mdp pour le root mysql, si j'ai bien compris.

Code : Tout sélectionner

Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.0.41-0ubuntu0.24.04.1 (Ubuntu)
Copyright (c) 2000, 2025, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> 

Je vois que ton tuto utilise un user dans mysql.
Comment créer un user classique ? Comment s'appelle-t-il dans mysql ?
Avec ou sans mot de passe pour le user classique ?

Et pour root, comment rentrer un mdp dans mysql ?
Pour l'instant, il n'en a plus.
Je vois que dans phpMyAdmin, il faut absolument mettre un mdp à root dans mysql.

J'aurai encore d'autres questions après.
PC1 : Asus Kernel: 6.17.0-20-generic arch: x86_64 bits: 64
Desktop: MATE v: 1.26.2 Distro: Linux Mint 22.3 Zena

Machine:
Desktop Mobo: ASRock model: AB350 Pro4 serial: <superuser required>
CM ASRock AB350 Pro4 - CPU : AMD Ryzen 5 2600 - 64 - CG Sapphire Radeon HD 6450
Realtek RTL8111/8168/8411 PCI - Hdd : Seagate 1.82 TiB et Kingston SSD : 240 Go - RAM 2x 8 Go
Double boot : Win10-linuxmint

PC 2 : Linux Mint 21.1 Mate 64 - CM : Asus M3A - CPU: AMD Phenom 9350e - CG : MSI Radeon HD 5450 - Realtek RTL-8100/8101L/8139 PCI Fast Ethernet Adapter
Avatar du membre
Pingouindumint
Messages : 609
Enregistré le : ven. 6 janv. 2017 17:47
Contact :

Re: Installation serveur LAMP

Message par Pingouindumint »

Bonjour à tous,

Merci de ta patience. ;)

J'ai commencé à taper tes commandes.
J'ai créé une bdd que j'ai appelé demo.
Ensuite, j'ai voulu créer un user sans mot de passe.
J'ai donc tapé ceci :

Code : Tout sélectionner

CREATE USER '<nom-user>'@'%';
et la réponse de la console mysql :

Code : Tout sélectionner

mysql> CREATE USER toto@% 
    -> 
Il faudrait que je remonte d'un étage pour continuer les commandes mysql. Comment faire ?

Merci.
PC1 : Asus Kernel: 6.17.0-20-generic arch: x86_64 bits: 64
Desktop: MATE v: 1.26.2 Distro: Linux Mint 22.3 Zena

Machine:
Desktop Mobo: ASRock model: AB350 Pro4 serial: <superuser required>
CM ASRock AB350 Pro4 - CPU : AMD Ryzen 5 2600 - 64 - CG Sapphire Radeon HD 6450
Realtek RTL8111/8168/8411 PCI - Hdd : Seagate 1.82 TiB et Kingston SSD : 240 Go - RAM 2x 8 Go
Double boot : Win10-linuxmint

PC 2 : Linux Mint 21.1 Mate 64 - CM : Asus M3A - CPU: AMD Phenom 9350e - CG : MSI Radeon HD 5450 - Realtek RTL-8100/8101L/8139 PCI Fast Ethernet Adapter
Avatar du membre
Pingouindumint
Messages : 609
Enregistré le : ven. 6 janv. 2017 17:47
Contact :

Re: Installation serveur LAMP

Message par Pingouindumint »

Je tape ceci ne voulant pas mettre de mot de passe sur l'user standard :

Code : Tout sélectionner

CREATE USER 'toto'@'%' IDENTIFIED WITH mysql_native_password BY '';
Réponse :

Code : Tout sélectionner

CREATE USER 'toto'@'%' IDENTIFIED WITH mysql_native_password BY '';
Peut-on continuer en créant un user sans mot de passe ?
PC1 : Asus Kernel: 6.17.0-20-generic arch: x86_64 bits: 64
Desktop: MATE v: 1.26.2 Distro: Linux Mint 22.3 Zena

Machine:
Desktop Mobo: ASRock model: AB350 Pro4 serial: <superuser required>
CM ASRock AB350 Pro4 - CPU : AMD Ryzen 5 2600 - 64 - CG Sapphire Radeon HD 6450
Realtek RTL8111/8168/8411 PCI - Hdd : Seagate 1.82 TiB et Kingston SSD : 240 Go - RAM 2x 8 Go
Double boot : Win10-linuxmint

PC 2 : Linux Mint 21.1 Mate 64 - CM : Asus M3A - CPU: AMD Phenom 9350e - CG : MSI Radeon HD 5450 - Realtek RTL-8100/8101L/8139 PCI Fast Ethernet Adapter
Avatar du membre
Pingouindumint
Messages : 609
Enregistré le : ven. 6 janv. 2017 17:47
Contact :

Re: Installation serveur LAMP

Message par Pingouindumint »

Je tape ta commande :

Code : Tout sélectionner

CREATE USER user 'toto'@'localhost';
Réponse de la 1ère commande :

Code : Tout sélectionner

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''toto'@'localhost'' at line 1
J'ai essayé aussi avec

Code : Tout sélectionner

CREATE USER 'toto'@'localhost';
Mais cela donne aussi une erreur :

Code : Tout sélectionner

ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
Que faire ? Merci.
PC1 : Asus Kernel: 6.17.0-20-generic arch: x86_64 bits: 64
Desktop: MATE v: 1.26.2 Distro: Linux Mint 22.3 Zena

Machine:
Desktop Mobo: ASRock model: AB350 Pro4 serial: <superuser required>
CM ASRock AB350 Pro4 - CPU : AMD Ryzen 5 2600 - 64 - CG Sapphire Radeon HD 6450
Realtek RTL8111/8168/8411 PCI - Hdd : Seagate 1.82 TiB et Kingston SSD : 240 Go - RAM 2x 8 Go
Double boot : Win10-linuxmint

PC 2 : Linux Mint 21.1 Mate 64 - CM : Asus M3A - CPU: AMD Phenom 9350e - CG : MSI Radeon HD 5450 - Realtek RTL-8100/8101L/8139 PCI Fast Ethernet Adapter
Avatar du membre
Pingouindumint
Messages : 609
Enregistré le : ven. 6 janv. 2017 17:47
Contact :

Re: Installation serveur LAMP

Message par Pingouindumint »

Mais cela donne une erreur :

Code : Tout sélectionner

ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
En fait, je ne voudrais pas mettre de mot de passe pour le user car je ne m'en rappellerai pas dans quelques mois quand j'aurai besoin à nouveau d'utiliser LAMP.
Ou alors, il me reste de mettre la possibilité de mettre un mdp identique à root et à user si mysql le permet ?
PC1 : Asus Kernel: 6.17.0-20-generic arch: x86_64 bits: 64
Desktop: MATE v: 1.26.2 Distro: Linux Mint 22.3 Zena

Machine:
Desktop Mobo: ASRock model: AB350 Pro4 serial: <superuser required>
CM ASRock AB350 Pro4 - CPU : AMD Ryzen 5 2600 - 64 - CG Sapphire Radeon HD 6450
Realtek RTL8111/8168/8411 PCI - Hdd : Seagate 1.82 TiB et Kingston SSD : 240 Go - RAM 2x 8 Go
Double boot : Win10-linuxmint

PC 2 : Linux Mint 21.1 Mate 64 - CM : Asus M3A - CPU: AMD Phenom 9350e - CG : MSI Radeon HD 5450 - Realtek RTL-8100/8101L/8139 PCI Fast Ethernet Adapter
Avatar du membre
Pingouindumint
Messages : 609
Enregistré le : ven. 6 janv. 2017 17:47
Contact :

Re: Installation serveur LAMP

Message par Pingouindumint »

Dans ce cas, erreur :

Code : Tout sélectionner

ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
PC1 : Asus Kernel: 6.17.0-20-generic arch: x86_64 bits: 64
Desktop: MATE v: 1.26.2 Distro: Linux Mint 22.3 Zena

Machine:
Desktop Mobo: ASRock model: AB350 Pro4 serial: <superuser required>
CM ASRock AB350 Pro4 - CPU : AMD Ryzen 5 2600 - 64 - CG Sapphire Radeon HD 6450
Realtek RTL8111/8168/8411 PCI - Hdd : Seagate 1.82 TiB et Kingston SSD : 240 Go - RAM 2x 8 Go
Double boot : Win10-linuxmint

PC 2 : Linux Mint 21.1 Mate 64 - CM : Asus M3A - CPU: AMD Phenom 9350e - CG : MSI Radeon HD 5450 - Realtek RTL-8100/8101L/8139 PCI Fast Ethernet Adapter
Avatar du membre
Pingouindumint
Messages : 609
Enregistré le : ven. 6 janv. 2017 17:47
Contact :

Re: Installation serveur LAMP

Message par Pingouindumint »

J'ai réglé le problème en mettant un mdp que j'ai rangé dans un coin du disque dur.
Il faut quand même que j'avance sur LAMP.
Et là, plus de souci.
Je reprends donc ton tuto.
Sur les autres tutos que j'ai revus cet après-midi, il ne parle pas et n'utilise pas les virtual hosts.

Les virtuals hosts, je prévois une install en local sur le hdd mais pas en VM.
Ai-je besoin des Virtual Hosts ?

Encore merci.
PC1 : Asus Kernel: 6.17.0-20-generic arch: x86_64 bits: 64
Desktop: MATE v: 1.26.2 Distro: Linux Mint 22.3 Zena

Machine:
Desktop Mobo: ASRock model: AB350 Pro4 serial: <superuser required>
CM ASRock AB350 Pro4 - CPU : AMD Ryzen 5 2600 - 64 - CG Sapphire Radeon HD 6450
Realtek RTL8111/8168/8411 PCI - Hdd : Seagate 1.82 TiB et Kingston SSD : 240 Go - RAM 2x 8 Go
Double boot : Win10-linuxmint

PC 2 : Linux Mint 21.1 Mate 64 - CM : Asus M3A - CPU: AMD Phenom 9350e - CG : MSI Radeon HD 5450 - Realtek RTL-8100/8101L/8139 PCI Fast Ethernet Adapter
Avatar du membre
Armaggion
Messages : 685
Enregistré le : jeu. 22 août 2024 16:48

Re: Installation serveur LAMP

Message par Armaggion »

Dans 6 mois tu n'auras plus du tout l'idée d'aller chercher ce fichier avec le mot de passe :mrgreen:
PC : Desktop | Linux Mint 22.1 Xia | Cinnamon 6.4.8 | 6.8.0-63-generic | Intel Core i5-13400F | 32GB | NVIDIA AD106 [GeForce RTX 4060 Ti] / 575.64.03
Avatar du membre
Pingouindumint
Messages : 609
Enregistré le : ven. 6 janv. 2017 17:47
Contact :

Re: Installation serveur LAMP

Message par Pingouindumint »

Pour cyrille :
1 seul site hébergé en local et en prod bien sûr. Vu mes capacités et mon temps disponible, je me limite à un seul site. ;)

Donc, après je peux ignorer les §3 et 4 du tuto pour arriver au module php.
C'est bien cela ?

Pour Armaggion :
Dans 6 mois tu n'auras plus du tout l'idée d'aller chercher ce fichier avec le mot de passe
Oui, je sais que ce sera dur de le retrouver. Cela fait 5 jours que j'étais bloqué quand même ! :(
Mais en aurais-je encore besoin si le site local tourne ?
PC1 : Asus Kernel: 6.17.0-20-generic arch: x86_64 bits: 64
Desktop: MATE v: 1.26.2 Distro: Linux Mint 22.3 Zena

Machine:
Desktop Mobo: ASRock model: AB350 Pro4 serial: <superuser required>
CM ASRock AB350 Pro4 - CPU : AMD Ryzen 5 2600 - 64 - CG Sapphire Radeon HD 6450
Realtek RTL8111/8168/8411 PCI - Hdd : Seagate 1.82 TiB et Kingston SSD : 240 Go - RAM 2x 8 Go
Double boot : Win10-linuxmint

PC 2 : Linux Mint 21.1 Mate 64 - CM : Asus M3A - CPU: AMD Phenom 9350e - CG : MSI Radeon HD 5450 - Realtek RTL-8100/8101L/8139 PCI Fast Ethernet Adapter
Répondre