删除/ var / log中的所有内容后,无法连接到本地网络

我正在使用MythTV,MythWeb突然停止工作。 当我尝试连接时,我的网络浏览器会报告:

Unable to connect Firefox can't establish a connection to the server at 192.168.1.100. 

我仍然没有连接到互联网的麻烦,ifconfig结果似乎没问题:

 eth1 Link encap:Ethernet HWaddr 00:1c:c0:79:83:13 inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::21c:c0ff:fe79:8313/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:963141 errors:0 dropped:90 overruns:0 frame:0 TX packets:726145 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:449248447 (449.2 MB) TX bytes:174625833 (174.6 MB) Interrupt:20 Memory:e3400000-e3420000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:6009249 errors:0 dropped:0 overruns:0 frame:0 TX packets:6009249 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2149138281 (2.1 GB) TX bytes:2149138281 (2.1 GB) 

当我尝试http://192.168.1.100/时,我得到了同样的错误,所以我认为这可能不是一个mythweb错误,而是更多… Apache错误?

更新:因为看起来它可能与端口80相关(感谢Nathan),我检查了我的/etc/apache2/ports.conf文件,其中包含一个“Listen 80”行,所以我检查了并且apache没有运行(facepalm)!

尝试使用以下命令启动apache:sudo /etc/init.d/apache2 start返回:

 AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive globally to suppress this message (2)No such file or directory: AH02291: Cannot access directory '/var/log/apache2/' for main error log (2)No such file or directory: AH02291: Cannot access directory '/var/log/apache2/' for error log of vhost defined at /etc/apache2/sites-enabled/000-default.conf:1 

正如apache错误所示,它没有启动,因为没有/ var / log / apache2 /目录,因为我在尝试调试不相关的问题时删除了我的/ var / log目录中的所有内容。 我重新创建了/ var / log / apache2 /目录以消除最后两个错误,并按照以下说明将“ServerName localhost”添加到我的/etc/apache2/apache2.conf文件中:删除第一个错误。

我不知道为什么日志目录不是简单地重新创建,如果丢失,但这是问题。