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 :

Ok.
Mais comment purger les fichiers de conf : une commande console ?
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 ne m'en sors pas.
J'ai désinstallé.
Ensuite, j'ai réinstallé, il n'affiche pas la fenêtre demandant de saisir le mdp admin de mysql.
:(

Je vais devoir me créer une VM mint 22.
Encore merci de ta patience.
;)
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 »

Bonsoir à tous,

Cyrille, ayant trop abusé de ton temps, j'ai décidé d'effacer la / et d'installer la nouvelle mint 22.1 mate, pour pouvoir partir sur une base saine, sans traces ni miettes d'une quelconque installation. J'ai bien la mate 22.0 dans une vM. Mais elle me parait lente.
C'est pourquoi j'ai décidé d'installe rla 22.1 en effaçant la /.
J'espère que l'install devrait cette fois-ci bien se dérouler.

Je recommencerai demain car je termine les dernières installations et config qu'il reste à lancer.
Ensuite, demain, je recommencerai LAMp et je suivrai ton tuto.
Avec toutes les réponses que tu m'as donné, j'espère y arriver quand même.

Je donnerai de toute façon des nouvelles de cette install Lamp.
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,

Dès la première étape, il ne demande pas le mot de passe de mysql.
Voici le déroulé de l'installation :

Code : Tout sélectionner

Les NOUVEAUX paquets suivants vont être installés :     
  apache2 apache2-bin{a} apache2-data{a} apache2-utils{a} 
  libapache2-mod-php libapache2-mod-php8.3{a} libapr1t64{a} 
  libaprutil1-dbd-sqlite3{a} libaprutil1-ldap{a} libaprutil1t64{a} 
  libevent-pthreads-2.1-7t64{a} libhtml-template-perl{a} libmecab2{a} 
  mecab-ipadic{a} mecab-ipadic-utf8{a} mecab-utils{a} mysql-client-8.0{a} 
  mysql-client-core-8.0{a} mysql-common{a} mysql-server mysql-server-8.0{a} 
  mysql-server-core-8.0{a} php php-common{a} php-mysql php8.3{a} 
  php8.3-cli{a} php8.3-common{a} php8.3-mysql{a} php8.3-opcache{a} 
  php8.3-readline{a} 
0 paquets mis à jour, 31 nouvellement installés, 0 à enlever et 11 non mis à jour.
Il est nécessaire de télécharger 35,6 Mo d'archives. Après dépaquetage, 270 Mo seront utilisés.
Voulez-vous continuer ? [Y/n/?] 
...

Bon, apparemment, je vois une erreur à la ligne 207 :

Code : Tout sélectionner

mysqld will log errors to /var/log/mysql/error.log
Et le contenu de error.log dans /var/log/mysql :

Code : Tout sélectionner

2025-03-03T11:36:30.195632Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.41-0ubuntu0.24.04.1) initializing of server in progress as process 16999
2025-03-03T11:36:30.205544Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2025-03-03T11:36:31.433945Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2025-03-03T11:36:34.746745Z 6 [Warning] [MY-010453] [Server] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
2025-03-03T11:36:37.116921Z 6 [System] [MY-013172] [Server] Received SHUTDOWN from user boot. Shutting down mysqld (Version: 8.0.41-0ubuntu0.24.04.1).
2025-03-03T11:36:42.546061Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.41-0ubuntu0.24.04.1) starting as process 17051
2025-03-03T11:36:42.582331Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2025-03-03T11:36:42.958140Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2025-03-03T11:36:43.368319Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2025-03-03T11:36:43.368373Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2025-03-03T11:36:43.379093Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/tmp' in the path is accessible to all OS users. Consider choosing a different directory.
2025-03-03T11:36:43.411359Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Socket: /var/run/mysqld/mysqlx.sock
2025-03-03T11:36:43.411408Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.41-0ubuntu0.24.04.1'  socket: '/tmp/tmp.VKoC9hKTfb/mysqld.sock'  port: 0  (Ubuntu).
2025-03-03T11:36:43.448730Z 0 [System] [MY-013172] [Server] Received SHUTDOWN from user <via user signal>. Shutting down mysqld (Version: 8.0.41-0ubuntu0.24.04.1).
2025-03-03T11:36:45.899788Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.41-0ubuntu0.24.04.1)  (Ubuntu).
2025-03-03T11:36:46.988275Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.41-0ubuntu0.24.04.1) starting as process 17127
2025-03-03T11:36:47.001610Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2025-03-03T11:36:48.008025Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2025-03-03T11:36:48.340778Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2025-03-03T11:36:48.340835Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2025-03-03T11:36:48.350046Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/tmp' in the path is accessible to all OS users. Consider choosing a different directory.
2025-03-03T11:36:48.400229Z 7 [System] [MY-013172] [Server] Received SHUTDOWN from user boot. Shutting down mysqld (Version: 8.0.41-0ubuntu0.24.04.1).
2025-03-03T11:36:48.413320Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '127.0.0.1' port: 33060, socket: /var/run/mysqld/mysqlx.sock
2025-03-03T11:36:50.871761Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.41-0ubuntu0.24.04.1)  (Ubuntu).
2025-03-03T11:36:51.846313Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.41-0ubuntu0.24.04.1) starting as process 17294
2025-03-03T11:36:51.863049Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2025-03-03T11:36:53.149869Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2025-03-03T11:36:53.520082Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2025-03-03T11:36:53.520145Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2025-03-03T11:36:53.583967Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '127.0.0.1' port: 33060, socket: /var/run/mysqld/mysqlx.sock
2025-03-03T11:36:53.584115Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.41-0ubuntu0.24.04.1'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  (Ubuntu).
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 »

