Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Language specific forums Russian (Русский) Общие вопросы
  • Search

Ложиться Apache & Tor hidden service Apache2

Общие вопросы о панели управления Vesta
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
LILPANIC
Posts: 3
Joined: Mon Oct 26, 2020 7:24 pm

Os: Ubuntu 17x
Web: apache + nginx
Ложиться Apache & Tor hidden service Apache2
  • Quote

Post by LILPANIC » Mon Oct 26, 2020 7:37 pm

Всем привет.

Решил попробовать по инструкции поднять tor hidden service - https://sick.codes/create-a-hidden-tor- ... ite-guide/

В туториале описан способ под nginx но напрямую никакие настройки конфигурации не затрагивались , так что нет разницы и для апач.

Мои действия:
1. Установил весту с apache на борту.
2. Установил Tor + поправил конфиг

Раскоментировал вот эти две строки
HiddenServiceDir /var/lib/tor/hidden_service/
HiddenServicePort 80 127.0.0.1:80


Все получилось, hostname and private_key сгенерировались.
3. Добавил в vestacp local ip = 127.0.0.1
mask 255.255.255.0
eth0
(пробовал и eth1)
4. Добавил хостнейм в web = создалась директория.

Перезапустил tor and apache

все домен заработал.

НООООО как только перезагружаю сервер, ложиться апач (и никак не включается) и выдает такое вот.
Странно что не перезагружая сервер апач работал и после перезапуска самого сервиса. а после перезагрузки сервера все DEAD.

Code: Select all

root@test:~# service apache2 status
● 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-10-26 20:36:16 MSK; 16s ago
  Process: 401 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)

Oct 26 20:36:16 test.com systemd[1]: Starting The Apache HTTP Server...
Oct 26 20:36:16 test.com apachectl[401]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using test.com. Set the 'ServerName' directive globally to suppress this message
Oct 26 20:36:16 test.com apachectl[401]: (99)Cannot assign requested address: AH00072: make_sock: could not bind to address 193.124.206.30:80
Oct 26 20:36:16 test.com apachectl[401]: no listening sockets available, shutting down
Oct 26 20:36:16 test.com apachectl[401]: AH00015: Unable to open logs
Oct 26 20:36:16 test.com apachectl[401]: Action 'start' failed.
Oct 26 20:36:16 test.com apachectl[401]: The Apache error log may have more information.
Oct 26 20:36:16 test.com systemd[1]: apache2.service: Control process exited, code=exited status=1
Oct 26 20:36:16 test.com systemd[1]: apache2.service: Failed with result 'exit-code'.
Oct 26 20:36:16 test.com systemd[1]: Failed to start The Apache HTTP Server.

Вот ошибки по логам.
Помогите я начинающий только.

Code: Select all

[Mon Oct 26 20:26:14.559017 2020] [suexec:notice] [pid 28236] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Mon Oct 26 20:26:14.636933 2020] [:notice] [pid 28237] mod_ruid2/0.9.8 enabled
[Mon Oct 26 20:26:14.646244 2020] [mpm_prefork:notice] [pid 28237] AH00163: Apache/2.4.29 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1 configured -- resuming normal operations
[Mon Oct 26 20:26:14.646281 2020] [core:notice] [pid 28237] AH00094: Command line: '/usr/sbin/apache2'
[Mon Oct 26 20:26:18.362281 2020] [mpm_prefork:notice] [pid 28237] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using test.com. Set the 'ServerName' directive globally to suppress this message
[Mon Oct 26 20:26:18.475714 2020] [:notice] [pid 28237] mod_ruid2/0.9.8 enabled
[Mon Oct 26 20:26:18.476023 2020] [mpm_prefork:notice] [pid 28237] AH00163: Apache/2.4.29 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1 configured -- resuming normal operations
[Mon Oct 26 20:26:18.476044 2020] [core:notice] [pid 28237] AH00094: Command line: '/usr/sbin/apache2'
[Mon Oct 26 20:26:44.099524 2020] [mpm_prefork:notice] [pid 28237] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using test.com. Set the 'ServerName' directive globally to suppress this message
[Mon Oct 26 20:26:44.243943 2020] [:notice] [pid 28237] mod_ruid2/0.9.8 enabled
[Mon Oct 26 20:26:44.244307 2020] [mpm_prefork:notice] [pid 28237] AH00163: Apache/2.4.29 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1 configured -- resuming normal operations
[Mon Oct 26 20:26:44.244324 2020] [core:notice] [pid 28237] AH00094: Command line: '/usr/sbin/apache2'
[Mon Oct 26 20:29:22.281667 2020] [mpm_prefork:notice] [pid 28237] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using test.com. Set the 'ServerName' directive globally to suppress this message
[Mon Oct 26 20:29:22.394603 2020] [:notice] [pid 28237] mod_ruid2/0.9.8 enabled
[Mon Oct 26 20:29:22.394972 2020] [mpm_prefork:notice] [pid 28237] AH00163: Apache/2.4.29 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1 configured -- resuming normal operations
[Mon Oct 26 20:29:22.394989 2020] [core:notice] [pid 28237] AH00094: Command line: '/usr/sbin/apache2'
[Mon Oct 26 20:29:44.750190 2020] [mpm_prefork:notice] [pid 28237] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using test.com. Set the 'ServerName' directive globally to suppress this message
[Mon Oct 26 20:29:44.860834 2020] [:notice] [pid 28237] mod_ruid2/0.9.8 enabled
[Mon Oct 26 20:29:44.861152 2020] [mpm_prefork:notice] [pid 28237] AH00163: Apache/2.4.29 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1 configured -- resuming normal operations
[Mon Oct 26 20:29:44.861166 2020] [core:notice] [pid 28237] AH00094: Command line: '/usr/sbin/apache2'
[Mon Oct 26 20:32:28.405168 2020] [mpm_prefork:notice] [pid 28237] AH00169: caught SIGTERM, shutting down
[Mon Oct 26 20:32:28.527189 2020] [suexec:notice] [pid 32754] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Mon Oct 26 20:32:28.561303 2020] [:notice] [pid 32755] mod_ruid2/0.9.8 enabled
[Mon Oct 26 20:32:28.566243 2020] [mpm_prefork:notice] [pid 32755] AH00163: Apache/2.4.29 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1 configured -- resuming normal operations
[Mon Oct 26 20:32:28.566314 2020] [core:notice] [pid 32755] AH00094: Command line: '/usr/sbin/apache2'
[Mon Oct 26 20:33:37.256698 2020] [mpm_prefork:notice] [pid 32755] AH00169: caught SIGTERM, shutting down
Top

grayfolk
Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 6x
Web: nginx + php-fpm
Re: Ложиться Apache & Tor hidden service Apache2
  • Quote

Post by grayfolk » Mon Oct 26, 2020 7:43 pm

LILPANIC wrote: ↑
Mon Oct 26, 2020 7:37 pm
Oct 26 20:36:16 test.com apachectl[401]: (99)Cannot assign requested address: AH00072: make_sock: could not bind to address 193.124.206.30:80
Уверены, что на сервере есть интерфейс с IP 193.124.206.30?
Top

LILPANIC
Posts: 3
Joined: Mon Oct 26, 2020 7:24 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: Ложиться Apache & Tor hidden service Apache2
  • Quote

Post by LILPANIC » Mon Oct 26, 2020 7:53 pm

grayfolk wrote: ↑
Mon Oct 26, 2020 7:43 pm
LILPANIC wrote: ↑
Mon Oct 26, 2020 7:37 pm
Oct 26 20:36:16 test.com apachectl[401]: (99)Cannot assign requested address: AH00072: make_sock: could not bind to address 193.124.206.30:80
Уверены, что на сервере есть интерфейс с IP 193.124.206.30?
Да уверен)
Image
Top

LILPANIC
Posts: 3
Joined: Mon Oct 26, 2020 7:24 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: Ложиться Apache & Tor hidden service Apache2
  • Quote

Post by LILPANIC » Mon Oct 26, 2020 8:51 pm

LILPANIC wrote: ↑
Mon Oct 26, 2020 7:37 pm
Всем привет.

Решил попробовать по инструкции поднять tor hidden service - https://sick.codes/create-a-hidden-tor- ... ite-guide/

В туториале описан способ под nginx но напрямую никакие настройки конфигурации не затрагивались , так что нет разницы и для апач.

Мои действия:
1. Установил весту с apache на борту.
2. Установил Tor + поправил конфиг

Раскоментировал вот эти две строки
HiddenServiceDir /var/lib/tor/hidden_service/
HiddenServicePort 80 127.0.0.1:80


Все получилось, hostname and private_key сгенерировались.
3. Добавил в vestacp local ip = 127.0.0.1
mask 255.255.255.0
eth0
(пробовал и eth1)
4. Добавил хостнейм в web = создалась директория.

Перезапустил tor and apache

все домен заработал.

НООООО как только перезагружаю сервер, ложиться апач (и никак не включается) и выдает такое вот.
Странно что не перезагружая сервер апач работал и после перезапуска самого сервиса. а после перезагрузки сервера все DEAD.

Code: Select all

root@test:~# service apache2 status
● 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-10-26 20:36:16 MSK; 16s ago
  Process: 401 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)

Oct 26 20:36:16 test.com systemd[1]: Starting The Apache HTTP Server...
Oct 26 20:36:16 test.com apachectl[401]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using test.com. Set the 'ServerName' directive globally to suppress this message
Oct 26 20:36:16 test.com apachectl[401]: (99)Cannot assign requested address: AH00072: make_sock: could not bind to address 193.124.206.30:80
Oct 26 20:36:16 test.com apachectl[401]: no listening sockets available, shutting down
Oct 26 20:36:16 test.com apachectl[401]: AH00015: Unable to open logs
Oct 26 20:36:16 test.com apachectl[401]: Action 'start' failed.
Oct 26 20:36:16 test.com apachectl[401]: The Apache error log may have more information.
Oct 26 20:36:16 test.com systemd[1]: apache2.service: Control process exited, code=exited status=1
Oct 26 20:36:16 test.com systemd[1]: apache2.service: Failed with result 'exit-code'.
Oct 26 20:36:16 test.com systemd[1]: Failed to start The Apache HTTP Server.

