问题描述
我用的是Ubuntu的使用和MySQL的安装指南OSQA。这是非常简单的跟随,直到我到了最后一步,这是启动的Apache2服务器。我仔细检查了,看看我是否错过了任何的previous步骤,我也正好错过一个。这是须藤LN -s的/ etc / apache2的/网站的可用/ osqa的/ etc / apache2的/启用站点-/ osqa命令。所以,我从我的根目录下运行此命令。运行上面的命令后,我试图再次启动的Apache2服务器。它仍然没有奏效。然后我跑这些命令:
I used the the Ubuntu with and MYSQL installation guide for OSQA. It was very simple to follow until I reached the last step, which was starting the Apache2 server. I double checked to see if I missed any of the previous steps and I did happen to miss one. It was the sudo ln -s /etc/apache2/sites-available/osqa /etc/apache2/sites-enabled/osqa command. So I ran this command from my root directory. After running the above command I tried starting the Apache2 server again. It still didn't work. I then ran these commands:
sudo chmod -R g+w /home/osqa/osqa-server/forum/upfiles
sudo chmod -R g+w /home/osqa/osqa-server/log
这些并没有这个问题有所帮助。当我开始或重新启动服务器,我得到的错误是:
These didn't help with the issue. The errors I get when I start or restart the server are:
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
The installation guide I was following was:http://wiki.osqa.net/display/docs/Ubuntu+with+Apache+and+MySQL
任何帮助将大大pciated AP $ P $!
Any help would be appreciated greatly!
推荐答案
您的服务器的配置文件有错误。打开 /etc/apache2/apache2.conf中
用文本编辑器,并添加一个虚拟主机关闭标签:&LT; /虚拟主机&GT;
the configuration file of your server has errors. Open /etc/apache2/apache2.conf
with a text editor and add a VirtualHost closing tag: </VirtualHost>
这篇关于开始的Apache2 Ubuntu上失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!