Getting started

  • What's available?
    [root@itb3 ~]# yum info php
    Loading "kernel-module" plugin
    Setting up repositories
    Reading repository metadata in from local files
    Available Packages
    Name   : php
    Arch   : i386
    Version: 4.3.9
    Release: 3.22.15
    Size   : 1.3 M
    Repo   : sl-errata
    Summary: The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor)
    Description:
     PHP is an HTML-embedded scripting language. PHP attempts to make it
    easy for developers to write dynamically generated webpages. PHP also
    offers built-in database integration for several commercial and
    non-commercial database management systems, so writing a
    database-enabled webpage with PHP is fairly simple. The most common
    use of PHP coding is probably as a replacement for CGI scripts. The
    mod_php module enables the Apache Web server to understand and process
    the embedded PHP language in Web pages.
  • PHP v 5.1 not available in SL yum repo.
  • Enabled DAG repo. Still no PHP v5 available. Enabled some of the other repos. No luck.
  • Attempted to install from a local rpm (once I found an php-5.2 rpm), but it was for CentOS 5, and there seemed to be too many dependencies to do a yum localinstall. More details here: InstallTryPHP5. Give up!
  • Install php 4.3.9-3.22.15
    [root@itb3 ~]# yum install php
    Loading "kernel-module" plugin
    Setting up Install Process
    Setting up repositories
    Reading repository metadata in from local files
    Parsing package install arguments
    Resolving Dependencies
    --> Populating transaction set with selected packages. Please wait.
    ---> Downloading header for php to pack into transaction set.
    php-4.3.9-3.22.15.i386.rp 100% |=========================|  25 kB    00:00     
    ---> Package php.i386 0:4.3.9-3.22.15 set to be updated
    --> Running transaction check
    --> Processing Dependency: php-pear for package: php
    --> Restarting Dependency Resolution with new changes.
    --> Populating transaction set with selected packages. Please wait.
    ---> Downloading header for php-pear to pack into transaction set.
    php-pear-4.3.9-3.22.15.i3 100% |=========================|  46 kB    00:00     
    ---> Package php-pear.i386 0:4.3.9-3.22.15 set to be updated
    --> Running transaction check
    Beginning Kernel Module Plugin
    Finished Kernel Module Plugin
    
    Dependencies Resolved
    
    =============================================================================
     Package                 Arch       Version          Repository        Size 
    =============================================================================
    Installing:
     php                     i386       4.3.9-3.22.15    sl-errata         1.3 M
    Installing for dependencies:
     php-pear                i386       4.3.9-3.22.15    sl-errata         483 k
    
    Transaction Summary
    =============================================================================
    Install      2 Package(s)         
    Update       0 Package(s)         
    Remove       0 Package(s)         
    Total download size: 1.8 M
    Is this ok [y/N]: y
    Downloading Packages:
    (1/2): php-4.3.9-3.22.15. 100% |=========================| 1.3 MB    00:00     
    (2/2): php-pear-4.3.9-3.2 100% |=========================| 483 kB    00:00     
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Installing: php-pear                     ######################### [1/2] 
      Installing: php                          ######################### [2/2] 
    
    Installed: php.i386 0:4.3.9-3.22.15
    Dependency Installed: php-pear.i386 0:4.3.9-3.22.15
    Complete!
    [root@itb3 ~]#

