В минувшие выходные я обновил Ubuntu 13.10 (от Ubuntu 13.04), и теперь Apache не может начать. Он работал отлично, пока не обновился, и я ничего не изменил сам.
Когда я запускал перезагрузку, это то, что я получаю
apache2: Syntax error on line 260 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/conf.d/: No such file or directory
Итак, я создал , а затем я получаю следующее:
* Starting web server apache2 *
* The apache2 configtest failed.
Output of config test was:
[Wed Oct 30 11:17:42.921934 2013] [proxy_html:notice] [pid 2496] AH01425: I18n support in mod_proxy_html requires mod_xml2enc. Without it, non-ASCII characters in proxied pages are likely to display incorrectly.
AH00526: Syntax error on line 84 of /etc/apache2/apache2.conf:
Invalid command 'LockFile', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.
Спасибо!
Вам нужно будет установить mod_xml2enc с этими шагами:
Убедитесь, что у вас есть mod_proxy:
sudo apt-get install libapache2-mod-proxy-html
Для mod_xml2enc
sudo apt-get install apache2-prefork-dev
mkdir ~/modbuild/ && cd ~/modbuild/
wget http://apache.webthing.com/svn/apache/filters/mod_xml2enc.c
wget http://apache.webthing.com/svn/apache/filters/mod_xml2enc.h
apxs2 -aic -I/usr/include/libxml2 ./mod_xml2enc.c
cd ~
rm -rfd ~/modbuild/
sudo service apache2 restart