Solução trabalhando com o apoio de @Nadav Tasher:
O Nginx não funciona corretamente! Dois serviços (nginx-apache2) não funcionarão na mesma hora! A execução do Apache2 corrigiu o problema permanentemente!
Não é possível reiniciar o apache2.
verificar sudo netstat -tulpn | grep :80
obteve este resultado:
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1627/nginx: master
tcp6 0 0 127.0.0.1:8005 :::* LISTEN 4486/java
tcp6 0 0 :::8080 :::* LISTEN 4486/java
tcp6 0 0 :::80 :::* LISTEN 1627/nginx: master
depois de tentar recarregar o apache2 com systemctl reload apache2
, recebi esta mensagem:
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to reload 'apache2.service'.
Authenticating as: Name Surname,,, (Username)
Password:
==== AUTHENTICATION COMPLETE ===
apache2.service is not active, cannot reload.
Tentando vários instantes para recarregar os serviços, serviços instalados / atualizados:
- OpenSSH Server
- PHP7
- MySQL
- phpMyAdmin
- Apache Tomcat8
- FTP (vsftpd)
Outras mensagens que podem ajudar a resolver meu problema, verificando Status em 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 2017-04-24 20:03:47 CEST; 29min ago
Process: 6623 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)<br><br>
Apr 24 20:03:47 mcServer apachectl[6623]: AH00526: Syntax error on line 1 of /etc/apache2/sites-enabled/mysite.conf:
Apr 24 20:03:47 mcServer apachectl[6623]: Invalid command '[email protected]', perhaps misspelled or defined by a module not included in the server configuration
Apr 24 20:03:47 mcServer apachectl[6623]: Action 'start' failed.
Apr 24 20:03:47 mcServer apachectl[6623]: The Apache error log may have more information.
Apr 24 20:03:47 mcServer systemd[1]: apache2.service: Control process exited, code=exited status=1
Apr 24 20:03:47 mcServer systemd[1]: Failed to start The Apache HTTP Server.
Apr 24 20:03:47 mcServer systemd[1]: apache2.service: Unit entered failed state.
Apr 24 20:03:47 mcServer systemd[1]: apache2.service: Failed with result 'exit-code'.
Apr 24 20:18:33 mcServer systemd[1]: apache2.service: Unit cannot be reloaded because it is inactive.
Apr 24 20:18:35 mcServer systemd[1]: apache2.service: Unit cannot be reloaded because it is inactive.
Nota adicional
Estou tentando configurar um servidor WebHost para os próprios aplicativos baseados na Web (php).
Solução trabalhando com o apoio de @Nadav Tasher:
O Nginx não funciona corretamente! Dois serviços (nginx-apache2) não funcionarão na mesma hora! A execução do Apache2 corrigiu o problema permanentemente!