yagas 发表于 2008-5-2 23:55:03

[求助]apache2的设置问题

NameVirtualHost *
<VirtualHost *>
        ServerAdmin webmaster@localhost
        DocumentRoot /home/yagas/webroot/

        <Directory /home/yagas/webroot/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

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

        #CustomLog /var/log/apache2/access.log combined
        #ServerSignature On
</VirtualHost>
这样写有错误吗?为什么每回都是

yagas@ubuntu8:/$ /etc/init.d/apache2 start
open: Permission denied
* Starting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
open: Permission denied
                                                                        

npcomet 发表于 2008-5-2 23:57:05

先切换到root用户

另外注意
NameVirtualHost *:80
<VirtualHost *:80>
页: [1]
查看完整版本: [求助]apache2的设置问题