Welcome!
 User:  Pass:  Join
 
Main Menu
· Home

· Downloads
· FAQ
· Gallery
· Members List
· Recommend Us
· Stats
· Web Links
· Weather
· Web Mail

Who's Online
We have 7 guests and 0 members online

Welcome Guest, become a member today.


Quotes

Everyone thinks of changing the world, but no one thinks of changing himself.

-- Tolstoy

Last seen
menno: 195 days ago
mira: 310 days ago
samuli: 328 days ago
nichlas: 448 days ago
carine: 486 days ago

Languages
Select interface language:



Installing PHP 5.3.1 on BlueOnyx Linux
Posted by: menno

Website construction After reading there was no way to do this, I decided to give it a go myself.

What follows are instructions on how to install the latest PHP 5.3.1 onto BlueOnyx, alongside the old PHP, so that BlueOnyx control panel still uses the old one.

Your sites can choose to run the old or new version.

Please note that I did this install successfully on my clean BlueOnyx install.

Because it requires compiling PHP from source, the below will yum install the gcc compiler and various devel packages. BlueOnyx does not install these as standard (I believe a security decision). The PHP configure compiler options I have chosen are fairly standard, but of course you can change them to suit. Installation is done in /home/habitableplanet following the convention of other third party apps.


mkdir /home/habitableplanet

cd /home/habitableplanet

mkdir -p usr/local/php53 etc/php53 etc/php53.d

yum install \
gcc \
libicu-devel \
libxml2-devel \
mysql-devel \
libpng-devel \
libjpeg-devel \
curl-devel \
bzip2-devel \
gettext-devel \
gmp-devel \
pcre-devel \
freetype-devel \
gd-devel \
aspell-devel \
db4-devel \
libxslt-devel \
php-xml

cd ~

wget http://uk.php.net/get/php-5.3.1.tar.bz2/from/this/mirror

tar xvjf php-5.3.1.tar.bz2

cd php-5.3.1

./configure \
--prefix=/home/habitableplanet/usr/local/php53 \
--with-config-file-path=/home/habitableplanet/etc/php53 \
--with-config-file-scan-dir=/home/habitableplanet/etc/php53.d \
--with-bz2 \
--with-db4=/usr \
--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-pspell \
--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-wddx \
--with-kerberos \
--enable-ucd-snmp-hack \
--enable-shmop \
--enable-calendar \
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-mysql-sock=/var/lib/mysql/mysql.sock \
--with-libxml-dir=/usr \
--with-gd=/usr \
--with-regex=system \
--with-xsl=/usr \
--enable-mbstring

gmake
gmake install

Now for each site you want to use PHP 5.3 do

vi /etc/httpd/conf/vhosts/site1.include

Add the entries:

ScriptAlias /php53-cgi /home/habitableplanet/usr/local/php53/bin/php-cgi
Action application/x-http-php53 /php53-cgi
AddHandler application/x-http-php53 .php

Also add this in /etc/httpd/conf/vhosts/preview if you make use of the site preview

Thats it. The above took me a few attempts to work out :)

All at your own risk, of course :)

 
Related links
· More about Website construction
· News by menno


Most read story in Website construction:
Weather chaos


Installing PHP 5.3.1 on BlueOnyx Linux | Login/Create an account | 9 Comments
Threshold
  
Comments are owned by the poster. We aren't responsible for their content.
Re: Installing PHP5.3 on BlueOnyx Linux (Score: 0)
by Anonymous on Feb 24, 2010 - 09:06 AM
Thanks!


Re: Installing PHP 5.3.1 on BlueOnyx Linux (Score: 0)
by Anonymous on Jul 03, 2010 - 11:39 PM
Awesome post! It works very well except for one thing. I have had inconsistant problems with database connectivity and sometimes the web server quits altogether. What piece am I missing? I really want this to work so I can use some of the more updated apps such as MAGENTO. Please post another comment about this if you have anything else to offer. Thanks.
J. Patterson http://www.jayblowfish.com
jpatterson@jayblowfish.com



Re: Installing PHP 5.3.1 on BlueOnyx Linux (Score: 0)
by Anonymous on Jul 08, 2010 - 11:14 PM
Just one question, First thank you for the tutorial. I am having to do this because php just decided to quit working on a production server. Any ideas on how to make this a server/httpd wide change instead of a site by site change? Thanks again, Matt.


http://www.watchessell.com/product.php?id=16&categories_id=36 (Score: 0)
by Anonymous on Aug 11, 2010 - 03:57 AM
Audemars Piguet Millenary Chronograph iwc comes iwc with a 47 x 42mm case in 18-karat pink gold; the professionally brushed surfaces delivery a visible dignity, which indicates a touch of opulence via polished gucci watch sections on gucci watch the bezel, oval chronograph pushers, and the tops of the strap lugs. The exceptionally complicated two-zone dial perfectly joints classicism with a sense of Baroque grandeur--employed gucci watches rose gold gucci watches Roman hour numerals flare outward on the concentrically adored black section which also embraces the chronograph subdials. The brown outer section gucci has the gucci considerately exploded tachymeter scale, whose brilliant blue color is nearly as eye-pleasing as its flamboyant omega watch form. The omega watch pink gold caseback is positioned by screws, and has the Millenary logo in relief.


Re: Installing PHP 5.3.1 on BlueOnyx Linux (Score: 0)
by Anonymous on Aug 19, 2010 - 03:24 AM
Renowned preowned Rolex dealers also fake bag undertake a fake bag complete overhaul before offering any such watch for sale. They try to restore used Rolex watches to best replica watch store original Rolex best replica watch store specifications to ensure that they look, feel, and perform no less than a brand new Rolex. For best replica watch example, you best replica watch will find no blemish, moisture, scratch mark or dust inside or outside our watches. Apart best replica watches from cleaning best replica watches, lubricating and polishing the preowned Rolex watches from both inside and out, a brand best watch store new parabolic best watch store sapphire crystal is fitted to them to make them scratch resistant.



© 2001 - 2010 Jansz.Com. All Rights Reserved. Powered by HabitablePlanet.com