• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 960
  • Last Modified:

Fedora 6 - LAMP Server with PHP 5 and MySQL 4

This question is an extension of that found at http://www.experts-exchange.com/OS/Linux/Q_22873644.html

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
0
BiTRaTE2600
Asked:
BiTRaTE2600
1 Solution
 
Bradley HaynesCommented:
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
0
 
arrkerr1024Commented:
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...
0
 
BiTRaTE2600Author Commented:
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)
php-xml

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

Thanks
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
Bradley HaynesCommented:
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
http://www.centos.org/modules/newbb/viewtopic.php?topic_id=8165
0
 
arrkerr1024Commented:
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 http://isoredirect.centos.org/centos/4/centosplus/i386/RPMS/
If that doesn't work, and source is an option, just grab php from php.net 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.
0
 
abspm24Commented:
Hi,

I think you should try downloading individual rpms from site http://www.rpmfind.net/ , and then install it.

AB
0
 
Deepak KosarajuDevOps EngineerCommented:
http://rpm.pbone.net
is the best repository site for any rpm based Operating System.
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now