pam_unix (sudo:auth): ошибка аутентификации - Перезапускающий apache2

Я развертываю свой веб-сайт на Виртуальной машине Linux (Ubuntu 19) на Linode.

Мое развертывание работало при разрешении: xx.xx.xx.xx:8000

Для разрешения HTTP/трафика TCP, я сделал:

sudo delete allow 8000
sudo allow http/tcp

Когда я работаю:

sudo service apache2 restart

Я добираюсь:

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

Таким образом, если я работаю:

journalctl -xe

Я добираюсь:

Aug 28 18:52:06 django-server sudo[14724]: pam_unix(sudo:auth): authentication failure; logname=ucluser uid=1000 euid=0 tty=/dev/pts/2 ruser=ucluser rhost=  user=ucluser
Aug 28 18:52:30 django-server sshd[14529]: Received disconnect from 109.175.190.135 port 50098:11: disconnected by user
Aug 28 18:52:30 django-server sshd[14529]: Disconnected from user ucluser 109.175.190.135 port 50098
Aug 28 18:56:49 django-server sshd[14705]: Received disconnect from 109.175.190.135 port 50197:11: disconnected by user
Aug 28 18:56:49 django-server sshd[14705]: Disconnected from user ucluser 109.175.190.135 port 50197
Aug 28 19:27:40 django-server sshd[17050]: Received disconnect from 109.175.190.135 port 50366:11: disconnected by user
Aug 28 19:27:40 django-server sshd[17050]: Disconnected from user ucluser 109.175.190.135 port 50366

Я думаю, что проблема здесь:

**Aug 28 18:52:06 django-server sudo[14724]: pam_unix(sudo:auth): authentication failure; logname=ucluser uid=1000 euid=0 tty=/dev/pts/2 ruser=ucluser rhost=  user=ucluser**

Но я не уверен, как решить его

Если я работаю:

apachectl stop

Я добираюсь:

apache2: Syntax error on line 225 of /etc/apache2/apache2.conf: Syntax error on line 50 of /etc/apache2/sites-enabled/django_project.conf: Expected </Directory> but saw </VirtualHost>
Action 'stop' failed.
0
задан 28 August 2019 в 22:58

1 ответ

РЕШЕННЫЙ:

В моем django_project.conf я забыл закрываться </Directory>.

От

<Directory>
    Something written here
<Directory>

к:

<Directory>
    Something written here
</Directory>
1
ответ дан 23 October 2019 в 04:12

Другие вопросы по тегам:

Похожие вопросы: