Fedora 6 - LAMP Server with PHP 5 and MySQL 4

Posted on 2007-10-05
Last Modified: 2013-12-16
This question is an extension of that found at

I have a Fedora 6 LAMP Server, and I require to run PHP 5.1.6 and MySQL 4.1.22. I could not get MySQL 4 from the fc6 repositories, so I installed the rpm. The problem now is that I need to install the php-mysql package, however, when I use yum a required dependency is MySQL 5. How would I go about installing /configuring either via yum or rpm so I can have a PHP5 / MySQL 4 system.

I do not need to stick with fc 6. I could do an fc4 or fc5 install and work from there if it is easier. The end result should be a system with MySQL 4.1.22 and PHP 5.1.6.

Thank You
Question by:BiTRaTE2600
    LVL 8

    Expert Comment

    by:Bradley Haynes
    Change the Arch to yours if you need to.

    Run yum list \*php\* as you suggested and got ...

    Name                                     Arch       Version
    asp2php                                  ppc        0.76.2-3
    asp2php-gtk                              ppc        0.76.2-3
    php-dbg-base                             ppc        2.10-4
    php-dbg-client                           ppc        2.10-6
    php-dbg-server                           ppc        2.10pl3-6
    php-devel                                ppc        4.2.2-17.2
    php-manual                               ppc        4.2.2-17.2
    php-mysql                                ppc        4.2.2-17.2
    php-odbc                                 ppc        4.2.2-17.2
    php-pgsql                                ppc        4.2.2-17.2
    php-snmp                                 ppc        4.2.2-17.2

    Looking in Installed Packages:
    Name                                     Arch       Version
    php                                      ppc        4.2.2-17.2
    php-imap                                 ppc        4.2.2-17.2
    php-ldap                                 ppc        4.2.2-17.2

    2) Then look on the web for php-mysql4.2.2-17.2. ******* Note: check for the version you need ******

    3) Downloaded and  install it with the recommended command:
          rpm -Fvh php-mysql-4.2.2-17.2.ppc.rpm
    LVL 14

    Expert Comment

    I would recommend starting over with a CentOS 4 system if this is a production system since fedora has such a short shelf life.  MySQL4 is support on RedHat4 (and hence CentOS4).  It won't get you php 5 though.  How are your feelings on compiling php-5 from source?  It is really easy.... the only draw-back would be if you then wanted to install other apps that had dependencies on php rpms, the system wouldn't know you had php.  php-5.1.6 IS in the CentOS-Plus repository, but I think it requires the mysql5 libraries...

    Author Comment

    Yes arrkerr1024, this sounds like a good option. Just to confirm, will I be able to configure CentOS 4 with the following?

    mysql 4.1.22
    php 5.1.6
    php-mysql (whatever version is required)

    Can you point me in the right direction for accomplishing this?

    LVL 8

    Expert Comment

    by:Bradley Haynes
    Be aware with CentOS there is a bug if you want to use the Bind (DNS) server you will have to configure this manually and it can be a BEAR to the uninitiated.

    Here is an excellent source of information for you re: CentOS
    LVL 14

    Accepted Solution

    The installation of CentOS is exactly like Fedora.  Once you have the basic system installed I'd actually recommend getting the mysql RPM directly from mysql.  Not only can you get exactly the version you want, but if you ever have to call mysql for support they only support the RPMs that come from their site.

    Getting the correct version of php installed is another matter.  Try just grabbing the php and php-mysql RPMs from the centos-plus repository at
    If that doesn't work, and source is an option, just grab php from and follow the simple installation directions.

    As far as BIND, there is indeed a bug, but it isn't with CentOS, nor is it with RedHat of which CentOS is a  free rebuild of.  The problem is with bind 9.2, and the bind folks decided that instead of fixing 9.2 they would just release 9.3. The problem is that RedHat has a strict policy to not upgrade major versions of software in a release, only to provide bug fixes - so they couldn't provide 9.3 because it was a new version - but bind never fixed 9.2. The easy solution is to just grab an rpm of 9.3 for the many sources and install it - you just can't get it directly from RedHat/CentOS.
    LVL 1

    Expert Comment


    I think you should try downloading individual rpms from site , and then install it.

    LVL 14

    Expert Comment

    by:Deepak Kosaraju
    is the best repository site for any rpm based Operating System.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
    1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now