Help - Search - Members - Calendar
Full Version: HOWTO: PHP 4.3.2 on Ensim 3.1/ Pro 3.5
The Planet Forums > Control Panels > Ensim > Ensim HOWTOs
Pages: 1, 2, 3, 4, 5
gpan
THIS IS AN OLDER RELEASE. This post has been superseded by:

http://forum.rackshack.net/showthread.php?...&threadid=31108

Thank you!

This maintenance release solves a lot of bugs found in earlier PHP versions and is a strongly recommended upgrade for all users of PHP.
Bugfix release

PHP 4.3.2 contains, among others, following important fixes, additions and improvements:

* Fixes several potentially hazardous integer and buffer overflows.
* Fixes for several 64-bit problems.
* New Apache 2.0 SAPI module (sapi/apache2handler, enabled with --with-apxs2).
* New session_regenerate_id() function. (Important feature against malicious session planting).
* Improvements to dba extension.
* Improvements to thttpd SAPI module.
* Dropped support for GDLIB version 1.x.x (php_gd.dll) on Windows.
* An unix man page for CLI version of PHP.
* New "disable_classes" php.ini option to allow administrators to disable certain classes for security reasons.
* ..and a HUGE amount of other bug fixes!

We have published RPM's that are compatible with both Ensim 3.1 and Ensim Pro 3.5. These can be downloaded from:

http://www.webppliance.info

You will need to use sablotron 0.98 RPM"s for XSLT support. This is to reduce the number of duplicate / conflicting RPM's that were associated with the older sablotron packages that we were using.

Please uninstall the sablotron 0.96 rpm's if they are installed. These include sablotron-static.
zorafex
rror: failed dependencies:
libtds.so.0 is needed by php-4.3.2-1.72.1ct
freetds is needed by php-mssql-4.3.2-1.72.1ct
libsybdb.so.1 is needed by php-mssql-4.3.2-1.72.1ct
sablotron > 0.97 is needed by php-xslt-4.3.2-1.72.1ct
libjs.so is needed by php-xslt-4.3.2-1.72.1ct

I have sablontron installed.. or atleast i thought i did.
Rich2k
libjs is a common failing with XSLT. THe only way I found to fix it was to install sablotron from source instead of rpms

BTW anyone else finding problems with fread() cutting out after a certain number of bytes when reading remote files (no matter what you put in as the length) with PHP 4.3.2. I had to edit all my code to use shell_exec()
patord
For Ensim 3.5 folks, just a reminder that high security sites are still STUCK on PHP 4.2.2 unless gpan or someone else has a solution.
Dreamer
Tryed to install on 3.1. Had to install Sablotron - downloaded:

http://download-2.gingerall.cz/download/sa...0.98-1.i386.rpm
http://download-2.gingerall.cz/download/sa...0.98-1.i386.rpm

When installing it wants expat and js. Installed updated version for both. Now trying to install sablotron again and got:

[root@hosting updates]# rpm -Uvh sablotron-*
error: failed dependencies:
sablotron-devel = 0.96 is needed by sablotron-static-0.96-1

There's no static rpm at sablotron's website. Can I use the old 96 static rpm by gpan together with the above two 98 rpms?
dennis00
[root@server01 php]# rpm -Uvh php-4.3.2-1.72.1ct.i386.rpm
error: failed dependencies:
libtds.so.0 is needed by php-4.3.2-1.72.1ct
php = 4.3.1-1.72.1ct is needed by php-ftp-4.3.1-1.72.1ct
php = 4.3.1-1.72.1ct is needed by php-gettext-4.3.1-1.72.1ct
php = 4.3.1-1.72.1ct is needed by php-imap-4.3.1-1.72.1ct
php = 4.3.1-1.72.1ct is needed by php-ldap-4.3.1-1.72.1ct
php = 4.3.1-1.72.1ct is needed by php-manual-4.3.1-1.72.1ct
php = 4.3.1-1.72.1ct is needed by php-mysql-4.3.1-1.72.1ct
php = 4.3.1-1.72.1ct is needed by php-pgsql-4.3.1-1.72.1ct
php = 4.3.1-1.72.1ct is needed by php-snmp-4.3.1-1.72.1ct
php = 4.3.1-1.72.1ct is needed by php-sysvsem-4.3.1-1.72.1ct
php = 4.3.1-1.72.1ct is needed by php-sysvshm-4.3.1-1.72.1ct
[root@server01 php]#
jread2
QUOTE
Originally posted by patord
For Ensim 3.5 folks, just a reminder that high security sites are still STUCK on PHP 4.2.2 unless gpan or someone else has a solution.