Final try using new yum repo

  • See http://blog.famillecollet.com/pages/Config-en
    [root@itb3 yum.repos.d]# wget http://rpms.famillecollet.com/remi-enterprise.repo
  • The repo is not enabled by default; it can be left that way, and use
    yum --enablerepro remi update php
  • Had to edit the repo file for OS version (SL 4 supported, but not 4.5, so I hardwire 4 in the URLs).
  • See rpm repository, http://iut-info.univ-reims.fr/remirpms/el4.i386/
  • After # yum --enablerepo remi update php there were there were conflicts with the version of mysql, eg:
    Transaction Check Error:   file /etc/my.cnf from install of mysql-libs-5.1.34-1.el4.remi conflicts with file from package mysql-4.1.22-2.el4.sl
      file /usr/share/mysql/charsets/Index.xml from install of mysql-libs-5.1.34-1.el4.remi conflicts with file from package mysql-4.1.22-2.el4.sl
  • Remove mysql 4
     [root@itb3 yum.repos.d]# yum remove mysql
    Loading "kernel-module" plugin
    Setting up Remove Process
    Resolving Dependencies
    --> Populating transaction set with selected packages. Please wait.
    ---> Package mysql.i386 0:4.1.22-2.el4.sl set to be erased
    --> Running transaction check
    Setting up repositories
    Reading repository metadata in from local files
    --> Processing Dependency: libmysqlclient.so.14 for package: perl-DBD-MySQL
    --> Processing Dependency: libmysqlclient.so.14 for package: php-mysql
    --> Processing Dependency: libmysqlclient_r.so.14(libmysqlclient_14) for package: mysql-server
    --> Processing Dependency: libmysqlclient.so.14(libmysqlclient_14) for package: mysql-server
    --> Processing Dependency: libmysqlclient_r.so.14 for package: mysql-server
    --> Processing Dependency: libmysqlclient.so.14 for package: mysql-server
    --> Processing Dependency: mysql = 4.1.22-2.el4.sl for package: mysql-server
    --> Restarting Dependency Resolution with new changes.
    --> Populating transaction set with selected packages. Please wait.
    ---> Package perl-DBD-MySQL.i386 0:2.9004-3.1 set to be erased
    ---> Package mysql-server.i386 0:4.1.22-2.el4.sl set to be erased
    ---> Package php-mysql.i386 0:4.3.9-3.22.15 set to be erased
    --> Running transaction check
    --> Processing Dependency: php-mysql >= 4.1.0 for package: phpmyadmin
    --> Restarting Dependency Resolution with new changes.
    --> Populating transaction set with selected packages. Please wait.
    ---> Package phpmyadmin.noarch 0:2.11.9.5-1.el4.rf set to be erased
    --> Running transaction check
    Beginning Kernel Module Plugin
    Finished Kernel Module Plugin
    
    Dependencies Resolved
    
    =============================================================================
     Package                 Arch       Version          Repository        Size 
    =============================================================================
    Removing:
     mysql                   i386       4.1.22-2.el4.sl  installed         5.5 M
    Removing for dependencies:
     mysql-server            i386       4.1.22-2.el4.sl  installed          21 M
     perl-DBD-MySQL          i386       2.9004-3.1       installed         235 k
     php-mysql               i386       4.3.9-3.22.15    installed          40 k
     phpmyadmin              noarch     2.11.9.5-1.el4.rf  installed          13 M
    
    Transaction Summary
    =============================================================================
    Install      0 Package(s)         
    Update       0 Package(s)         
    Remove       5 Package(s)         
    Total download size: 0 
    Is this ok [y/N]: y
    Downloading Packages:
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Removing  : mysql-server                 ######################### [1/5]
      Removing  : mysql                        ######################### [2/5]
      Removing  : perl-DBD-MySQL               ######################### [3/5]
      Removing  : php-mysql                    ######################### [4/5]
      Removing  : phpmyadmin                   ######################### [5/5]
    
    Removed: mysql.i386 0:4.1.22-2.el4.sl
    Dependency Removed: mysql-server.i386 0:4.1.22-2.el4.sl perl-DBD-MySQL.i386 0:2.9004-3.1 php-mysql.i386 0:4.3.9-3.22.15 phpmyadmin.noarch 0:2.11.9.5-1.el4.rf
    Complete!
    [root@itb3 yum.repos.d]#
  • Try again,
    [root@itb3 yum.repos.d]# yum --enablerepo remi update php
    Loading "kernel-module" plugin
    Setting up Update Process
    Setting up repositories
    Reading repository metadata in from local files
    Resolving Dependencies
    --> Populating transaction set with selected packages. Please wait.
    ---> Package php.i386 0:5.2.9-1.el4.remi set to be updated
    --> Running transaction check
    --> Processing Dependency: php-common = 5.2.9-1.el4.remi for package: php
    --> Processing Dependency: php-cli = 5.2.9-1.el4.remi for package: php
    --> Processing Dependency: php = 4.3.9-3.22.15 for package: php-pear
    --> Restarting Dependency Resolution with new changes.
    --> Populating transaction set with selected packages. Please wait.
    ---> Package php-common.i386 0:5.2.9-1.el4.remi set to be updated
    ---> Package php-pear.noarch 1:1.8.1-1.el4.remi set to be updated
    ---> Package php-cli.i386 0:5.2.9-1.el4.remi set to be updated
    --> Running transaction check
    Beginning Kernel Module Plugin
    Finished Kernel Module Plugin
    
    Dependencies Resolved
    
    =============================================================================
     Package                 Arch       Version          Repository        Size 
    =============================================================================
    Updating:
     php                     i386       5.2.9-1.el4.remi  remi              1.2 M
    Installing for dependencies:
     php-cli                 i386       5.2.9-1.el4.remi  remi              2.3 M
     php-common              i386       5.2.9-1.el4.remi  remi              257 k
    Updating for dependencies:
     php-pear                noarch     1:1.8.1-1.el4.remi  remi              419 k
    
    Transaction Summary
    =============================================================================
    Install      2 Package(s)         
    Update       2 Package(s)         
    Remove       0 Package(s)         
    Total download size: 4.2 M
    Is this ok [y/N]: y
    Downloading Packages:
    warning: only V3 signatures can be verified, skipping V4 signature
    warning: only V3 signatures can be verified, skipping V4 signature
    warning: only V3 signatures can be verified, skipping V4 signature
    warning: only V3 signatures can be verified, skipping V4 signature
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Installing: php-common                   ######################### [1/6] 
    warning: only V3 signatures can be verified, skipping V4 signature
      Installing: php-cli                      ######################### [2/6] 
    warning: only V3 signatures can be verified, skipping V4 signature
      Updating  : php-pear                     ######################### [3/6] 
    warning: only V3 signatures can be verified, skipping V4 signature
      Updating  : php                          ######################### [4/6] 
    warning: only V3 signatures can be verified, skipping V4 signature
      Cleanup   : php-pear                     ######################### [5/6]
      Cleanup   : php                          ######################### [6/6]
    
    Dependency Installed: php-cli.i386 0:5.2.9-1.el4.remi php-common.i386 0:5.2.9-1.el4.remi
    Updated: php.i386 0:5.2.9-1.el4.remi
    Dependency Updated: php-pear.noarch 1:1.8.1-1.el4.remi
    Complete!
    [root@itb3 yum.repos.d]# 
  • Re-install mysql
     [root@itb3 yum.repos.d]# yum --enablerepo remi install  mysql
    Loading "kernel-module" plugin
    Setting up Install Process
    Setting up repositories
    Reading repository metadata in from local files
    Parsing package install arguments
    Resolving Dependencies
    --> Populating transaction set with selected packages. Please wait.
    ---> Downloading header for mysql to pack into transaction set.
    mysql-5.1.34-1.el4.remi.i 100% |=========================|  16 kB    00:00     
    ---> Package mysql.i386 0:5.1.34-1.el4.remi set to be updated
    --> Running transaction check
    --> Processing Dependency: libmysqlclient.so.16 for package: mysql
    --> Processing Dependency: libmysqlclient_r.so.16(libmysqlclient_16) for package: mysql
    --> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16) for package: mysql
    --> Processing Dependency: mysql-libs = 5.1.34-1.el4.remi for package: mysql
    --> Processing Dependency: libmysqlclient_r.so.16 for package: mysql
    --> Restarting Dependency Resolution with new changes.
    --> Populating transaction set with selected packages. Please wait.
    ---> Package mysql-libs.i386 0:5.1.34-1.el4.remi set to be updated
    --> Running transaction check
    Beginning Kernel Module Plugin
    Finished Kernel Module Plugin
    
    Dependencies Resolved
    
    =============================================================================
     Package                 Arch       Version          Repository        Size 
    =============================================================================
    Installing:
     mysql                   i386       5.1.34-1.el4.remi  remi              3.6 M
    Installing for dependencies:
     mysql-libs              i386       5.1.34-1.el4.remi  remi              2.0 M
    
    Transaction Summary
    =============================================================================
    Install      2 Package(s)         
    Update       0 Package(s)         
    Remove       0 Package(s)         
    Total download size: 5.6 M
    Is this ok [y/N]: y
    Downloading Packages:
    (1/1): mysql-5.1.34-1.el4 100% |=========================| 3.6 MB    00:04     
    warning: only V3 signatures can be verified, skipping V4 signature
    warning: only V3 signatures can be verified, skipping V4 signature
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
    
    WARNING : This mysql RPM is not an official Fedora build and it
    overrides the official one. Don't file bugs on Fedora Project.
    
      Installing: mysql-libs                   ######################### [1/2] 
    warning: only V3 signatures can be verified, skipping V4 signature
      Installing: mysql                        ######################### [2/2] 
    warning: only V3 signatures can be verified, skipping V4 signature
    
    Installed: mysql.i386 0:5.1.34-1.el4.remi
    Dependency Installed: mysql-libs.i386 0:5.1.34-1.el4.remi
    Complete!
    [root@itb3 yum.repos.d]#
  • Later I notice I need mysql-server, and myphpadmin. The installed without error.

Validate

[root@itb3 yum.repos.d]# rpm -Va --nofiles --nomd5
warning: only V3 signatures can be verified, skipping V4 signature
warning: only V3 signatures can be verified, skipping V4 signature
warning: only V3 signatures can be verified, skipping V4 signature
warning: only V3 signatures can be verified, skipping V4 signature
/var/tmp/rpm-tmp.37045: line 851: IntegrateWithGNOME: command not found
warning: only V3 signatures can be verified, skipping V4 signature
warning: only V3 signatures can be verified, skipping V4 signature
warning: only V3 signatures can be verified, skipping V4 signature
warning: only V3 signatures can be verified, skipping V4 signature
warning: only V3 signatures can be verified, skipping V4 signature
[root@itb3 yum.repos.d]# 

  • The remi repo must use V4 signatures which apparently are not supported in SL 4.5.


-- RobGardner - 20 Apr 2009
Topic revision: r1 - 20 Apr 2009, RobGardner
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback