Не могу запустить сервер Apache после того, как выполнил команду $ sudo /etc/init.d/apache2 stop
Вот такой генерируется вывод:
user@ubuntu:~$ sudo /etc/init.d/apache2 start
* Starting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
(2)No such file or directory: apache2: could not open error log file /etc/apache2/logs/error_log.
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
[fail]
В чём может быть проблема?
sudo ls /etc/apache2/logs/error_log
Если нет файла, тоsudo touch /etc/apache2/logs/error_log
и повторить запуск. Если ошибка, читать лог.Решено. Конфиг /etc/apache2/apache2.conf подправил и стал запускаться. Я там закомментировал строку ErrorLog ${APACHE_LOG_DIR}/error.log и поэтому почему-то не запускался.
Отправить комментарий