We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
The apache2 configtest failed
The apache2 configtest failed
Привет. Случайно удалил все файлы из папки var/log. При попытке перезапустить apache получаю следующую ошибку:
Читать умею :)
Не понимаю, какой файл ему нужен? Можно ли сделать какой-то ребилд, чтобы все файлы логов создались?
Code: Select all
root@ValeeraSanguinar:~# service apache2 restart
* Restarting web server apache2
...fail!
* The apache2 configtest failed.
Output of config test was:
(2)No such file or directory: AH02291: Cannot access directory '/var/log/apache2/domains/' for error log of vhost defined at /home/admin/conf/web/apache2.conf:35
(2)No such file or directory: AH02291: Cannot access directory '/var/log/apache2/domains/' for error log of vhost defined at /home/admin/conf/web/apache2.conf:1
AH00014: Configuration check failed
Action 'configtest' failed.
The Apache error log may have more information.
Не понимаю, какой файл ему нужен? Можно ли сделать какой-то ребилд, чтобы все файлы логов создались?
Re: The apache2 configtest failed
Вот тут /home/admin/conf/web/apache2.conf:35a1exDi wrote:Привет. Случайно удалил все файлы из папки var/log. При попытке перезапустить apache получаю следующую ошибку:Читать умею :)Code: Select all
root@ValeeraSanguinar:~# service apache2 restart * Restarting web server apache2 ...fail! * The apache2 configtest failed. Output of config test was: (2)No such file or directory: AH02291: Cannot access directory '/var/log/apache2/domains/' for error log of vhost defined at /home/admin/conf/web/apache2.conf:35 (2)No such file or directory: AH02291: Cannot access directory '/var/log/apache2/domains/' for error log of vhost defined at /home/admin/conf/web/apache2.conf:1 AH00014: Configuration check failed Action 'configtest' failed. The Apache error log may have more information.
Не понимаю, какой файл ему нужен? Можно ли сделать какой-то ребилд, чтобы все файлы логов создались?
и тут /home/admin/conf/web/apache2.conf:1
Что на этих линиях 1 и 35?
Такой путь не пробывали создать как /var/log/apache2/domains/ ?
Я как-то тоже удалял,потом создаем папку apache2 в ней уже папку domains и только потом рестартим апач.Все нужные файлы там создадутся при рестарте.
Re: The apache2 configtest failed
Здравствуйте. Как вы умудрились то? )
Попробуйте выполнить команды
Попробуйте выполнить команды
Code: Select all
mkdir -p /var/log/nginx/domains
touch /var/log/apache2/access.log /var/log/apache2/error.log
mkdir -p /var/log/apache2/domains
chmod a+x /var/log/apache2
chmod 640 /var/log/apache2/access.log /var/log/apache2/error.log
chmod 751 /var/log/apache2/domains
Re: The apache2 configtest failed
Наверное через это все проходят XDimperio wrote:Здравствуйте. Как вы умудрились то? )
Так называемая чистка логов ...
Re: The apache2 configtest failed
Скорее всего да)Mr.Erbutw wrote:Наверное через это все проходят XDimperio wrote:Здравствуйте. Как вы умудрились то? )
Так называемая чистка логов ...
Re: The apache2 configtest failed
Ну так лучше же ротацию логов настроить и не париться.Mr.Erbutw wrote:Наверное через это все проходят XDimperio wrote:Здравствуйте. Как вы умудрились то? )
Так называемая чистка логов ...
Я специально удалял,изучал кой чего.Потом восстановил все как было.
Re: The apache2 configtest failed
Это да.yariksat wrote: Ну так лучше же ротацию логов настроить и не париться.
Я специально удалял,изучал кой чего.Потом восстановил все как было.
Умудряются удалить логи, но безболезненно не происходит.