apache2将无法启动,但没有错误

我在运行在android内核上的华硕slider sl101平板电脑上运行apache2在Debian上进行testing。

root@hoshi:/# root@hoshi:/# /etc/init.d/apache2 restart Restarting web server: apache2. root@hoshi:/# root@hoshi:/# netstat -tulpn Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN 15439/Xtightvnc tcp 0 0 127.0.0.1:5037 0.0.0.0:* LISTEN 99/adbd tcp 0 0 0.0.0.0:6001 0.0.0.0:* LISTEN 15439/Xtightvnc root@hoshi:/# 

所以,它没有给我错误,但没有启动

ports.conf设置如下:

 NameVirtualHost *:80 Listen 80 

但任何尝试将端口更改为Listen 8080或Listen 8010或其他任何内容都不会在netstat中产生结果

Apache的错误日志说

 root@hoshi:/# tail -f /var/log/apache2/error.log [Mon Apr 30 21:51:37 2012] [error] (38)Function not implemented: mod_python: Failed to create global mutex 0 of 8 (/tmp/mpmtx158400). Configuration Failed [Mon Apr 30 22:42:31 2012] [notice] mod_python: Creating 8 session mutexes based on 256 max processes and 0 max threads. [Mon Apr 30 22:42:31 2012] [notice] mod_python: using mutex_directory /tmp [Mon Apr 30 22:42:31 2012] [error] (38)Function not implemented: mod_python: Failed to create global mutex 0 of 8 (/tmp/mpmtx165640). Configuration Failed [Mon Apr 30 22:45:08 2012] [notice] mod_python: Creating 8 session mutexes based on 256 max processes and 0 max threads. [Mon Apr 30 22:45:08 2012] [notice] mod_python: using mutex_directory /tmp [Mon Apr 30 22:45:08 2012] [error] (38)Function not implemented: mod_python: Failed to create global mutex 0 of 8 (/tmp/mpmtx165920). Configuration Failed 

经过一些各种研究后,我发现mod_python提供的错误有时与主机服务器上缺less内存有关。

我卸载apache2并安装lighttpd

在debian中

 apt-get install lighttpd lighttpd-doc 

那么做完后就运行好了

 /etc/init.d/lighttpd start 

默认安装就像apache一样工作,
服务器文件在/ var / www /

并在0.0.0.0:80发现网站

即使在我的chrooted debian平板电脑arm设备上也能很好地工作

也请确保在启动任何vnc服务器之前运行lighttpd服务器