Help - Search - Members - Calendar
Full Version: Easy PHP 5.2.0 for Ensim 4.1/X
The Planet Forums > Control Panels > Ensim > Ensim HOWTOs
gpan
The PHP development team is proud to announce the immediate release of PHP 5.2.0. This release is a major improvement in the 5.X series, which includes a large number of new features, bug fixes and security enhancements.

The key features of PHP 5.2.0 include:

* New memory manager for the Zend Engine with improved performance and a more accurate memory usage tracking.
* Input filtering extension was added and enabled by default.
* JSON extension was added and enabled by default.
* ZIP extension for creating and editing zip files was introduced.
* Hooks for tracking file upload progress were introduced.
* Introduced E_RECOVERABLE_ERROR error mode.
* Introduced DateTime and DateTimeZone objects with methods to manipulate date/time information.
* Upgraded bundled SQLite, PCRE libraries.
* Upgraded OpenSSL, MySQL and PostgreSQL client libraries for Windows installations.
* Many performance improvements.
* Over 200 bug fixes.

Build note: GD is shared and php-gd required for GD usage.

RHEL 4 compatible packages are available at the following link.

http://mirror.cheetaweb.com/redhat/4ES/i38...386/RPMS.php52/
arniemar
Excellent! Thank you very much.
mlx
Thanks gpan! Works like a charm icon_smile.gif
CyberSEAL
I know to use rpm -Uvh however are there any other instructions for installing this on a Pro X machine? I'm getting dependency errors right off the bat. Any particular order I should apply these in? Thanks!
alsal
I get dependency errors for mcrypt and mhash. Also, is JSON enabled? or has it been manually disabled.
mysticeti
Alsal, the base post states that...

QUOTE
* JSON extension was added and enabled by default.


But I have not verified that myself.

Cheers.
alsal
QUOTE (mysticeti)
Alsal, the base post states that...

But I have not verified that myself.

Cheers.


That's just a copy & paste from the PHP 5.2 announcement:

http://www.php.net/releases/5_2_0.php

Doesn't mean these rpm's were compiled with it enabled which is what I found out after I installed it:
'--disable-json' is actually in the configure command. You can see it with phpinfo();

I think I'd better compile my own PHP from now on.
alsal
Although there's a pear extension/class for JSON, a client on my machine was requesting the php functions for JSON to get his script working.

I found out JSON is a pecl extension and installed it using
#pecl install json

then I added extension=json.so to my php.ini file - restart apache and it all works dandy.

Thanks GPAN, again your time is much appreciated. But could you please fill me in as to why you had to disable it in the configure command?
!aborabi
If you need sqlite libs (like I did) get them from

http://rpm.involution.com/sqlite3/
mazza
will this break squirrel mail
nrr
What about php-pear?
dalma
Any plans for a redhat 3ES version of your PHP package?
mv_
how can I add mcrypt to my php installed by this how-to ?
Aldo
QUOTE (dalma @ Jan 7 2007, 06:59 PM) *
Any plans for a redhat 3ES version of your PHP package?



two!!
skeeter1jd
Considering they are on a beta 2 for RHEL 5, I wouldn't be too hopeful.
dalma
How do we get the php-pear version? I am getting dependency errors for php-pear.

Thanks
guggigrummel
Installed the PHP 5.2 packages.
php.ini seems to be okay.
Restarted httpd.
But the browser still shows PHP Version 4.3.9 (phpinfo()icon_wink.gif.

Can anyone help?
Cheers
skeeter1jd
you have to edit the httpd.conf file and tell it to use php5. You will have to do the same thing for the sites.
Aldo
Hi Gpam,


i install yours rpm in my box, Ensim X 10.2 rhel 4 php 5.2.0 MySQL 4.1.20 and working ok!!

BUT... in file error_log ( /home/virtual/domain.com/var/log/httpd/error_log ) exist this error

QUOTE
[Mon Feb 19 06:32:24 2007][error] [client 65.55.210.94] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/pdo_mysql.so' - /usr/lib/php/modules/pdo_mysql.so: undefined symbol: pdo_raise_impl_error in Unknown on line 0


Can anyone help?
mlx
QUOTE (Aldo @ Feb 19 2007, 11:43 PM) *
Hi Gpam,
i install yours rpm in my box, Ensim X 10.2 rhel 4 php 5.2.0 MySQL 4.1.20 and working ok!!

BUT... in file error_log ( /home/virtual/domain.com/var/log/httpd/error_log ) exist this error
Can anyone help?


You might want to try:
CODE
cp -fR /usr/lib/php/modules /home/virtual/domain.com/usr/lib/php
Micki
I am running RHEL 4ES, Ensim 4.1.0-8, php 4.3.9, MySQL 4.1.20. My problem is that gd is not working. In trying to cure that, I tried to install php5.

I followed gpan's instructions. It said I needed some libsqlite files so I got them. THen it said php=4.3.9-3.22.3 is needed by php-pear-4.3.9-3.22.3.i386

I ran up2date and it finds no updates. I ran up2date php-mysql and it says already updated
I ran up2date php-gd and it says already updated.

I tried to update using yum from http://3ES.atomicrocketturtle.com/atomic/art/4ES/ and it can't find the address

I need to run GD for Cubecart for a new customer.
I've read hundreds of threads and haven't been able to fix it.

Help anyone?
Thanks
AdamS
QUOTE (Micki @ Mar 25 2007, 10:12 PM) *
I am running RHEL 4ES, Ensim 4.1.0-8, php 4.3.9, MySQL 4.1.20. My problem is that gd is not working. In trying to cure that, I tried to install php5.

I followed gpan's instructions. It said I needed some libsqlite files so I got them. THen it said php=4.3.9-3.22.3 is needed by php-pear-4.3.9-3.22.3.i386

I ran up2date and it finds no updates. I ran up2date php-mysql and it says already updated
I ran up2date php-gd and it says already updated.

I tried to update using yum from http://3ES.atomicrocketturtle.com/atomic/art/4ES/ and it can't find the address

I need to run GD for Cubecart for a new customer.
I've read hundreds of threads and haven't been able to fix it.

Help anyone?
Thanks


CODE
rpm -e php-pear


Next, re-run rpm update
PV-Patrick
QUOTE (AdamS @ May 3 2007, 02:18 AM) *
CODE
rpm -e php-pear


Next, re-run rpm update



That doesn't seem to work for me, I keep getting the following error:
error: Failed dependencies:
php = 4.3.9-3.22.5 is needed by (installed) php-pear-4.3.9-3.22.5.i386


Any suggestions?
skillarchy
error: Failed dependencies:
libsqlite3.so.0 is needed by php-pdo-5.2.0-1.rhel4.ct.i386
?

I search hi and low for the libsqlite3
skillarchy
Now that i got sqlite i am getting the following error.

file /etc/httpd/conf.d/php.conf from install of php-5.2.0-1.rhel4.ct conflicts with file from package php-4.3.9-3.22.9
file /etc/php.ini from install of php-5.2.0-1.rhel4.ct conflicts with file from package php-4.3.9-3.22.9
file /usr/bin/php from install of php-5.2.0-1.rhel4.ct conflicts with file from package php-4.3.9-3.22.9
file /var/www/icons/php.gif from install of php-5.2.0-1.rhel4.ct conflicts with file from package php-4.3.9-3.22.9
plattapuss
If I need mcrypt towork, what can I do? Is there a way to install it even though gpan doesn't have the rpm for it on his site?
skeeter1jd
http://dag.wieers.com/rpm/packages/libmcrypt/
plattapuss
Thanks, but...

CODE
# rpm -Uvh libmcrypt-2.5.7-1.2.el4.rf.i386.rpm
warning: libmcrypt-2.5.7-1.2.el4.rf.i386.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing...                ########################################### [100%]
        package libmcrypt-2.5.7-1.2.el4.rf is already installed


I installed the devel package though. I am missing something else me thinks. I installed gpan's 5.2.0 which has no php-mcrypt rpm. Not sure if this is doable. Except I have a few sites which require it.
plattapuss
Okay, so after another hour or so of searching, I found out how to get mcrypt working even though gpan didn't include an rpm. With a lot of help from http://forum.ensim.com/archive/index.php?t-10029.html here is what I did:

Downloaded the source code for php 5.2.0 to match gpan's RPM's.
Made sure libcrypt was installed from http://dag.wieers.com/rpm/packages/
Downloaded the mcrypt source from sourceforge.

Then built mcrypt with ./configure make and make install.
Then:
cd to php-5.2.0/ext/mcrypt
phpize
aclocal
./configure
make clean
make
make install

Then I add mcrypt.ini to /etc/php.d which contains:
-------
; Enable mbstring extension module
extension=mcrypt.so
-------


Restarted apache and it works great! Thanks skeeter1jd for your push in the right direction. More thorough instructions will appear at my site outofcontrol.ca shortly.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.