Chinaunix首页 | 论坛 | 博客
  • 博客访问: 640230
  • 博文数量: 263
  • 博客积分: 6000
  • 博客等级: 准将
  • 技术积分: 2555
  • 用 户 组: 普通用户
  • 注册时间: 2008-02-26 11:20
文章分类

全部博文(263)

文章存档

2011年(10)

2010年(19)

2009年(170)

2008年(64)

我的朋友

分类: LINUX

2008-06-17 17:37:09

Problem


root@hasantayyar-desktop:/home/hasantayyar# sudo apt-get remove --purge apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package apache2 is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 20 not upgraded.
root@hasantayyar-desktop:/home/hasantayyar# sudo apt-get clean
root@hasantayyar-desktop:/home/hasantayyar# sudo apt-get install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
apache2-mpm-worker apache2-utils apache2.2-common
Suggested packages:
apache2-doc
The following NEW packages will be installed:
apache2 apache2-mpm-worker apache2-utils apache2.2-common
0 upgraded, 4 newly installed, 0 to remove and 20 not upgraded.
Need to get 1171kB of archives.
After this operation, 4436kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 hardy-updates/main apache2-utils 2.2.8-1ubuntu0.2 [139kB]
Get:2 hardy-updates/main apache2.2-common 2.2.8-1ubuntu0.2 [753kB]
Get:3 hardy-updates/main apache2-mpm-worker 2.2.8-1ubuntu0.2 [234kB]
Get:4 hardy-updates/main apache2 2.2.8-1ubuntu0.2 [44,4kB]
Fetched 1171kB in 4s (287kB/s)
Selecting previously deselected package apache2-utils.
(Reading database ... 161885 files and directories currently installed.)
Unpacking apache2-utils (from .../apache2-utils_2.2.8-1ubuntu0.2_i386.deb) ...
Selecting previously deselected package apache2.2-common.
Unpacking apache2.2-common (from .../apache2.2-common_2.2.8-1ubuntu0.2_i386.deb) ...
Selecting previously deselected package apache2-mpm-worker.
Unpacking apache2-mpm-worker (from .../apache2-mpm-worker_2.2.8-1ubuntu0.2_i386.deb) ...
Selecting previously deselected package apache2.
Unpacking apache2 (from .../apache2_2.2.8-1ubuntu0.2_all.deb) ...
Setting up apache2-utils (2.2.8-1ubuntu0.2) ...
Setting up apache2.2-common (2.2.8-1ubuntu0.2) ...

Setting up apache2-mpm-worker (2.2.8-1ubuntu0.2) ...
grep: /etc/apache2/mods-enabled/*.load: No such file or directory
Module cgi does not exist!
This module does not exist!
It looks like you've deleted /etc/apache2/mods-available/cgid.load, so mod_cgid cannot be enabled. To fix this, please purge and reinstall apache2.2-common.
* Starting web server apache2 apache2: Could not open configuration file /etc/apache2/apache2.conf: No such file or directory
[fail]
invoke-rc.d: initscript apache2, action "start" failed.

Setting up apache2 (2.2.8-1ubuntu0.2) ...

Solving

Quote: It looks like you've deleted /etc/apache2/mods-available/cgid.load, so mod_cgid cannot be enabled. To fix this, please purge and reinstall apache2.2-common. Try: Code: sudo apt-get remove --purge apache2.2-commonsudo apt-get install apache2.2-common
阅读(839) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~