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 17/02/2020, à 13:53

Marseven

Impossible de démarrer Apache et mysql

Salut,
j'ai un VPS qui tourne avec Ubuntu 18.04 64bits. je l'ai configuré avec Virtualmin. Dépuis 3 jours je n'arrive pas à démarrer le serveur apache et mysql.
Voici les messages d'erreur que j'ai lorsque je te tente de les démarrer :
- MySql

root@vps44369637:~# sudo systemctl restart mysql.service
Job for mysql.service failed because the control process exited with error code.
See "systemctl status mysql.service" and "journalctl -xe" for details.
root@vps44369637:~# systemctl status mysql.service
● mysql.service - MySQL Community Server
   Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2020-02-17 11:36:47 UTC; 21s ago
  Process: 24539 ExecStart=/usr/sbin/mysqld --daemonize --pid-file=/run/mysqld/mysqld.pid (code=exited, status=1/FAILURE)
  Process: 24530 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)

Feb 17 11:36:47 vps44369637.local systemd[1]: mysql.service: Service hold-off time over, scheduling restart.
Feb 17 11:36:47 vps44369637.local systemd[1]: mysql.service: Scheduled restart job, restart counter is at 5.
Feb 17 11:36:47 vps44369637.local systemd[1]: Stopped MySQL Community Server.
Feb 17 11:36:47 vps44369637.local systemd[1]: mysql.service: Start request repeated too quickly.
Feb 17 11:36:47 vps44369637.local systemd[1]: mysql.service: Failed with result 'exit-code'.
Feb 17 11:36:47 vps44369637.local systemd[1]: Failed to start MySQL Community Server.
root@vps44369637:~# 

- Apache

root@vps44369637:~# sudo systemctl restart apache2.service
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
root@vps44369637:~# systemctl status apache2.service
● apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf
   Active: failed (Result: exit-code) since Mon 2020-02-17 11:50:24 UTC; 6s ago
  Process: 26414 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)

Feb 17 11:50:23 vps44369637.local apachectl[26414]: (2)No such file or directory: AH02291: Cannot access directory '/var/log/apache2/' for main error log
Feb 17 11:50:23 vps44369637.local apachectl[26414]: (2)No such file or directory: AH02291: Cannot access directory '/var/log/virtualmin/' for error log of vhost defined at /etc/apache2/sites-enabled/webmin.1580822682.conf:1
Feb 17 11:50:23 vps44369637.local apachectl[26414]: (2)No such file or directory: AH02291: Cannot access directory '/var/log/virtualmin/' for error log of vhost defined at /etc/apache2/sites-enabled/setrag-info.com.conf:60
Feb 17 11:50:23 vps44369637.local apachectl[26414]: (2)No such file or directory: AH02291: Cannot access directory '/var/log/virtualmin/' for error log of vhost defined at /etc/apache2/sites-enabled/setrag-info.com.conf:1
Feb 17 11:50:23 vps44369637.local apachectl[26414]: AH00014: Configuration check failed
Feb 17 11:50:23 vps44369637.local apachectl[26414]: Action 'start' failed.
Feb 17 11:50:23 vps44369637.local apachectl[26414]: The Apache error log may have more information.
Feb 17 11:50:24 vps44369637.local systemd[1]: apache2.service: Control process exited, code=exited status=1
Feb 17 11:50:24 vps44369637.local systemd[1]: apache2.service: Failed with result 'exit-code'.
Feb 17 11:50:24 vps44369637.local systemd[1]: Failed to start The Apache HTTP Server.
root@vps44369637:~# 

Merci d'avance pour votre aide smile

Hors ligne

#2 Le 17/02/2020, à 19:45

jplemoine

Re : Impossible de démarrer Apache et mysql

Dans le premier cas (mysql), on te suggère de faire quelque chose dont nous n'avons pas les retours
Dans le deuxième cas (apache), l'erreur est assez claire... Quel sont les droits des fichiers/ répertoires listés ?


Membre de l'ALDIL (Association Lyonnaise pour le Développement de l'Informatique Libre)
- En pro, après 20 ans de développement, administrateur Linux / Unix depuis Avril 2019.
- En privé, sous Ubuntu-Xubuntu depuis 2009.

Hors ligne

#3 Le 17/02/2020, à 20:53

Marseven

Re : Impossible de démarrer Apache et mysql

D'accord, pour apache je regarde et pour mysql que dois-je donc faire ?

Hors ligne

#4 Le 17/02/2020, à 21:12

jplemoine

Re : Impossible de démarrer Apache et mysql

Ça dit :

Job for mysql.service failed because the control process exited with error code.
See "systemctl status mysql.service" and "journalctl -xe" for details.

Donc, il faudrait les fameux détails. Normalement, c'est assez clair comme erreur.


Membre de l'ALDIL (Association Lyonnaise pour le Développement de l'Informatique Libre)
- En pro, après 20 ans de développement, administrateur Linux / Unix depuis Avril 2019.
- En privé, sous Ubuntu-Xubuntu depuis 2009.

Hors ligne