[问题]配置APACHE后重启出现问题

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
LONSON
帖子: 1
注册时间: 2008-08-24 1:41

[问题]配置APACHE后重启出现问题

#1

帖子 LONSON » 2008-08-24 1:49

本来是打算在UBUNTU8.04上安装dokuwiki的,结果按照dokuwiki的运行环境配置,
DokuWiki on Ubuntu/Debian


例如:在 ubuntu 8.04 下要安装 Dokuwiki ,一般需要如下的准备工作:
安装 Apache2+PHP5

$ sudo apt-get update
$ sudo apt-get install apache2 apache2-mpm-prefork
$ sudo apt-get install php5 php-pear php5-cli php5-gd php5-imap php5-common
$ sudo apt-get install php5-mcrypt php5-mhash php5-syck php5-xmlrpc php5-xsl
$ sudo apt-get install libapache2-mod-php5

配置 Apache

$ sudo vim /etc/apache2/sites-available/mytest-net

<VirtualHost *>
ServerAdmin webmaster@localhost
ServerName www.mytest.net
# ServerName wiki.mytest.net
DocumentRoot /www/mytest.net
# DocumentRoot /www/mytest.net/dokuwiki
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /www/mytest.net/>
# <Directory /www/mytest.net/dokuwiki/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>

LogLevel warn
ErrorLog /var/log/apache2/error.log
CustomLog /var/log/apache2/access.log combined

ServerSignature On
</VirtualHost>

/etc/apache2/sites-available/mytest-net

$ sudo ln -s /etc/apache2/sites-available/mytest-net /etc/apache2/sites-enabled/010-mytest-net
$ sudo a2enmod php5 rewrite
$ sudo /etc/init.d/apache2 restart


在这个指令后就出现问题了sudo vim /etc/apache2/sites-available/mytest-net,$命令符消失了。
然后$ sudo /etc/init.d/apache2 restart出错,

* Restarting web server apache2
apache2: Syntax error on line 298 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/sites-enabled/010-mytest-net: No such file or directory
[fail]


不知道哪位高手帮忙解答一下,谢谢。
回复