QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2130|回复: 1

[求助]apache2的设置问题

[复制链接]
发表于 2008-5-2 23:55:03 | 显示全部楼层 |阅读模式
  1. NameVirtualHost *
  2. <VirtualHost *>
  3.         ServerAdmin webmaster@localhost
  4.         DocumentRoot /home/yagas/webroot/

  5.         <Directory /home/yagas/webroot/>
  6.                 Options Indexes FollowSymLinks MultiViews
  7.                 AllowOverride None
  8.                 Order allow,deny
  9.                 allow from all
  10.         </Directory>

  11.         #ErrorLog /var/log/apache2/error.log
  12.         #LogLevel warn

  13.         #CustomLog /var/log/apache2/access.log combined
  14.         #ServerSignature On
  15. </VirtualHost>
复制代码

这样写有错误吗?为什么每回都是

  1. yagas@ubuntu8:/$ /etc/init.d/apache2 start
  2. open: Permission denied
  3. * Starting web server apache2
  4. apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
  5. (13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
  6. no listening sockets available, shutting down
  7. Unable to open logs
  8. open: Permission denied
  9.                                                                          [fail]
复制代码
发表于 2008-5-2 23:57:05 | 显示全部楼层
先切换到root用户

另外注意
NameVirtualHost *:80
<VirtualHost *:80>
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-4-26 23:33 , Processed in 0.104018 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表