Вот ошибки по логам.
Помогите я начинающий только.

Code: Select all

[Mon Oct 26 20:26:14.559017 2020] [suexec:notice] [pid 28236] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Mon Oct 26 20:26:14.636933 2020] [:notice] [pid 28237] mod_ruid2/0.9.8 enabled
[Mon Oct 26 20:26:14.646244 2020] [mpm_prefork:notice] [pid 28237] AH00163: Apache/2.4.29 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1 configured -- resuming normal operations
[Mon Oct 26 20:26:14.646281 2020] [core:notice] [pid 28237] AH00094: Command line: '/usr/sbin/apache2'
[Mon Oct 26 20:26:18.362281 2020] [mpm_prefork:notice] [pid 28237] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using test.com. Set the 'ServerName' directive globally to suppress this message
[Mon Oct 26 20:26:18.475714 2020] [:notice] [pid 28237] mod_ruid2/0.9.8 enabled
[Mon Oct 26 20:26:18.476023 2020] [mpm_prefork:notice] [pid 28237] AH00163: Apache/2.4.29 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1 configured -- resuming normal operations
[Mon Oct 26 20:26:18.476044 2020] [core:notice] [pid 28237] AH00094: Command line: '/usr/sbin/apache2'
[Mon Oct 26 20:26:44.099524 2020] [mpm_prefork:notice] [pid 28237] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using test.com. Set the 'ServerName' directive globally to suppress this message
[Mon Oct 26 20:26:44.243943 2020] [:notice] [pid 28237] mod_ruid2/0.9.8 enabled
[Mon Oct 26 20:26:44.244307 2020] [mpm_prefork:notice] [pid 28237] AH00163: Apache/2.4.29 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1 configured -- resuming normal operations
[Mon Oct 26 20:26:44.244324 2020] [core:notice] [pid 28237] AH00094: Command line: '/usr/sbin/apache2'
[Mon Oct 26 20:29:22.281667 2020] [mpm_prefork:notice] [pid 28237] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using test.com. Set the 'ServerName' directive globally to suppress this message
[Mon Oct 26 20:29:22.394603 2020] [:notice] [pid 28237] mod_ruid2/0.9.8 enabled
[Mon Oct 26 20:29:22.394972 2020] [mpm_prefork:notice] [pid 28237] AH00163: Apache/2.4.29 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1 configured -- resuming normal operations
[Mon Oct 26 20:29:22.394989 2020] [core:notice] [pid 28237] AH00094: Command line: '/usr/sbin/apache2'
[Mon Oct 26 20:29:44.750190 2020] [mpm_prefork:notice] [pid 28237] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using test.com. Set the 'ServerName' directive globally to suppress this message
[Mon Oct 26 20:29:44.860834 2020] [:notice] [pid 28237] mod_ruid2/0.9.8 enabled
[Mon Oct 26 20:29:44.861152 2020] [mpm_prefork:notice] [pid 28237] AH00163: Apache/2.4.29 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1 configured -- resuming normal operations
[Mon Oct 26 20:29:44.861166 2020] [core:notice] [pid 28237] AH00094: Command line: '/usr/sbin/apache2'
[Mon Oct 26 20:32:28.405168 2020] [mpm_prefork:notice] [pid 28237] AH00169: caught SIGTERM, shutting down
[Mon Oct 26 20:32:28.527189 2020] [suexec:notice] [pid 32754] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Mon Oct 26 20:32:28.561303 2020] [:notice] [pid 32755] mod_ruid2/0.9.8 enabled
[Mon Oct 26 20:32:28.566243 2020] [mpm_prefork:notice] [pid 32755] AH00163: Apache/2.4.29 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1 configured -- resuming normal operations
[Mon Oct 26 20:32:28.566314 2020] [core:notice] [pid 32755] AH00094: Command line: '/usr/sbin/apache2'
[Mon Oct 26 20:33:37.256698 2020] [mpm_prefork:notice] [pid 32755] AH00169: caught SIGTERM, shutting down
Буду признателен если кто то отпишет по помощи в решении данного вопроса, по tmux я могу делать шаг за шагом, вплоть до возникновения данной проблемы.
мой TG - https://t.me/LILPANIC
Top

grayfolk
Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 6x
Web: nginx + php-fpm
Re: Ложиться Apache & Tor hidden service Apache2
  • Quote

Post by grayfolk » Tue Oct 27, 2020 12:44 am

LILPANIC wrote: ↑
Mon Oct 26, 2020 7:53 pm
grayfolk wrote: ↑
Mon Oct 26, 2020 7:43 pm
LILPANIC wrote: ↑
Mon Oct 26, 2020 7:37 pm
Oct 26 20:36:16 test.com apachectl[401]: (99)Cannot assign requested address: AH00072: make_sock: could not bind to address 193.124.206.30:80
Уверены, что на сервере есть интерфейс с IP 193.124.206.30?
Да уверен)
Image
Возможно, на нем уже висит кто-то другой? )
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “Общие вопросы”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password