[问题]请问下大家,我的apt-get install apache2 怎么会错呢

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
snowcckitty
帖子: 9
注册时间: 2007-01-18 11:03

[问题]请问下大家,我的apt-get install apache2 怎么会错呢

#1

帖子 snowcckitty » 2007-02-01 17:19

我想给我的机子上装apache2,执行命令后
root@ubuntu:/etc/apt# apt-get install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
apache2 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
root@ubuntu:/etc/apt# /etc/init.d/apache2 start
* Starting apache 2.0 web server... Syntax error on line 1 of /etc/apache2/mods-enabled/mod-security.load:
Cannot load /usr/lib/apache2/modules/mod_security.so into server: /usr/lib/apache2/modules/mod_security.so: cannot open shared object file: No such file or directory
[fail]
请问下大家,我该如何解决呢?他说no such file or directory?
snowcckitty
帖子: 9
注册时间: 2007-01-18 11:03

#2

帖子 snowcckitty » 2007-02-01 17:21

root@ubuntu:/etc/apt# 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
The following NEW packages will be installed:
apache2 apache2-mpm-worker
0 upgraded, 2 newly installed, 0 to remove and 13 not upgraded.
Need to get 245kB of archives.
After unpacking 586kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com edgy/main apache2-mpm-worker 2.0.55-4ubuntu4 [209kB]
Get:2 http://us.archive.ubuntu.com edgy/main apache2 2.0.55-4ubuntu4 [36.0kB]
Fetched 245kB in 1m19s (3078B/s)
Selecting previously deselected package apache2-mpm-worker.
(Reading database ... 14763 files and directories currently installed.)
Unpacking apache2-mpm-worker (from .../apache2-mpm-worker_2.0.55-4ubuntu4_i386.deb) ...
Selecting previously deselected package apache2.
Unpacking apache2 (from .../apache2_2.0.55-4ubuntu4_i386.deb) ...
Setting up apache2-mpm-worker (2.0.55-4ubuntu4) ...
* Starting apache 2.0 web server... Syntax error on line 1 of /etc/apache2/mods-enabled/mod-security.load:
Cannot load /usr/lib/apache2/modules/mod_security.so into server: /usr/lib/apache2/modules/mod_security.so: cannot open shared object file: No such file or directory
[fail]
invoke-rc.d: initscript apache2, action "start" failed.

这是第一遍安装的,刚上面的是第二次又试了下,remove掉再install还不行,请问该怎么解决呢?高手帮帮我
回复