Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th December 2009, 16:08
GioMBG GioMBG is offline
Junior Member
 
Join Date: Dec 2009
Location: Rimini
Posts: 28
Thanks: 2
Thanked 1 Time in 1 Post
Default downgrade to php 5.2.11 from 5.3 on fedora 12

Hi All,
my name GioMBG,
first BIG respect to HowToForge

I do php, sql web prg to help DJ Producer to manage internet music labels:
so I work with images, mp3 and pdf, so I'm working with these classes:
PHPThumb, getid3 and fpdf.
in all these classes there are many functionS that are now deprecated in php 5.3 like eregi() etc. etc.

THE PROBLEM IS BIG! (in all the web)
http://www.google.it/search?q=eregi%...deprecated+php

Can anyone help me to install or compile an old version of php 5.2.11 on my Costantine Fedora 12?

Thanks
GioMBG
Reply With Quote
Sponsored Links
  #2  
Old 13th December 2009, 07:58
GioMac GioMac is offline
Junior Member
 
Join Date: Dec 2009
Location: Tbilisi, Georgia
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to GioMac Send a message via MSN to GioMac Send a message via Yahoo to GioMac Send a message via Skype™ to GioMac
 
Arrow You are welcome

Greets

There are two workarounds, both will need --oldpackage option:
a. Download and install RPM's i've just compiled + use some fc11 packages (x86_64 only)/Recommended:

http://mirror.alva.ge/pub/other/php5.2fc12/

just download and
Code:
rpm -Uvh --oldpackage *
Maybe you will need also to solve some deps.

Tested works.

b. Compile PHP from scratch (actually what I did to get to the a)
It's quite easy:
You have to download last src.rpm that belongs to Fedora 11, because it contains all required patches and list of required RPM's to compile new one
probably best way is to search at http://rpm.pbone.net with advanced -> fedora 11 flag + use same old fc11 RPM's.


Also, if you are compilation-addicted, you can compile all the depend-packages and say "bye" to fc11 packages, but i guess it's not necessary - no reason except you want to use some fresh versions of some packages.



