我最近在Ubuntu Server 10.04 x86_64上安装了Lighttpd,并创build了几个网站。 我所做的是包含/etc/lighttpd/vhost.d/*.conf并为每个网站在该目录中放置一个configuration文件。
我的问题是当我“服务lighttpd启动”我得到的消息,服务启动,没有错误信息:
root@178-33-104-210:~# service lighttpd start Syntax OK * Starting web server lighttpd [ OK ]
但是如果我看看服务听力,Lighttpd是无处可见的:
root@178-33-104-210:~# netstat -tap Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 localhost:mysql *:* LISTEN 829/mysqld tcp 0 0 *:ftp *:* LISTEN 737/vsftpd tcp 0 0 *:ssh *:* LISTEN 739/sshd tcp6 0 0 [::]:ssh [::]:* LISTEN 739/sshd
所以我正在寻找可以解决这个问题的方法。 我检查了/var/log/lighttpd/error.log,里面没有任何东西。
编辑:对不起,我表示我使用CentOS,但它实际上是Ubuntu服务器(我通常使用CentOS,但必须与Ubuntu的那一个)。
testingconfiguration:
/usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf -t
运行前景(用于debugging):
/usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf -D
你禁用了吗?
server.use-ipv6 = "enable"
在你的.conf? 我遇到了同样的问题,并find了
$ netstat -ntulp
服务器正在监听ipv6。 禁用server.use-ipv6后,我可以通过ipv4连接到lighttp。 还有一个关于这个问题的旧bug报告,他们说这是一个BSD的特定问题。 我正在使用Ubuntu。
也许lighttpd试图login到一些没有写权限的地方? 检查日志指令。