LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Fedora Core 6 Downgrade PHP 5.1.6 to 4.4.4 (http://www.linuxquestions.org/questions/linux-server-73/fedora-core-6-downgrade-php-5-1-6-to-4-4-4-a-524364/)

Randvegeta 01-31-2007 10:33 AM

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!

reddazz 02-01-2007 08:58 AM

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.

Randvegeta 02-01-2007 09:03 AM

I have no yet compiled PHP, I am still waiting for some advice.

I would rather keep my current apache as it is.

reddazz 02-01-2007 09:37 AM

Well, you need to go ahead and compile php. If you experience any issues, post back.

Randvegeta 02-02-2007 04:08 AM

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.

reddazz 02-02-2007 05:30 AM

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.

Randvegeta 02-02-2007 06:20 PM

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?

reddazz 02-03-2007 03:51 PM

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.


All times are GMT -5. The time now is 08:14 AM.