hostricity

Active Member
Jun 22, 2004
39
0
156
What is the status on supporting PHP 5.1? We are currtently using PHP 5.0.4 which is currently supported by CPanel.

We have a problem with a particular vendor that had php 5 problems. They fixed the php 5 problems. But, php 5.1 is required for their php 5 fixes to work.

I'm not usually hot to get on the latest release. But, in this case, I'm seeing a lot of activity around php 5.1 because it apparently fixes a large number of php 5 problems. So, it appears that PHP 5.1 may be a special case in that it needs to be implemented quickly to resolve these issues.

So, we need to know when PHP 5.1 will be implemented.

We may have to buy another server and install Virtuozzo / Plesk on it so that we can support our customers requiring PHP 5.1.
 

cooldude7273

Well-Known Member
Jan 11, 2004
357
0
166
Roswell, GA
Many are waiting on cPanel for PHP 5.1 also, but CP people have never been good on supporting anything remotely close to its release date. Example: we're still on MySQL 4.1.14 and the latest phpbb is 2.0.18, which contains security problems. It should be in by the time PHP 5.1.6 is out or so.
 

MMarko

Well-Known Member
Apr 18, 2005
316
0
166
cooldude7273 said:
the latest phpbb is 2.0.18, which contains security problems
Which are not critical. As they said on their page this is cosmetic build, not security.

I've seen available exploits for 2.0.18 and they're based on brute forcing.
 

celliott

Well-Known Member
Jan 2, 2006
459
0
166
United Kingdom
You say we are still on MySQL 4.1, well most of us are on 4.0.25. 4.1x is not completely stable so who knows what stage MySQl 5x is at...
 

hostricity

Active Member
Jun 22, 2004
39
0
156
How about some real information on PHP 5.1

I'm really more inteersted in knowing about when PHP 5.1 will be available than sniping at Cpanel.

I'm also interested in comments about whether PHP 5.1 really is an especially important update as my vendor has asserted and I mentioned in my original post.
 

NT

Well-Known Member
May 4, 2004
137
0
166
England, UK
Hi,

I would say PHP 5.1 is especially important if you're running PHP 5.0.X, as it fixes a number of issues with early PHP5 releases.

If you're running PHP 4.4.1 though, I don't see any major need to update to PHP 5.1 unless you need/want the added features and better OOP framework.

Thanks,
Nick.
 

umutbesler

Active Member
Jul 23, 2005
34
0
156
celliott said:
You say we are still on MySQL 4.1, well most of us are on 4.0.25. 4.1x is not completely stable so who knows what stage MySQl 5x is at...
Hi,

You said that 4.1x is not completely stable but on mysqls site they say:

MySQL 5.1 -- Alpha release
MySQL 5.0 -- Generally Available (GA) release (recommended)
MySQL 4.1 -- Generally Available (GA) release
Older releases -- older releases

Their recommended release is 5.0.x and they are not saying 4.1 is not stable.
The other important thing is mysql 4.1 has a lot of new features than 4.0.
 

typhon

Well-Known Member
Feb 17, 2004
65
0
156
umutbesler said:
Hi,

You said that 4.1x is not completely stable but on mysqls site they say:

MySQL 5.1 -- Alpha release
MySQL 5.0 -- Generally Available (GA) release (recommended)
MySQL 4.1 -- Generally Available (GA) release
Older releases -- older releases

Their recommended release is 5.0.x and they are not saying 4.1 is not stable.
The other important thing is mysql 4.1 has a lot of new features than 4.0.
He ment on the control panel. CPanel implements things a little strangely. I am wondering if anyone has looked into creating there own build of PHP with Apache and updating MySQL without encountering problems.

I am thinking about ditching the control panel all together as it always keeps me behind in the web development world. As much as Cpanel automates it also creates that many problems. CPanel doesn't seem as focused driven towards stability instead is more feature and money based as most companies are. If you look around at the smaller control panel companies aka directadmin they seem to be on the ball.. Looking at their forum it seems like they had it in November of 2005.

I figure a control panel shouldn't be that hard to build for one platform so I am going to go down that route eventually to keep all of my own stuff going :)
 

hostricity

Active Member
Jun 22, 2004
39
0
156
Yes. We are running PHP 5 now.

Vorx said:
Hi,

I would say PHP 5.1 is especially important if you're running PHP 5.0.X, as it fixes a number of issues with early PHP5 releases.

If you're running PHP 4.4.1 though, I don't see any major need to update to PHP 5.1 unless you need/want the added features and better OOP framework.

Thanks,
Nick.
We are running PHP 5.0.4 (Or, whichever is the current CPanel latest).

I am glad to see that you confirm my assertion that 5.1 is major fix for php5 and so should be made available quickly.
 

ninjatech

