求教升级的问题。

求教升级的问题。

我现在的机器是linux7.1 php4.04   mysql3.23.36,apache 也是linux7.1自带的。我想升级为php-4.1.2-3 并且添加对gd mysql socket和snmp的支持(我以前的只支持mysql),并且升级apache和mysql。我下载了一些rpm文件,具体如下:
php-common-4.1.2-3.i386.rpm
php-devel-4.1.2-3.i386.rpm
php-gtk-0.0.4-1.i386.rpm
php-imap-4.1.2-3.i386.rpm
php-ldap-4.1.2-3.i386.rpm
php-mysql-4.1.2-3.i386.rpm
php-snmp-4.1.2-3.i386.rpm
php-sockets-4.1.2-3.i386.rpm
php-4.1.2-3.i386.rpm
mysql-3.23.49-2.i686.rpm
mysql-bench-3.23.49-2.i386.rpm
mysql-client-3.23.49-2.i386.rpm
mysql-devel-3.23.49-2.i386.rpm
mysql-libs-3.23.49-2.i386.rpm
mysql-static-3.23.49-2.i386.rpm
apache-devel-1.3.23-4.i386.rpm
apache-1.3.23-4.i386.rpm

我做rpm -Uvh * 但是报错
apache(EAPI) >= 1.3.9 is needed by php-4.1.2-3
        /usr/sbin/apxs   is needed by php-4.1.2-3
        php-common = 4.1.2 is needed by php-4.1.2-3
        libcrypto.so.0.9.6.1   is needed by php-4.1.2-3
        libmm.so.11   is needed by php-4.1.2-3
        libphp_common-4.1.2.so.0   is needed by php-4.1.2-3
        libssl.so.0.9.6.1   is needed by php-4.1.2-3
        mm   is needed by php-4.1.2-3
        php = 4.0.4pl1-9 is needed by php-imap-4.0.4pl1-9
        php = 4.0.4pl1-9 is needed by php-ldap-4.0.4pl1-9
        php = 4.0.4pl1-9 is needed by php-mysql-4.0.4pl1-9

求教各位大侠该如何解决,怎么才能安装好上述我想要安装的东西,
还差什么rpm?
      
依赖性的关系吧,应该各类lib有关系,看看网站上有关如何升级的文档

如果你胆子大的话......,试试--force --nodeps