Rien de spécial.
Je n'ai fait que cette commande console pour commencer l'install de LAMP :

Code : Tout sélectionner

sudo aptitude install apache2 php libapache2-mod-php mysql-server php-mysql
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 »

On obtient la page

Code : Tout sélectionner

Apache2 Default Page
It works! 
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 »

Bonsoir à tous,

Mon PC ne veut pas vraiment de mysql.
Je suis arrivé à l'étape 7.
Mais ça se corse à cet endroit.
Après avoir installé phpmyadmin,
Je lance phpmyadmin : http://localhost/phpmyadmin
mysql me dit des gros mots :

Code : Tout sélectionner

Impossible de se connecter au serveur mysql.
Ensuite, il affiche ceci :

Code : Tout sélectionner

msqli::real_connect(): (HY000/1698): Access denied for user 'root'@'localhost'
Forcément qu'il y a erreur puisqu'il n'a jamais demandé de mot de passe pour root.

Je ne sais pas ce que tu en penses, j'ai envie d'arrêter tout du moins l'install de phpmyadmin sur ce pc. Il me reste à essayer sur un vieux pc.
En tout cas, un grand merci à toutes tes réponses et à ta patience.
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 »

Bonsoir,

L'étape 7, c'est l'étape de ton excellent tuto :
viewtopic.php?f=12&t=13032

J'ai toujours l'erreur avec cette commande :

Code : Tout sélectionner

sudo mysql -u root
Et j'obtiens cette erreur :

Code : Tout sélectionner

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Encore merci.

Mais je commence à être un peu perdu avec toutes ces manips infructueuses. :(
J'avoue que j'ai envie d'arrêter là ! :(
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 une Mint 22.0 en VM.
Ca te plairait ?

Sinon, j'installe une 22.1 en VM.
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 »

Ok.

Pas de problème.
S'il y a quelque chose qui coince, je te le signale.

Déjà, j'ai lancé mint 22.0 VM. C'est une install neuve.
Il demande une mise à jour du système, celle qui précède à la grosse mise à jour (930 Mo).
Déjà une erreur, j'ai oublié de noter l'erreur : quelque chose comme un paquet n'est pas accessible sur le serveur.

Je viens de la redémarrer : il m'affiche la grosse mise à jour à lancer.
Vu l'heure, je la lancerai demain matin.

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
Pingouindumint
Messages : 609
Enregistré le : ven. 6 janv. 2017 17:47
Contact :

Re: Installation serveur LAMP

Message par Pingouindumint »

Bonsoir à tous,

J'ai installé la mint 22.1 dans une VM pour avoir la même config que toi.
J'ai donc lancé l'install avec la commande de l'étape1 :

Code : Tout sélectionner

sudo aptitude install apache2 php libapache2-mod-php mysql-server php-mysql
Je n'ai pas touché à la config de mint avant install de Lamp ni même après, puisque ça coince déjà.
Le serveur mysql ne demande pas d'enregistrer l'id et le mdp admin pour mysql.
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