Registered
Mar 29, 2005
3
0
151
Huge list of bug fixes in 5.1, it would be nice if we could get this sometime soon. As a programmer myself I like to keep with the current practices and so had to goto php 5.05 for the better OOP support. Having 5.11 would be really nice. Is CPANEL just not getting enough money to hire enough folks to keep updates resonably timely?
 

stasd

Active Member
Sep 22, 2003
33
0
156
USA
It's much more simpler to compile it by yourself if you want the latest version
Agree, but I pay to cpanel not for my work and I have a lot more then 1 server, so it's take a hole day. Sorry I didn't see PHP 4.4.2 released yesterday. Will wait. Support PHP 5.1.2 it's good idea I wont try it on new server.

P.S. Zend Optimizer support for PHP 5.1 http://www.zend.com/store/products/zend-optimizer.php
 
Last edited:

typhon

Well-Known Member
Feb 17, 2004
65
0
156
MeGaMASTER said:
It's much more simpler to compile it by yourself if you want the latest version.
Do you know if there is any thing specific that needs to be done to make it so cpanel doesn't break by the upgrade? Otherwise I am going to do a manual upgrade tonight to 5.1 :)
 

MeGaMASTER

Well-Known Member
May 24, 2003
49
0
156
Ok follow these steps:

INSTALL Zend Optimizer 2.6

1. Download the latest ZO

2. Extract the archive using

tar xzf ZendOptimizer-*
3. Enter the extracted archive's directory

cd ZendOptimizer-*
4. Install ZO and follow instruction on screen.

./install.sh

INSTALL PHP 5.1

1. Create a php file with <? phpinfo( -1 ); ?> in it and upload to your server.

2. Access it from your browser and copy and paste the configure command section into a blank file. It might look something like this:

'./configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml' '--with-libxml-dir=/usr/bin' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--with-mysql=/usr' '--with-pear' '--enable-sockets' '--enable-track-vars' '--with-zlib' '--with-zlib-dir=/usr/local/lib' '--with-curl=/usr/local/lib' '--with-mcrypt=/usr/local/lib' '--with-gd' '--with-png-dir=/usr/lib' '--enable-mbstring' '--with-xsl'
3. Strip all single quotation marks from the configure command make it look as the following:

./configure --with-apxs=/usr/local/apache/bin/apxs --with-xml --with-libxml-dir=/usr/bin --enable-bcmath --enable-calendar --enable-ftp --with-mysql=/usr --with-pear --enable-sockets --enable-track-vars --with-zlib --with-zlib-dir=/usr/local/lib --with-curl=/usr/local/lib --with-mcrypt=/usr/local/lib --with-gd --with-png-dir=/usr/lib --enable-mbstring --with-xsl
4. Save the file as 'phpcompile' on your drive as we will be using it later.

5. Download the latest PHP5 tar.gz archive to your server, you can use the following command:

6. Extract the archive using

tar xzf php-5.1.2.tar.gz
7. Enter the extracted archive's directory

cd php-5.1.2
8. Copy your 'phpcompile' file into this directory, make it executable, configure, compile, and then install:

chmod 700 phpcompile
./phpcompile
make clean
make
make install
9. Restart Apache for the new php version to take effect. Check the phpinfo page for the result.


Ref: http://auraclesupport.com/?affid=45

NOTE: To save your time, you may now use the same 'phpcompile' file for all your servers. Also note if you are going to install Zend Optimizer 2.6, don't compile PHP with --enable-versioning as ZO is not compatible with it.
 
Last edited:

typhon

Well-Known Member
Feb 17, 2004
65
0
156
wow i figured i was going to have to recompile apache :) nice to not have to do that again.

although the installation steps are somewhat wrong on that.... zend optimizer should be installed last otherwise there can be conflicts between versions.
 

MeGaMASTER

Well-Known Member
May 24, 2003
49
0
156
Not really, installing php manually will not overwrite your php.ini and installing Zend Optimizer will just change the installation path and version number in this file.
 

typhon

Well-Known Member
Feb 17, 2004
65
0
156
MeGaMASTER said:
Not really, installing php manually will not overwrite your php.ini and installing Zend Optimizer will just change the installation path and version number in this file.
my reason for saying that is php when making its extensions for itself does a phpize command against php. this makes it bind to that version of php specifics. it may do it differently now days but back in the earlier versions it did this type of command :)
 

Sinewy

Well-Known Member
May 15, 2004
364
1
168
Sydney, Australia
cPanel Access Level
DataCenter Provider
typhon said:
Do you know if there is any thing specific that needs to be done to make it so cpanel doesn't break by the upgrade? Otherwise I am going to do a manual upgrade tonight to 5.1 :)
Nup. PHP runs independent of cPanel - unless it is the built-in cPanel one.

Regards,
Alan