I'm actually working on a solution, but can't make any promises. We'll see how it goes.

-J
morsee
Nevermind...im getting there...
chielsen
Are there rpms for cpanel?
Rich2k
QUOTE
Originally posted by Dreamer
Tryed to install on 3.1. Had to install Sablotron - downloaded:

http://download-2.gingerall.cz/download/sa...0.98-1.i386.rpm
http://download-2.gingerall.cz/download/sa...0.98-1.i386.rpm

When installing it wants expat and js. Installed updated version for both. Now trying to install sablotron again and got:

[root@hosting updates]# rpm -Uvh sablotron-*
error: failed dependencies:
       sablotron-devel = 0.96 is needed by sablotron-static-0.96-1

There's no static rpm at sablotron's website. Can I use the old 96 static rpm by gpan together with the above two 98 rpms?


Can you use the sablotron source instead of RPM (I know you can without modification for a PHP source installation but I've never used RPM PHP). This will solve most sablotron problems for PHP installations.
gpan
Remove the old rpm's.

Specfically sablotron-static via rpm -e . This rpm is actually a part of the sablotron-devel package from gingerall and conflicts with both the 3.5 install and the newer PHP packages (I have made my packages more 3.5 upgrade friendly)
jread2
which libjs RPM(s) are needed and what is the official website for them?
Dreamer
QUOTE
Originally posted by gpan
Remove the old rpm's.  

Specfically sablotron-static via rpm -e . This rpm is actually a part of the sablotron-devel package from gingerall and conflicts with both the 3.5 install and the newer PHP packages (I have made my packages more 3.5 upgrade friendly)


Thanks, that worked. Now i get:

QUOTE
[root@hosting updates]# rpm -Uvh php-*
error: failed dependencies:          
libtds.so.0   is needed by php-4.3.2-1.72.1ct
freetds is needed by php-mssql-4.3.2-1.72.1ct          
libsybdb.so.1   is needed by php-mssql-4.3.2-1.72.1ct

I'll see what i can do by myself to fix this. Thanks icon_smile.gif
Dreamer
If i have to install freeds is these RPMs (for intel, i386, distro not specified) suitable:
http://ibiblio.org/pub/Linux/ALPHA/freetds...0.61-2.i386.rpm
http://ibiblio.org/pub/Linux/ALPHA/freetds...0.61-2.i386.rpm

I am afraid to harm something icon_smile.gif
gpan
Unless you need remote Microsoft SQL server support; just delete the php-mssql rpm

Geoff
Dreamer
QUOTE
Originally posted by gpan
Unless you need remote Microsoft SQL server support; just delete the php-mssql rpm

Geoff


Deleted, but still:

QUOTE
error: failed dependencies:        
libtds.so.0   is needed by php-4.3.2-1.72.1ct
gpan
Use the freetds rpm's on http://www.webppliance.info
Dreamer
Yupee. All fine now. Forget to check Webppliance.info's old news for freetds rpms. Thank you very much.
jread2
I still haven't found the js packages. Any hints?
hilliked
QUOTE
I still haven't found the js packages. Any hints?


I found them linked from the Sablotron site...

wget http://download-2.gingerall.cz/download/re...5rc4-2.i386.rpm
wget http://download-2.gingerall.cz/download/re...5rc4-2.i386.rpm

I also found the expat needed here

wget http://unc.dl.sourceforge.net/sourceforge/...95.6-1.i386.rpm

but when I try to install I get

QUOTE
rpm -Uvh php-*
       error: failed dependencies:
       sablotron > 0.97 is needed by php-xslt-4.3.2-1.72.1ct
       libjs.so   is needed by php-xslt-4.3.2-1.72.1ct
       libsablot.so.0   is needed by php-xslt-4.3.2-1.72.1ct


So I tried to install Sablotron and got this

QUOTE
rpm -Uvh sablotron-*
       error: failed dependencies:
       expat >= 1.95.2 is needed by sablotron-0.98-1
       js >= 1.5 is needed by sablotron-0.98-1
       libjs.so   is needed by sablotron-0.98-1


Since I didn't think I needed the XSLT support, I did this

QUOTE
rm -d php-xslt-4.3.2-1.72.1ct.i386.rpm


then the PHP installed fine. Everything seems to be running fine atm...but maybe someone can tell me what did I break by removing the XSLT support? Will it effect Ensim 3.1 or any standard PHP stuff? I figured it was a third party thing that I didn't really need anyway, but could be horribly worng. You know us guys and plunging straight ahead and trying to fix it on our own :o
eXplosive
What is the command to remove the old Sablotron rpms?

Edit: Found out how.
Dreamer
i did only:

rpm -e sablotron-static
chielsen
Hmm i got a buch of errors:

libtds.so.0 is needed by php-4.3.2-1.72.1ct
libmysqlclient.so.10 is needed by php-mysql-4.3.2-1.72.1ct
php = 4.3.2-1.73.1ct is needed by php-pgsql-4.3.2-1.73.1ct
php = 4.3.2-1.73.1ct is needed by php-snmp-4.3.2-1.73.1ct
php = 4.3.2-1.73.1ct is needed by php-sysvsem-4.3.2-1.73.1ct
php = 4.3.2-1.73.1ct is needed by php-sysvshm-4.3.2-1.73.1ct
char
Upgrading from PHP 4.3.1 (gpan release), had to download JS/Sablotron for XSLT.

To save some searching, here's the official download pages:

JS 1.5

http://www.gingerall.com/charlie/ga/xml/d_related.xml

Sablotron 0.98

http://www.gingerall.com/charlie/ga/xml/d_sab.xml

Otherwise upgrade was fine.
foggy
worked fantasticly

[root@secure php]# php -v
PHP 4.3.2 (cli) (built: May 29 2003 18:37:01)
Copyright © 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright © 1998-2003 Zend Technologies
Proetorian
I did two PHP 4.3.2 updates; one from source (prior to gpan releasing his rpms) and the other using gpan's rpms. I had success with both updates.

A note from the gpan rpm update is I had to update the following via rpm prior to updating PHP:

- expat
- libtds.so.0 via freetds
- js
- sablotron

After that everything went very smoothly on the Ensim 3.1 server.

Thanks gpan.
irs
[root@server php]# rpm -Uvh php*.rpm
error: failed dependencies:
libmysqlclient.so.10 is needed by php-mysql-4.3.2-1.72.1ct
[root@server php]# ldconfig -p | grep libmysql
libmysqlclient_r.so.12 (libc6) => /usr/lib/libmysqlclient_r.so.12
libmysqlclient_r.so (libc6) => /usr/lib/libmysqlclient_r.so
libmysqlclient.so.12 (libc6) => /usr/lib/libmysqlclient.so.12
libmysqlclient.so.10 (libc6) => /usr/lib/libmysqlclient.so.10
libmysqlclient.so (libc6) => /usr/lib/libmysqlclient.so
[root@server php]#

I have mysql4 does anyone know howto install php-mysql-4.3.2-1.72.1ct with mysql4 libs?
LangTuDaTinh
please help

expat = 1.95.1 is needed by expat-devel-1.95.1-7

while installing expat-1.95.2-1.i686.rpm
Proetorian
QUOTE
Originally posted by LangTuDaTinh
please help

expat = 1.95.1 is needed by expat-devel-1.95.1-7

while installing expat-1.95.2-1.i686.rpm


Delete expat-devel-1.95.1-7 first as foolows:

rpm -e expat-devel-1.95.1-7

Then, you can update your expat rpm via rpm -Uvh expat*
phima
This is the only one I can't figure out:

rpm -Fvh *
error: failed dependencies:
php = 4.2.2-2ensim7 is needed by php-mysql-4.2.2-2ensim7
Shoplift
FYI I did install this and it seems ok from the CLI:

[root@contacts html]# php -v
PHP 4.3.2 (cli) (built: May 29 2003 19:16:37)
Copyright © 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright © 1998-2003 Zend Technologies


However I am getting Apache 304 errors when trying to load PHP pages.

Any thoughts?
phima
QUOTE
Originally posted by phima
This is the only one I can't figure out:

rpm -Fvh *
error: failed dependencies:
       php = 4.2.2-2ensim7 is needed by php-mysql-4.2.2-2ensim7


Yah im an idiot... Sorry all I didn't realize the mssql and mysql packages were different because im blind or something and had only downloaded one of them.

php-mssql-4.3.2-1.72.1ct.i386.rpm
php-mysql-4.3.2-1.72.1ct.i386.rpm


Thanks!
Nirans
I try to use this HOWTO to update my php but never success until I figure it out myself. This is for Ensim 3.1.x only.

First you have to download the new version of Sublotron , Expat , Freetds and JS

#mkdir pre_php4.3.2
#cd pre_php4.3.2
#wget http://download-2.gingerall.cz/download/sa...0.98-1.i386.rpm
#wget http://download-2.gingerall.cz/download/sa...0.98-1.i386.rpm
#wget http://umn.dl.sourceforge.net/sourceforge/...95.6-1.i386.rpm
#wget http://download-2.gingerall.cz/download/re...5rc4-2.i386.rpm
#wget http://download-2.gingerall.cz/download/re...5rc4-2.i386.rpm
#wget http://download.cheetaweb.com/freetds-0.60...60-2ct.i386.rpm
#wget http://download.cheetaweb.com/freetds-deve...60-2ct.i386.rpm
#cd ..

remove the old version of these rpm :

#rpm -e sablotron-static
#rpm -e sablotron-devel
#rpm -e expat-devel-1.95.1-7

It's time to rpm the new version :

#cd pre_php4.3.2
#rpm -Uvh js*.rpm
#rpm -Uvh freetds*.rpm
#rpm -Uvh expat*.rpm
#rpm -Uvh sablotron*.rpm
#cd ..

Remove file and directory
#rm -rf pre_php4.3.2

Now go for gpan HOWTO to update your PHP to 4.3.2.
stlracing
Nirans post worked great for me. He does have a spelling error on the rpm -e sablotron portion though. Other than that, it installed great.
devinh
Ok did the install.

Now apache does not know what to do with .php.

All php files do not work.
I have done a reboot along with httpd restart.

This is the same with the phpinfo page.

Help.

Devin
Nirans
QUOTE
Originally posted by stlracing
Nirans post worked great for me. He does have a spelling error on the rpm -e sablotron portion though. Other than that, it installed great.


Thank you stlracing. I'v already edited my post to correct it.
Coach
The upgrade from 4.3.1 is seemless, however if users are upgrading from PHP releases prior to this, they should install the RPM's needed from gpan's previous 4.3.1 how-to.

This will fix any problems with your box complaining about failed dependencies.

gpan's 4.3.1 how-to
hilliked
I still get this failed dependency and that was after all the updates that were advised

QUOTE
failed dependencies:
       php = 4.3.2-1.72.1ct is needed by php-pgsql-4.3.2-1.72.1ct
zeromtrx
Just out of curiosity... what is the best way to revert back to the stock 3.5 Pro PHP?
Mrav
Hello,


My Ensim is 3.1.10-1.

I install new PHP 4.3.2 rpm's and after that I have this problem.

Sablotron 0.98 not working :(

When I install packages, I received this :

Preparing... ########################################### [100%]
1:php ########################################### [ 7%]
2:php-devel ########################################### [ 15%]
3:php-ftp ########################################### [ 23%]
4:php-gettext ########################################### [ 30%]
5:php-imap ########################################### [ 38%]
6:php-ldap ########################################### [ 46%]
7:php-manual ########################################### [ 53%]
8:php-mysql ########################################### [ 61%]
9:php-pgsql ########################################### [ 69%]
10:php-snmp ########################################### [ 76%]
11:php-sysvsem ########################################### [ 84%]
12:php-sysvshm ########################################### [ 92%]
13:php-xslt ########################################### [100%]


I don't know if all it's ok, but only sablotron not working. And it's very important to me.

If you have some ideas, please help :(

I had upgraded

- expat
- libtds.so.0 via freetds
- js
- sablotron


and before install sablotron 0.98, i remove sablotron 0.96.

Best Regards,
Tsvetelin Yotov.
downsize
QUOTE
Originally posted by Nirans
Thank you stlracing. I'v already edited my post to correct it.


and then again with the rpm -Uvh Sablotron*.rpm line :-}

rpm -Uvh sablotron*.rpm <- case sensitive
Proetorian
QUOTE
Originally posted by Mrav
Hello,


My Ensim is 3.1.10-1.

I install new PHP  4.3.2 rpm's and after that I have this problem.

Sablotron 0.98 not working icon_sad.gif  

 
I don't know if all it's ok, but only sablotron not working. And it's very important to me.  

If you have some ideas, please help icon_sad.gif

I had upgraded  

- expat
- libtds.so.0 via freetds
- js
- sablotron


and before install sablotron 0.98, i remove sablotron 0.96.

Best Regards,
Tsvetelin Yotov.


Have you checked your sablotron version after the update? If not try:

rpm -qa | grep sablotron

In addition, have you restarted Apache? If not, try:

service httpd restart

I hope this helps.
Mrav
Thank's for reply, but not helping icon_sad.gif

rpm -qa | grep sablotron

sablotron-devel-0.98-1
sablotron-0.98-1


And I restart httpd many times.

Best Regards,
Tsvetelin Yotov
Proetorian
QUOTE
Originally posted by Mrav
Thank's for reply, but not helping icon_sad.gif  

rpm -qa | grep sablotron

sablotron-devel-0.98-1
sablotron-0.98-1


And I restart httpd many times.

Best Regards,
Tsvetelin Yotov


Can you post the errors you are getting?

Can you also post the expart version you are using via:

rpm -qa | grep expat

Note that Expat is the only mandatory dependency for Sablotron.


You can also browse through the Sablotron site for more information at:

http://www.gingerall.com/charlie/ga/xml/p_sab.xml
Mrav
Hello again icon_smile.gif

[root@srv05 root]# rpm -qa | grep expat
expat-1.95.6-1


Beleiv me, I readed all post about sablotron ( and php instalation icon_smile.gif and now i'm desperated.

Here is the error :

Fatal error: Call to undefined function: xslt_set_encoding() in /home/virtual/site168/fst/var/www/html/trio/inc/utility_functions.inc.phtml on line 45


Here is php config :

Configure Command './configure' 'i386-redhat-linux' '--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' '--prefix=/usr' '--with-config-file-path=/etc' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db3' '--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext=shared' '--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-mm' '--with-openssl' '--with-png' '--with-pspell' '--with-regex=system' '--with-xml' '--with-expat-dir=/usr' '--enable-xslt=shared' '--with-xslt-sablot=shared,/usr' '--with-sablot-js=shared,/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-debugger' '--enable-exif' '--with-pear=/usr/share/pear' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-discard-path' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--without-oci8' '--with-imap=shared' '--with-imap-ssl' '--with-mcrypt=shared' '--with-mhash=shared' '--with-kerberos=/usr/kerberos' '--with-ldap=shared' '--enable-sysvsem=shared' '--enable-sysvshm=shared' '--enable-ftp=shared' '--with-mssql=shared,/usr' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared' '--enable-memory-limit' '--enable-bcmath' '--enable-shmop' '--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mbstring' '--with-apxs=/usr/sbin/apxs'

Zend Engine v1.3.0, Copyright © 1998-2003 Zend Technologies

Best Regards,
Tsvetelin Yotov
Proetorian
The Call to undefined function: xslt_set_encoding() error is related to enabling SablotSetEncoding during the Sablotron installation. This error is addressed on the php.net site under 'bogus' bugs at:

http://bugs.php.net/bug.php?id=23148

Make sure you read all the postings and the responses from the PHP team regarding this problem. At the bottom of the page, the PHP team addresses the fix. This is not a PHP or Sablotron problem. It is an installation problem.

Good luck.
Mrav
Thank's for all.

I will read it all.

icon_smile.gif)

I hope that will be usefull to me

Best Reagrds,
Tsvetelin Yotov
[PROC]moetjojo
error: failed dependencies:
libmcrypt is needed by php-mcrypt-4.3.2-1.72.1ct
libmcrypt.so.4 is needed by php-mcrypt-4.3.2-1.72.1ct
libmhash2 is needed by php-mhash-4.3.2-1.72.1ct
libmhash.so.2 is needed by php-mhash-4.3.2-1.72.1ct


any ideas?

do I need these?
abubin
I have ensim 3.1.1-31 and php 4.2.2. I went to gpan's site and see all these files to d/l for php4.3.2.

Ensim 3.1
php-4.3.2-1.72.1ct.i386.rpm
php-devel-4.3.2-1.72.1ct.i386.rpm
php-ftp-4.3.2-1.72.1ct.i386.rpm
php-gettext-4.3.2-1.72.1ct.i386.rpm
php-imap-4.3.2-1.72.1ct.i386.rpm
php-ldap-4.3.2-1.72.1ct.i386.rpm
php-manual-4.3.2-1.72.1ct.i386.rpm
php-mcrypt-4.3.2-1.72.1ct.i386.rpm
php-mhash-4.3.2-1.72.1ct.i386.rpm
php-mssql-4.3.2-1.72.1ct.i386.rpm
php-mysql-4.3.2-1.72.1ct.i386.rpm
php-odbc-4.3.2-1.72.1ct.i386.rpm
php-pgsql-4.3.2-1.72.1ct.i386.rpm
php-snmp-4.3.2-1.72.1ct.i386.rpm
php-sysvsem-4.3.2-1.72.1ct.i386.rpm
php-sysvshm-4.3.2-1.72.1ct.i386.rpm
php-xslt-4.3.2-1.72.1ct.i386.rpm


My question is do I need to install them all? And what is that sablotron thingie? How do I check what version of this sablotron my server have?

Thanks in advance.
jaume
QUOTE
Originally posted by abubin
I have ensim 3.1.1-31 and php 4.2.2. I went to gpan's site and see all these files to d/l for php4.3.2.


Upgrading your Ensim from 3.1.1-31 is far more important and critical than upgrading php. I would recommend you first to upgrade ensim.
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-2010 Invision Power Services, Inc.