Code:
[root@acs1 x86_64]# rpm -Uvh php-common-5.2.11-2.fc12.x86_64.rpm php-bcmath-5.2.11-2.fc12.x86_64.rpm php-cli-5.2.11-2.fc12.x86_64.rpm php-mhash-5.2.11-2.fc12.x86_64.rpm php-dba-5.2.11-2.fc12.x86_64.rpm php-embedded-5.2.11-2.fc12.x86_64.rpm php-gd-5.2.11-2.fc12.x86_64.rpm php-imap-5.2.11-2.fc12.x86_64.rpm php-ldap-5.2.11-2.fc12.x86_64.rpm php-mbstring-5.2.11-2.fc12.x86_64.rpm php-mcrypt-5.2.11-2.fc12.x86_64.rpm php-mysql-5.2.11-2.fc12.x86_64.rpm php-odbc-5.2.11-2.fc12.x86_64.rpm php-pdo-5.2.11-2.fc12.x86_64.rpm php-pgsql-5.2.11-2.fc12.x86_64.rpm php-process-5.2.11-2.fc12.x86_64.rpm php-pspell-5.2.11-2.fc12.x86_64.rpm php-soap-5.2.11-2.fc12.x86_64.rpm php-tidy-5.2.11-2.fc12.x86_64.rpm php-xml-5.2.11-2.fc12.x86_64.rpm php-xmlrpc-5.2.11-2.fc12.x86_64.rpm php-zts-5.2.11-2.fc12.x86_64.rpm php-5.2.11-2.fc12.x86_64.rpm rrdtool-php-1.3.8-1.fc11.x86_64.rpm php-magickwand-1.0.8-2.fc11.x86_64.rpm rrdtool-1.3.8-1.fc11.x86_64.rpm dejavu-fonts-lgc-compat-2.29-2.fc11.noarch.rpm  php-pecl-mailparse-2.1.4-2.fc11.x86_64.rpm php-suhosin-0.9.27-2.fc11.x86_64.rpm php-idn-1.2-5.fc11.x86_64.rpm php-pecl-imagick-2.2.2-2.fc11.x86_64.rpm 
Preparing...                ########################################### [100%]
       package php-common-5.3.1-1.fc12.x86_64 (which is newer than php-common-5.2.11-2.fc12.x86_64) is already installed
       package php-pdo-5.3.1-1.fc12.x86_64 (which is newer than php-pdo-5.2.11-2.fc12.x86_64) is already installed
       package php-cli-5.3.1-1.fc12.x86_64 (which is newer than php-cli-5.2.11-2.fc12.x86_64) is already installed
       package php-5.3.1-1.fc12.x86_64 (which is newer than php-5.2.11-2.fc12.x86_64) is already installed
       package php-mbstring-5.3.1-1.fc12.x86_64 (which is newer than php-mbstring-5.2.11-2.fc12.x86_64) is already installed
       package php-pecl-mailparse-2.1.5-2.fc12.x86_64 (which is newer than php-pecl-mailparse-2.1.4-2.fc11.x86_64) is already installed
       package php-mysql-5.3.1-1.fc12.x86_64 (which is newer than php-mysql-5.2.11-2.fc12.x86_64) is already installed
       package php-odbc-5.3.1-1.fc12.x86_64 (which is newer than php-odbc-5.2.11-2.fc12.x86_64) is already installed
       package php-pgsql-5.3.1-1.fc12.x86_64 (which is newer than php-pgsql-5.2.11-2.fc12.x86_64) is already installed
       package php-bcmath-5.3.1-1.fc12.x86_64 (which is newer than php-bcmath-5.2.11-2.fc12.x86_64) is already installed
       package php-dba-5.3.1-1.fc12.x86_64 (which is newer than php-dba-5.2.11-2.fc12.x86_64) is already installed
       package php-embedded-5.3.1-1.fc12.x86_64 (which is newer than php-embedded-5.2.11-2.fc12.x86_64) is already installed
       package php-gd-5.3.1-1.fc12.x86_64 (which is newer than php-gd-5.2.11-2.fc12.x86_64) is already installed
       package php-imap-5.3.1-1.fc12.x86_64 (which is newer than php-imap-5.2.11-2.fc12.x86_64) is already installed
       package php-ldap-5.3.1-1.fc12.x86_64 (which is newer than php-ldap-5.2.11-2.fc12.x86_64) is already installed
       package php-mcrypt-5.3.1-1.fc12.x86_64 (which is newer than php-mcrypt-5.2.11-2.fc12.x86_64) is already installed
       package php-process-5.3.1-1.fc12.x86_64 (which is newer than php-process-5.2.11-2.fc12.x86_64) is already installed
       package php-pspell-5.3.1-1.fc12.x86_64 (which is newer than php-pspell-5.2.11-2.fc12.x86_64) is already installed
       package php-soap-5.3.1-1.fc12.x86_64 (which is newer than php-soap-5.2.11-2.fc12.x86_64) is already installed
       package php-tidy-5.3.1-1.fc12.x86_64 (which is newer than php-tidy-5.2.11-2.fc12.x86_64) is already installed
       package php-xml-5.3.1-1.fc12.x86_64 (which is newer than php-xml-5.2.11-2.fc12.x86_64) is already installed
       package php-xmlrpc-5.3.1-1.fc12.x86_64 (which is newer than php-xmlrpc-5.2.11-2.fc12.x86_64) is already installed
       package php-zts-5.3.1-1.fc12.x86_64 (which is newer than php-zts-5.2.11-2.fc12.x86_64) is already installed
       package php-magickwand-1.0.8-4.fc12.x86_64 (which is newer than php-magickwand-1.0.8-2.fc11.x86_64) is already installed
       package php-suhosin-0.9.27-4.fc12.x86_64 (which is newer than php-suhosin-0.9.27-2.fc11.x86_64) is already installed
       package php-idn-1.2-7.fc12.x86_64 (which is newer than php-idn-1.2-5.fc11.x86_64) is already installed
       package php-pecl-imagick-2.2.2-4.fc12.x86_64 (which is newer than php-pecl-imagick-2.2.2-2.fc11.x86_64) is already installed
       package rrdtool-1.3.8-4.fc12.x86_64 (which is newer than rrdtool-1.3.8-1.fc11.x86_64) is already installed
       package rrdtool-php-1.3.8-4.fc12.x86_64 (which is newer than rrdtool-php-1.3.8-1.fc11.x86_64) is already installed
