Today i was trying to install apache on my server, but kept getting an error everytime i run the yum command:

CODE:
apt-get install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel


This is the error i got:

CODE:
Reading Package Lists... Done
Building Dependency Tree... Done
perl-libwww-perl is already the newest version.
The following extra packages will be installed:
   libc-client (2002e-17)
   libwmf (0.2.8.3-8.2)
   libxml2-python (2.6.20-1.FC4)
The following packages will be upgraded
   curl (7.13.1-3 => 7.13.1-5.fc4)
   curl-devel (7.13.1-3 => 7.13.1-5.fc4)
   libxml2 (2.6.19-1 => 2.6.20-1.FC4)
   libxml2-devel (2.6.19-1 => 2.6.20-1.FC4)
   libxml2-python (2.6.19-1 => 2.6.20-1.FC4)
   php (5.0.4-10 => 5.0.5-2.2)
   php-ldap (5.0.4-10 => 5.0.5-2.2)
   php-pear (5.0.4-10 => 5.0.5-2.2)
The following NEW packages will be installed:
   ImageMagick (6.2.2.0-3.fc4.2)
   libc-client (2002e-17)
   libwmf (0.2.8.3-8.2)
   php-devel (5.0.5-2.2)
   php-gd (5.0.5-2.2)
   php-imap (5.0.5-2.2)
   php-mysql (5.0.5-2.2)
   php-odbc (5.0.5-2.2)
   php-xml (5.0.5-2.2)
   php-xmlrpc (5.0.5-2.2)
8 upgraded, 10 newly installed, 0 removed and 203 not upgraded.
Need to get 0B/11.3MB of archives.
After unpacking 12.8MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Checking GPG signatures...  ########################################### [100%]
E: Unknown signature /var/cache/apt/archives/php-pear_5.0.5-2.2_i386.rpm: (SHA1) DSA sha1 md5 (GPG) NOT OK (MISSING KEYS: GPG#30c9ecf8)
E: Unknown signature /var/cache/apt/archives/php-ldap_5.0.5-2.2_i386.rpm: (SHA1) DSA sha1 md5 (GPG) NOT OK (MISSING KEYS: GPG#30c9ecf8)
E: Unknown signature /var/cache/apt/archives/php_5.0.5-2.2_i386.rpm: (SHA1) DSA sha1 md5 (GPG) NOT OK (MISSING KEYS: GPG#30c9ecf8)
E: Unknown signature /var/cache/apt/archives/php-devel_5.0.5-2.2_i386.rpm: (SHA1) DSA sha1 md5 (GPG) NOT OK (MISSING KEYS: GPG#30c9ecf8)
E: Unknown signature /var/cache/apt/archives/php-gd_5.0.5-2.2_i386.rpm: (SHA1) DSA sha1 md5 (GPG) NOT OK (MISSING KEYS: GPG#30c9ecf8)
E: Unknown signature /var/cache/apt/archives/php-imap_5.0.5-2.2_i386.rpm: (SHA1) DSA sha1 md5 (GPG) NOT OK (MISSING KEYS: GPG#30c9ecf8)
E: Unknown signature /var/cache/apt/archives/php-mysql_5.0.5-2.2_i386.rpm: (SHA1) DSA sha1 md5 (GPG) NOT OK (MISSING KEYS: GPG#30c9ecf8)
E: Unknown signature /var/cache/apt/archives/php-odbc_5.0.5-2.2_i386.rpm: (SHA1) DSA sha1 md5 (GPG) NOT OK (MISSING KEYS: GPG#30c9ecf8)
E: Unknown signature /var/cache/apt/archives/php-xml_5.0.5-2.2_i386.rpm: (SHA1) DSA sha1 md5 (GPG) NOT OK (MISSING KEYS: GPG#30c9ecf8)
E: Unknown signature /var/cache/apt/archives/php-xmlrpc_5.0.5-2.2_i386.rpm: (SHA1) DSA sha1 md5 (GPG) NOT OK (MISSING KEYS: GPG#30c9ecf8)
E: Error(s) while checking package signatures:
0 unsigned package(s)
10 package(s) with unknown signatures
0 package(s) with illegal/corrupted signatures
E: Handler silently failed


So what i did to fix this, i executed the following command:

CODE:
rpm --import /usr/share/rhn/RPM-GPG-KEY*


Then, i was able to install without any problems:

CODE:
apt-get install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel
Reading Package Lists... Done
Building Dependency Tree... Done
perl-libwww-perl is already the newest version.
The following extra packages will be installed:
   libc-client (2002e-17)
   libwmf (0.2.8.3-8.2)
   libxml2-python (2.6.20-1.FC4)
The following packages will be upgraded
   curl (7.13.1-3 => 7.13.1-5.fc4)
   curl-devel (7.13.1-3 => 7.13.1-5.fc4)
   libxml2 (2.6.19-1 => 2.6.20-1.FC4)
   libxml2-devel (2.6.19-1 => 2.6.20-1.FC4)
   libxml2-python (2.6.19-1 => 2.6.20-1.FC4)
   php (5.0.4-10 => 5.0.5-2.2)
   php-ldap (5.0.4-10 => 5.0.5-2.2)
   php-pear (5.0.4-10 => 5.0.5-2.2)
The following NEW packages will be installed:
   ImageMagick (6.2.2.0-3.fc4.2)
   libc-client (2002e-17)
   libwmf (0.2.8.3-8.2)
   php-devel (5.0.5-2.2)
   php-gd (5.0.5-2.2)
   php-imap (5.0.5-2.2)
   php-mysql (5.0.5-2.2)
   php-odbc (5.0.5-2.2)
   php-xml (5.0.5-2.2)
   php-xmlrpc (5.0.5-2.2)
8 upgraded, 10 newly installed, 0 removed and 203 not upgraded.
Need to get 0B/11.3MB of archives.
After unpacking 12.8MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Checking GPG signatures...  ########################################### [100%]
Committing changes...
Preparing...                ########################################### [100%]
   1:libxml2                ########################################### [  6%]
   2:curl                   ########################################### [ 11%]
   3:php                    ########################################### [ 17%]
   4:libwmf                 ########################################### [ 22%]
   5:libc-client            ########################################### [ 28%]
   6:libxml2-python         ########################################### [ 33%]
   7:libxml2-devel          ########################################### [ 39%]
   8:ImageMagick            ########################################### [ 44%]
   9:curl-devel             ########################################### [ 50%]
  10:php-pear               ########################################### [ 56%]
  11:php-ldap               ########################################### [ 61%]
  12:php-devel              ########################################### [ 67%]
  13:php-gd                 ########################################### [ 72%]
  14:php-imap               ########################################### [ 78%]
  15:php-mysql              ########################################### [ 83%]
  16:php-odbc               ########################################### [ 89%]
  17:php-xml                ########################################### [ 94%]
  18:php-xmlrpc             ########################################### [100%]
Done.