---
title: "SUSE11安装apache "
author: "张三火"
date: "2014-04-01T14:59:33Z"
tags: []
categories: ["操作系统"]
slug: "suse11-apache"
draft: false
lastmod: "2014-04-01T15:00:11Z"
id: 2039486
url: "https://bladelogic.iteye.com/blog/2039486"
---

```
ABC:~/install # rpm -ivh apache2-2.2.0-21.2.i586.rpm
error: Failed dependencies:
        apache2-MPM is needed by apache2-2.2.0-21.2.i586
```

 

软件包有依赖关系可找了半天也没有apache2-MPM这个包

 

找了几个apache的包一个一个试

```
ABC:~/install # rpm -ivh apache2-prefork-2.2.0-21.2.i586.rpm
error: Failed dependencies:
        apache2 = 2.2.0 is needed by apache2-prefork-2.2.0-21.2.i586
```

 

这两个包必须一起装才能装上apache

```
ABC:~/install # rpm -ivh apache2-2.2.0-21.2.i586.rpm apache2-prefork-2.2.0-21.2.i586.rpm
Preparing...                ########################################### [100%]
   1:apache2-prefork        ########################################### [ 50%]
   2:apache2                ########################################### [100%]
Starting SuSEconfig, the SuSE Configuration Tool...
Running module permissions only
Reading /etc/sysconfig and updating the system...
Executing /sbin/conf.d/SuSEconfig.permissions...
Checking permissions and ownerships - using the permissions files
        /etc/permissions.d/sendmail
        /etc/permissions.d/susehelp
        /etc/permissions
        /etc/permissions.easy
        /etc/permissions.local
setting /usr/sbin/suexec2 to root:root 4755. (wrong permissions 0755)
Finished.
Updating etc/sysconfig/apache2...
looking for old 2.0 modules to be renamed...
Done.
```