Eu estava seguindo digitaloceans.com guia para configurar um subdomínio.
Mas agora estou tendo problemas para reiniciar o apache.
Eu tenho o seguinte erro:
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
systemctl status httpd.service
me deu isto:
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2018-04-18 18:11:36 UTC; 12s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 1679 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 1678 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 1678 (code=exited, status=1/FAILURE)
Apr 18 18:11:36 web-server systemd[1]: Starting The Apache HTTP Server...
Apr 18 18:11:36 web-server systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Apr 18 18:11:36 web-server kill[1679]: kill: cannot find process ""
Apr 18 18:11:36 web-server systemd[1]: httpd.service: control process exited, code=exited status=1
Apr 18 18:11:36 web-server systemd[1]: Failed to start The Apache HTTP Server.
Apr 18 18:11:36 web-server systemd[1]: Unit httpd.service entered failed state.
Apr 18 18:11:36 web-server systemd[1]: httpd.service failed.
Então eu fui e fiz um tail sudo / var / log / httpd / error_log e consegui isto:
(21)Is a directory: AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs
(21)Is a directory: AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs
(21)Is a directory: AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs
(21)Is a directory: AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs
(21)Is a directory: AH00091: httpd: could not open error log file /var/www/motomart.my.
AH00015: Unable to open logs
Algum tipo de alma, por favor, pode me ajudar nisso? Eu sou muito novo e não poderia imaginar o que devo fazer em seguida.
Segue o trecho de configuração do Apache.
<VirtualHost *:80>
ServerName portal.motomart.my
ServerAlias www.portal.motomart.my
DocumentRoot /var/www/motomart.my/public_html
ErrorLog /var/www/motomart.my/error.log
CustomLog /var/www/motomart.my/requests.log combined
</VirtualHost>