[root@acs1 x86_64]# rpm -Uvh php-common-5.2.11-2.fc12.x86_64.rpm php-bcmath-5.2.11-2.fc12.x86_64.rpm php-cli-5.2.11-2.fc12.x86_64.rpm php-mhash-5.2.11-2.fc12.x86_64.rpm php-dba-5.2.11-2.fc12.x86_64.rpm php-embedded-5.2.11-2.fc12.x86_64.rpm php-gd-5.2.11-2.fc12.x86_64.rpm php-imap-5.2.11-2.fc12.x86_64.rpm php-ldap-5.2.11-2.fc12.x86_64.rpm php-mbstring-5.2.11-2.fc12.x86_64.rpm php-mcrypt-5.2.11-2.fc12.x86_64.rpm php-mysql-5.2.11-2.fc12.x86_64.rpm php-odbc-5.2.11-2.fc12.x86_64.rpm php-pdo-5.2.11-2.fc12.x86_64.rpm php-pgsql-5.2.11-2.fc12.x86_64.rpm php-process-5.2.11-2.fc12.x86_64.rpm php-pspell-5.2.11-2.fc12.x86_64.rpm php-soap-5.2.11-2.fc12.x86_64.rpm php-tidy-5.2.11-2.fc12.x86_64.rpm php-xml-5.2.11-2.fc12.x86_64.rpm php-xmlrpc-5.2.11-2.fc12.x86_64.rpm php-zts-5.2.11-2.fc12.x86_64.rpm php-5.2.11-2.fc12.x86_64.rpm rrdtool-php-1.3.8-1.fc11.x86_64.rpm php-magickwand-1.0.8-2.fc11.x86_64.rpm rrdtool-1.3.8-1.fc11.x86_64.rpm dejavu-fonts-lgc-compat-2.29-2.fc11.noarch.rpm  php-pecl-mailparse-2.1.4-2.fc11.x86_64.rpm php-suhosin-0.9.27-2.fc11.x86_64.rpm php-idn-1.2-5.fc11.x86_64.rpm php-pecl-imagick-2.2.2-2.fc11.x86_64.rpm  --oldpackage 
Preparing...                ########################################### [100%]
  1:php-common             ########################################### [  3%]
  2:php-pdo                ########################################### [  6%]
  3:php-cli                ########################################### [ 10%]
  4:php                    ########################################### [ 13%]
  5:php-mbstring           ########################################### [ 16%]
  6:php-pecl-mailparse     ########################################### [ 19%]
  7:php-mysql              ########################################### [ 23%]
  8:php-odbc               ########################################### [ 26%]
  9:php-pgsql              ########################################### [ 29%]
 10:php-bcmath             ########################################### [ 32%]
 11:php-mhash              ########################################### [ 35%]
 12:php-dba                ########################################### [ 39%]
 13:php-embedded           ########################################### [ 42%]
 14:php-gd                 ########################################### [ 45%]
 15:php-imap               ########################################### [ 48%]
 16:php-ldap               ########################################### [ 52%]
 17:php-mcrypt             ########################################### [ 55%]
 18:php-process            ########################################### [ 58%]
 19:php-pspell             ########################################### [ 61%]
 20:php-soap               ########################################### [ 65%]
 21:php-tidy               ########################################### [ 68%]
 22:php-xml                ########################################### [ 71%]
 23:php-xmlrpc             ########################################### [ 74%]
 24:php-zts                ########################################### [ 77%]
 25:php-magickwand         ########################################### [ 81%]
 26:php-suhosin            ########################################### [ 84%]
 27:php-idn                ########################################### [ 87%]
 28:php-pecl-imagick       ########################################### [ 90%]
install ok: channel://pecl.php.net/imagick-2.2.2
 29:dejavu-fonts-lgc-compat########################################### [ 94%]
 30:rrdtool                ########################################### [ 97%]
 31:rrdtool-php            ########################################### [100%]
[root@acs1 x86_64]# service httpd graceful
[root@acs1 x86_64]#
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 18:26
Unable to install ISPConfig bdonecker Installation/Configuration 21 26th May 2009 09:20
ISP Config hesitation when opening web pages frankb Installation/Configuration 7 15th December 2008 14:06
ispconfig php 5 errors itamarjp Installation/Configuration 8 25th April 2008 11:20
Apache2 Freezes celtic Server Operation 31 28th May 2007 18:18


All times are GMT +2. The time now is 07:05.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.