[问题]配置APACHE后重启出现问题
发表于 : 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]
不知道哪位高手帮忙解答一下,谢谢。
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]
不知道哪位高手帮忙解答一下,谢谢。