我使用Ubuntu和OSQL的MYSQL安装指南。这是非常简单的,直到我到达了启动Apache2服务器的最后一步。我仔细检查了一下,看看我是否错过了前面的任何步骤,而且我确实碰巧错过了一个。这是sudo ln -s/etc/apache2/sites-available/osqa/etc/apache2/sites-enabled/osqa命令。所以我从我的根目录运行这个命令。运行上面的命令后,我尝试再次启动Apache2服务器。它仍然没有工作。然后我运行这些命令:在Ubuntu上启动Apache2失败
sudo chmod -R g+w /home/osqa/osqa-server/forum/upfiles
sudo chmod -R g+w /home/osqa/osqa-server/log
这些都没有帮助解决这个问题。当我开始或重新启动服务器,我得到的错误是:
[email protected]:/$ 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>”标记。 –
Cheery
2012-02-16 21:03:56