【发布时间】:2012-02-16 21:00:49
【问题描述】:
我为 OSQA 使用了 Ubuntu with 和 MYSQL 安装指南。在我到达最后一步,即启动 Apache2 服务器之前,这很简单。我仔细检查了是否错过了前面的任何步骤,而我确实错过了一个。这是 sudo ln -s /etc/apache2/sites-available/osqa /etc/apache2/sites-enabled/osqa 命令。所以我从我的根目录运行了这个命令。运行上述命令后,我尝试再次启动 Apache2 服务器。它仍然没有工作。然后我运行了这些命令:
sudo chmod -R g+w /home/osqa/osqa-server/forum/upfiles
sudo chmod -R g+w /home/osqa/osqa-server/log
这些对问题没有帮助。我启动或重启服务器时遇到的错误是:
osqa@osqa-Latitude-E4300:/$ sudo /etc/init.d/apache2 restart
[sudo] password for osqa:
Sorry, try again.
[sudo] password for osqa:
apache2: Syntax error on line 230 of /etc/apache2/apache2.conf: Syntax error on line 7 of /etc/apache2/sites-enabled/osqa: /etc/apache2/sites-enabled/osqa:7: <VirtualHost> was not closed.
Action 'configtest' failed.
The Apache error log may have more information.
...fail!
我遵循的安装指南是:http://wiki.osqa.net/display/docs/Ubuntu+with+Apache+and+MySQL
任何帮助将不胜感激!
【问题讨论】:
-
它告诉你问题所在!
<VirtualHost> was not closed- 配置文件中没有</VirtualHost>标签。
标签: apache2