LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-31-2007, 10:33 AM   #1
Randvegeta
Member
 
Registered: Jun 2003
Location: Hong Kong
Distribution: Mandrake 9.1
Posts: 72

Rep: Reputation: 15
Fedora Core 6 Downgrade PHP 5.1.6 to 4.4.4


I have a Fedora Core 6 server. I installed it with Apache 2 by default during the installation of the OS.

I used YUM install PHP and Yum install php-mysql to setup PHP with MYSQL. However this installed PHP 5.1.6 and I need 4.4.4.

I downloaded the source for 4.4.4 from the PHP website. I have now extracted the source and am ready to run ./configure. The only problem is I dont know the correct command to run to install it properly. My PHP book says to do this

./configure --prefix=/usr/local/php --with-mysql \ --with-apxs2= /usr/local/apache2/bin/apxs

But apache is not installed in /usr/local/apache2. So i went to my PHPInfo page and saw that the config command was

'./configure' '--build=i386-redhat-linux' '--host=i386-redhat-linux' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-kerberos' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--with-mime-magic=/etc/httpd/conf/magic' '--without-sqlite' '--with-libxml-dir=/usr' '--with-xml' '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--without-odbc' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter'.

Now I am hoping i can just run

./configure --prefix=/usr/local/php --with-mysql \ --with-apxs2= /usr/sbin/apxs

for 4.4.4 but i would appreciate any input from more experienced linux users than myself.

Thanks for the help in advance!
 
Old 02-01-2007, 08:58 AM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Did you go ahead and compile PHP? I personally would have just compiled both apache and php from source if I didn't want some of the package versions shipped by the distro.
 
Old 02-01-2007, 09:03 AM   #3
Randvegeta
Member
 
Registered: Jun 2003
Location: Hong Kong
Distribution: Mandrake 9.1
Posts: 72

Original Poster
Rep: Reputation: 15
I have no yet compiled PHP, I am still waiting for some advice.

I would rather keep my current apache as it is.
 
Old 02-01-2007, 09:37 AM   #4
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Well, you need to go ahead and compile php. If you experience any issues, post back.
 
Old 02-02-2007, 04:08 AM   #5
Randvegeta
Member
 
Registered: Jun 2003
Location: Hong Kong
Distribution: Mandrake 9.1
Posts: 72

Original Poster
Rep: Reputation: 15
Ok, but will this screw up my existing PHP setup? The server is currently live and I dont want to stop the operations of my server.
 
Old 02-02-2007, 05:30 AM   #6
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
You said you wanted to downgrade PHP and obviously this will affect your current PHP installation. If your server is live, then to minimise downtime, do the downgrade when your server is not busy e.g. early hours of the morning.
 
Old 02-02-2007, 06:20 PM   #7
Randvegeta
Member
 
Registered: Jun 2003
Location: Hong Kong
Distribution: Mandrake 9.1
Posts: 72

Original Poster
Rep: Reputation: 15
There server is always busy. The least busy time still has an excess of 500 visitors every hour. I would prefer if i could install PHP 4.4.4 without affecting 5.1.6 and then just config apache to use 4.4.4 and therfore will only have a few seconds of downtime. Is that possibible?
 
Old 02-03-2007, 03:51 PM   #8
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Quote:
Originally Posted by Randvegeta
There server is always busy. The least busy time still has an excess of 500 visitors every hour. I would prefer if i could install PHP 4.4.4 without affecting 5.1.6 and then just config apache to use 4.4.4 and therfore will only have a few seconds of downtime. Is that possibible?
If you can't afford to have any downtime, then I don't think its wise to tinker with apache and php because you will need some downtime in order to reload apache, troubleshoot any problems and fix them before the site is live again. There are some articles on the web that discuss installation of 2 php versions on one apache installation. Have a search on Google and maybe you will find something helpful.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
php comment problem // and /* on Fedora Core 5 and PHP 5.1.4 shakeel_125 Linux - Server 4 09-29-2006 05:42 AM
php comment problem // and /* on Fedora Core 5 and PHP 5.1.4 shakeel_125 Fedora 4 09-29-2006 03:14 AM
Fedora Core 5- MySQL Downgrade dereko Linux - Software 3 07-27-2006 11:59 AM
How to get php 4.4.2 and php 5.1.4 running on fedora core 5? markg85 Linux - Software 2 06-18-2006 10:23 AM
Downgrade Fedora Core Kernel redneon Linux - Software 2 07-15-2004 04:09 AM


All times are GMT -5. The time now is 09:24 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration