Help - Search - Members - Calendar
Full Version: Easy PHP 5.1.5 for Ensim 4/Ensim X
The Planet Forums > Control Panels > Ensim > Ensim HOWTOs
gpan
Packages are now available for RHEL 4/ CentOS 4 -

PHP 5.1.5 resolves a number of security issues. This also adds a number of extensions to the package including bcmath and MySQLi support.

RHEL 4/ CentOS 4 packages:

http://mirror.cheetaweb.com/redhat/4ES/i386/RPMS.php51

Don't forget to install php-pear-1.4.9. The pear package has been decoupled from the PHP version but is a required dependency.

Some extensions may need packages from dag.wieers.com/packages as dependencies. These include mcrypt (libmcrypt) and mhash (libmhash)

Feel free to contact me with any questions, or if you need help.
alsal
Thanks Gpan!

Is php-gd included in there? I don't see php-gd in the list for 5.1.5 and I'm sure I need it for some sites that use the gd library in their php scripts.
.:Q:.
according to posts by Ensim, PHP 5.1.x is not supported by Ensim and does have issues. Sounds like PHP 5.0.4/5 is the supported and working version of the 5.x tree.

http://forum.ensim.com/showthread.php?t=16837
gpan
GD is rolled into the main binary as too many times ensim misses php-gd package.

These are backported to RHEL 4/ CentOS 4 tree and should work fine. Also 5.0 is insecure and dangerous.
alsal
libsqlite3.so.0 is needed by php-pdo-5.1.5-1.2.rhel4.ct.i386

where to we get sqlite3 ?

php-pdo is needed by php-mysql
alsal
QUOTE (gpan)
GD is rolled into the main binary as too many times ensim misses php-gd package.

These are backported to RHEL 4/ CentOS 4 tree and should work fine. Also 5.0 is insecure and dangerous.


'--without-gd'

is what my phpinfo() now says about the configure options.

there is no gd support and half the sites on my box are not working correctly with images that are manipulated on the fly....
gpan
Is this high security mode site or no? I'll put out a fixed rpm shortly.
alsal
QUOTE (gpan)
Is this high security mode site or no?


Not a high security site.

Why would the configure command say '--without-gd' ?

Did you rebuild the php rpm after posting it?
gpan
A new build (5.1.5-1.3) is on the mirror and fixes the gd issue.
alsal
QUOTE (gpan)
A new build (5.1.5-1.3) is on the mirror and fixes the gd issue.


Thanks G!

installed and works perfectly.

Just a quick note that this php-common build will rename your php.ini file and install a new one. Thereby making all your settings revert to default. especially if you have Zend optimizer installed and the php.ini file is simply a symlink.

Other than the added [MySQLi] section in the new ini file, I didn't see any other changes. So I just copied this section to my /usr/local/Zend/etc/php.ini file and

#mv /etc/php.ini.rpmsave /etc/php.ini

to revert the php-common changes.
MoFlow
How about the RPMs for us RHEL 3 users icon_sad.gif?

Thanks as always gpan, for your great contribution!
!aborabi
QUOTE (alsal)
libsqlite3.so.0 is needed by php-pdo-5.1.5-1.2.rhel4.ct.i386

where to we get sqlite3 ?

php-pdo is needed by php-mysql



I have same problem?

rpm -Uvh php*
error: Failed dependencies:
libsqlite3.so.0 is needed by php-pdo-5.1.5-1.3.rhel4.ct.i386

Where I can get this libsqlite ???
alsal
Looks like you don't have squlite3 installed. I tried to build it from source from the sqlite website but it failed so I did a google search for an RPM and found one.

Don't remember where but you should search for and install one that is built for your OS.
!aborabi
I tried to find it but I failed. can you give me link to the sqlite rpm? Thanks
alsal
QUOTE (!aborabi)
I tried to find it but I failed. can you give me link to the sqlite rpm? Thanks

all I did was type sqlite3 rpm in google and came up with this link.

http://rpm.involution.com/sqlite3/

I'm not sure if this is the one I used or if it's appropriate for your server OS. I don't know what you are running.

Good Luck
cyberlot
how can I get new ear packages to be added into the file system, I have adjusted my apache.custom.sh file but thats for packages only.
cyberlot
pear.conf is messed up, having a lot of problems getting pear to work properly with this build
mazza
doesnt this break squieralmail
cyberlot
Don't really care icon_wink.gif this isn't for normal customer user.
mazza
cyberlot : my question was not directed to you i just wanted to know if i can upgrade this but it will break my ensim icon_smile.gif
gpan
Did you install php-pear package?
sruli
I'm trying this on Ensim X with Centos 4.3...

warning: package php = 5.1.1-1.1.rhel4.ct was already added, replacing with php <= 5.1.5-1.3.rhel4.ct
warning: package php = 5.1.5-1.3.rhel4.ct was already added, replacing with php <= 5.1.6-1.1.rhel4.ct
warning: package php-bcmath = 5.1.1-1.1.rhel4.ct was already added, replacing with php-bcmath <= 5.1.5-1.3.rhel4.ct
warning: package php-bcmath = 5.1.5-1.3.rhel4.ct was already added, replacing with php-bcmath <= 5.1.6-1.1.rhel4.ct
warning: package php-cli = 5.1.5-1.3.rhel4.ct was already added, replacing with php-cli <= 5.1.6-1.1.rhel4.ct
warning: package php-common = 5.1.5-1.3.rhel4.ct was already added, replacing with php-common <= 5.1.6-1.1.rhel4.ct
warning: package php-dba = 5.1.1-1.1.rhel4.ct was already added, replacing with php-dba <= 5.1.5-1.3.rhel4.ct
warning: package php-dba = 5.1.5-1.3.rhel4.ct was already added, replacing with php-dba <= 5.1.6-1.1.rhel4.ct
warning: package php-devel = 5.1.1-1.1.rhel4.ct was already added, replacing with php-devel <= 5.1.5-1.3.rhel4.ct
warning: package php-devel = 5.1.5-1.3.rhel4.ct was already added, replacing with php-devel <= 5.1.6-1.1.rhel4.ct
warning: package php-imap = 5.1.1-1.1.rhel4.ct was already added, replacing with php-imap <= 5.1.5-1.3.rhel4.ct
warning: package php-imap = 5.1.5-1.3.rhel4.ct was already added, replacing with php-imap <= 5.1.6-1.1.rhel4.ct
warning: package php-ldap = 5.1.1-1.1.rhel4.ct was already added, replacing with php-ldap <= 5.1.5-1.3.rhel4.ct
warning: package php-ldap = 5.1.5-1.3.rhel4.ct was already added, replacing with php-ldap <= 5.1.6-1.1.rhel4.ct
warning: package php-mbstring = 5.1.1-1.1.rhel4.ct was already added, replacing with php-mbstring <= 5.1.5-1.3.rhel4.ct
warning: package php-mbstring = 5.1.5-1.3.rhel4.ct was already added, replacing with php-mbstring <= 5.1.6-1.1.rhel4.ct
warning: package php-mcrypt = 5.1.1-1.1.rhel4.ct was already added, replacing with php-mcrypt <= 5.1.5-1.3.rhel4.ct
warning: package php-mcrypt = 5.1.5-1.3.rhel4.ct was already added, replacing with php-mcrypt <= 5.1.6-1.1.rhel4.ct
warning: package php-mhash = 5.1.1-1.1.rhel4.ct was already added, replacing with php-mhash <= 5.1.5-1.3.rhel4.ct
warning: package php-mhash = 5.1.5-1.3.rhel4.ct was already added, replacing with php-mhash <= 5.1.6-1.1.rhel4.ct
warning: package php-mysql = 5.1.1-1.1.rhel4.ct was already added, replacing with php-mysql <= 5.1.5-1.3.rhel4.ct
warning: package php-mysql = 5.1.5-1.3.rhel4.ct was already added, replacing with php-mysql <= 5.1.6-1.1.rhel4.ct
warning: package php-ncurses = 5.1.1-1.1.rhel4.ct was already added, replacing with php-ncurses <= 5.1.5-1.3.rhel4.ct
warning: package php-ncurses = 5.1.5-1.3.rhel4.ct was already added, replacing with php-ncurses <= 5.1.6-1.1.rhel4.ct
warning: package php-odbc = 5.1.1-1.1.rhel4.ct was already added, replacing with php-odbc <= 5.1.5-1.3.rhel4.ct
warning: package php-odbc = 5.1.5-1.3.rhel4.ct was already added, replacing with php-odbc <= 5.1.6-1.1.rhel4.ct
warning: package php-pdo = 5.1.5-1.3.rhel4.ct was already added, replacing with php-pdo <= 5.1.6-1.1.rhel4.ct
warning: package php-pgsql = 5.1.1-1.1.rhel4.ct was already added, replacing with php-pgsql <= 5.1.5-1.3.rhel4.ct
warning: package php-pgsql = 5.1.5-1.3.rhel4.ct was already added, replacing with php-pgsql <= 5.1.6-1.1.rhel4.ct
warning: package php-snmp = 5.1.1-1.1.rhel4.ct was already added, replacing with php-snmp <= 5.1.5-1.3.rhel4.ct
warning: package php-snmp = 5.1.5-1.3.rhel4.ct was already added, replacing with php-snmp <= 5.1.6-1.1.rhel4.ct
warning: package php-soap = 5.1.1-1.1.rhel4.ct was already added, replacing with php-soap <= 5.1.5-1.3.rhel4.ct
warning: package php-soap = 5.1.5-1.3.rhel4.ct was already added, replacing with php-soap <= 5.1.6-1.1.rhel4.ct
warning: package php-xml = 5.1.1-1.1.rhel4.ct was already added, replacing with php-xml <= 5.1.5-1.3.rhel4.ct
warning: package php-xml = 5.1.5-1.3.rhel4.ct was already added, replacing with php-xml <= 5.1.6-1.1.rhel4.ct
warning: package php-xmlrpc = 5.1.1-1.1.rhel4.ct was already added, replacing with php-xmlrpc <= 5.1.5-1.3.rhel4.ct
warning: package php-xmlrpc = 5.1.5-1.3.rhel4.ct was already added, replacing with php-xmlrpc <= 5.1.6-1.1.rhel4.ct
error: Failed dependencies:
php = 5.1.1-1.1.rhel4.ct is needed by php-gd-5.1.1-1.1.rhel4.ct.i386
php = 5.1.1-1.1.rhel4.ct is needed by php-pear-5.1.1-1.1.rhel4.ct.i386

EDIT: clarification: I took everything in
http://mirror.cheetaweb.com/redhat/4ES/i38...386/RPMS.php51/
and installed with rpm -Uvh *.rpm, that's how I got the above message.

Any idea what I'm doing wrong?
gpan
You only rpm -Uvh the version (and packages) you are installing and php-pear.

i.e. rpm -Uvh php-5.1.6* php-pear*

You also only need to download the files for 5.1.6 and php-pear (1.4.9). Older packages are kept there as not everyone is always running the latest version.
sureshriv
My sever currently has php-4.3.9-3.15 can I upgrade directly to 5.1.5 or do I need to install the other versions first? I have Ensim X.
Serveis
Thank you GPAN, you are doing a very good work!!!
My upgrade has been OK. Just install php-pear, sqlite3, and then rpm -Uvh...
alsal
# pear list
Content-type: text/html

ERROR: The default config file is not a valid config file or is corrupted.




I have php-pear-1.4.9-1 installed
php 5.1.5
Any suggestions?
Clovenlife
doing this update broke ImageMagick. how can I get it working again?
gpan
How did it break imagick?
Clovenlife
sorry for being vauge. its not showing up on the phpinfo page, but i know Imagemagick/magicwand was installed with ensim pro and was working before, and the files are all still in place, php just isn't seeing it. I was just hoping theres a way to fix it without having to reinstall php using the old method and lose the use of your rpms.
gpan
You will have to compile/install imagick extension separately. It is not part of the package.
AdamS
QUOTE (Clovenlife)
sorry for being vauge. its not showing up on the phpinfo page, but i know Imagemagick/magicwand was installed with ensim pro and was working before, and the files are all still in place, php just isn't seeing it. I was just hoping theres a way to fix it without having to reinstall php using the old method and lose the use of your rpms.


http://forum.ev1servers.net/showthread.php?t=60240
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.