我使用了Ubuntu和MYSQL安装指南来安装OSQA。直到我到达最后一步,即启动Apache2服务器,整个过程都非常简单。但是在最后一步时,我再次检查之前的步骤,发现漏掉了一个步骤,就是sudo ln -s /etc/apache2/sites-available/osqa /etc/apache2/sites-enabled/osqa命令。因此,我从我的根目录运行了这个命令。运行完上述命令后,我再次尝试启动Apache2服务器,但它仍然无法正常工作。于是我又运行了以下命令:
我正在遵循的安装指南是:http://wiki.osqa.net/display/docs/Ubuntu+with+Apache+and+MySQL。
非常感谢您的帮助!
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>
没有关闭 - 配置文件中没有</VirtualHost>
标签。 - Cheery