Help - Search - Members - Calendar
Full Version: PHP 4.3.6 for RHEL3/Fedora systems
The Planet Forums > Operating Systems > Red Hat Linux > Red Hat HOWTOs
Pages: 1, 2
gpan
We are pleased to make available packages for Red Hat Enterprise Linux 3/ Fedora Core 1 with mcrypt, mhash, and imagick support.

These packages are also compatible with Ensim 3.7

If upgrading to this version from a prior RPM set; you may need to uninstall and remove libmhash2 (and devel), libmcrypt (and devel) packages as we now use the dag repository packages to support these RPM's - these are at

http://dag.wieers.com/packages/libmcrypt
http://dag.wieers.com/packages/libmhash

Installation is via rpm -Fvh *.rpm (after downloading it to a new folder).

If you need any of the extensions please make sure that you have the needed dependancies installed first.


Packages for Red Hat Enterprise Linux 3 (MySQL 3.23.58)

http://download.cheetaweb.com/redhat/EL3/php/4.3.6/


Packages for Red Hat Enterprise Linux 3 (MySQL 4.0 packages)

http://download.cheetaweb.com/redhat/EL3/php.mysql4/

Packages for Fedora Core 1

http://download.cheetaweb.com/fedora/1/php/4.3.6/


If you need help installing - please feel free to contact me via email /
IM.
alex2k
Thank's gpan, but I have a question.
I have Ensim 3.7 Fedora Core 1 with MySQL 4.0.18

I can't find php-mysql4 rpm in http://download.cheetaweb.com/fedora/1/php/4.3.6/
Can you help me please...?
ucm
thanx gpan, i'm thinking of installing:
CODE
http : / / download.cheetaweb.com / redhat / EL3 / php.mysql4 / php-mysql-4.3.6-1.1.rhel3.MySQL4.ct.i386.rpm

to get the latest php and mysql ( i need those more than anything else lol )


but im on an emsin basic box, would that make ensim unable to start/stop/restart mysql?


also, what commands would i use in an ssh shell to upgrade from my mysql 3.xx.xx and php 4.3.2 to the versions in your rpm?


should i stop mysqld first?
gpan
It should work with Ensim Basic 3.7; you probably need to follow the MySQL howto to upgrade it first; then update php. Geoff
prence
Well, we just recently tried a Fedora install and it messed up HORRIBLY so we had to pay to get a RHEL drive stuck in there. We restored a few sites and upgraded Mysql to 4.0.18. I've been running a tail on a sites error_log and have noticed this every half a minute or so:

[Mon Apr 19 11:38:29 2004] [error] [client 62.166.73.84] PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/mhash.so' - libmhash.so.2: cannot open shared object file: No such file or directory in Unknown on line 0
[Mon Apr 19 11:39:08 2004] [error] [client 62.166.73.84] PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/mhash.so' - libmhash.so.2: cannot open shared object file: No such file or directory in Unknown on line 0

The file mhash.so is in the site's /usr/lib/php4/ directory as well as it's /usr/lib/ directory. It's also in the servers /usr/lib/php4/ directory. Any ideas?
gpan
Did you install the DAG packages for libmcrypt / libmhash?
prence
[root@sky named]# rpm -qa | grep dag
libmhash-0.9.1-1.rhel3.dag
libmcrypt-devel-2.5.7-1.dag.rhel3
libmhash-devel-0.9.1-1.rhel3.dag
libmcrypt-2.5.7-1.dag.rhel3


yep.
gpan
Try uninstalling / reinstalling the php-mhash rpm
prence
I have, twice. Still no luck.
prence
We figured it out. My copartner tried this and it worked on these 2 sites so he stuck the files in /home/virtual/FILESYSTEMTEMPLATE/apache/usr/lib/ , put ensim into mantinence mode, restarted it, and it works now.

[root@sky ~]# cp /usr/lib/libmhash.so.2* /home/virtual/the-site.com/usr/lib/
[root@sky ~]# cp /usr/lib/libmhash.so.2* /home/virtual/the-site2.org/usr/lib/
ClayGP
Will this upgrade mess up future Ensim upgrades?
z3roon3
hello,

I'm getting :
QUOTE
warning: libmcrypt-2.5.7-1.dag.rhel3.i386.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6


when I try to rpm -Fvh *.rpm .

do u know y?
thanks:)
gpan
That is ok
z3roon3
thnks,
well unfortunately it is not installing the rpms:

# rpm -Fvh *.rpm
#warning: libmcrypt-2.5.7-1.dag.rhel3.i386.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
#
and then nothing more....

# rpm -qa | grep libmhash
#

# rpm -qa | grep libmcrypt
#


:confused:
gpan
You need to rpm -Uvh rpm's which are not already installed on your server, i.e. libmcrypt packages.
z3roon3
[edit] just deleted my blah blah, coz it works like a charm:) [/edit]
ClayGP
QUOTE
Originally posted by gpan
That is ok


Gpan! Can you take a sec and answer my question? Please?

I've used your RPMs before .. and they work great .. but on some previous Ensim upgrades .. I know that there were problems, and your RPMs had to be removed before they would work.

Any idea if these will have the same problems?

Thanks in advance.
gpan
It shouldn't have that impact any more unless Ensim breaks its policy to de-ensim-ize packages.

These are built against Red Hat specs.
z3roon3
well, guess I need to install the rpms ... and to uninstall the former ones with all dependencies...a simple freshen or upgrade isn't possible....right?
inphinity
I would recommend against installing PHP 4.3.6 with Ensim 3.7.

PHP 4.3.6 has a bug that will break a default Ensim install when using apache2 as the default web server.

Bug #27810 Apache-2.0.49 crashes on graceful/restart
http://bugs.php.net/bug.php?id=27810

Ensim uses apache graceful restarts in conjuntion with exclog for log rotation. Which will in turn cause apache2 to segfault and exit.

QUOTE
[Mon Apr 26 11:35:52 2004] [notice] Apache/2.0.48 (Fedora) configured -- resuming normal operations
[Mon Apr 26 11:35:56 2004] [notice] Graceful restart requested, doing restart
[Mon Apr 26 11:35:57 2004] [notice] seg fault or similar nasty error detected in the parent process
exclog: received EOF, exitting.



[23 Apr 7:59pm CEST] iliaa at php net
This bug has been fixed in CVS.

(apparently)
gpan
A patched version will be posted shortly.
z3roon3
QUOTE
Originally posted by z3roon3
well, guess I need to install the rpms ... and to uninstall the former ones with all dependencies...a simple freshen or upgrade isn't possible....right?

mayb someone else?
the question seems 2b too simple for gpan...our master cool.gif
gpan
-Fvh or -Uvh should work.
ClayGP
QUOTE
Originally posted by gpan
It shouldn't have that impact any more unless Ensim breaks its policy to de-ensim-ize packages.

These are built against Red Hat specs.


Sweet! Thanks again Gpan. You rule.
z3roon3
those rpms are great gpan:) , pleas could you say me how you did it to work with '--with-imap'?
I've compiled 4.3.6 from the source and got it to work with everything but '--with-imap'. I've googled a long time, but instead of answers or hints I've seen just the same question as mine.
if I try to compile with '--with-imap' I'm getting :configure: error: Cannot find rfc822.h. Please check your IMAP installation

your advice would be greatly appreciated:)
gpan
Make sure you have imap-devel package installed.
ClayGP
I installed all the rpms .. but when I try and run "phpize" .. its not found. I searched and can not find it either. I thought it was in the php-devel package.

Any help would be appreciated. I'm trying to install MMCache.
jeffro
I can attest to the seg faults. Here's where they occur:

On every change to a domain via control panel
on cron at 4:10 (or so)
on cron at 4:40 (or so)

Not very nice.

Let us know when you get the patched up gpan. No rush, you do your thing. We all love ya for dropping the diamonds at our feet.
inphinity
they also happen when you use the 'log' options in any of the control panels
z3roon3
QUOTE
Originally posted by ClayGP
I installed all the rpms .. but when I try and run "phpize" .. its not found. I searched and can not find it either. I thought it was in the php-devel package.

Any help would be appreciated. I'm trying to install MMCache.


phpize is included in /usr/bin, however I'm missing phpize.m4:(
QUOTE
/usr/bin/phpize: line 48: cd: /usr/lib/php/build: No such file or directory
/usr/bin/phpize: line 49: cd: /usr/lib/php/build: No such file or directory
/usr/bin/phpize: line 52: /usr/lib/php/build/phpize.m4: No such file or directory
aclocal: `configure.ac' or `configure.in' is required


:confused:
gpan
Can anyone give me any more info about the segfaults?
ClayGP
QUOTE
Originally posted by z3roon3
phpize is included in /usr/bin, however I'm missing phpize.m4:(  
 

:confused:


Nope ... not there for me. The only thing there is "php". Its not on my server. What did I do wrong?

Gpan? Any suggestions?

I downloaded all the 4.3.6 RPMs from this link:

http://download.cheetaweb.com/redhat/EL3/php.mysql4/

.. and ran

rpm -Fvh *.rpm

it seemed to work .. no errors .. and my version is reporting as 4.3.6.

To install MMCache .. I need to run phpize.. icon_sad.gif
inphinity
QUOTE
Originally posted by gpan
Can anyone give me any more info about the segfaults?


sure, what do you need to know?

the flaw is in apache2's pcre (perl compatible reg exp) memory allocation

coloured diff
http://cvs.php.net/diff.php/php-src/ext/pc....17&ty=h&num=10

There are changes in memory allocation code.

an alternative patch to 4.3.6 by jorton

http://www.apache.org/~jorton/php-4.3.6-pc...pcrealloc.patch
QUOTE
Fix segfaults on restart when pcre_{malloc,free} get left pointing at random bits of memory after PHP is unloaded.  Global variables: Just Don't Do It.


although i would just take the php_prce.c from cvs and use that.

download from:
http://cvs.php.net/cvs.php/php-src/ext/pcre/php_pcre.c

direct link to file:
http://cvs.php.net/co.php/php-src/ext/pcre...=1.132.2.17&p=1
gpan
Will try to apply these and see if it works better.
z3roon3
QUOTE
Originally posted by ClayGP
Nope ... not there for me. The only thing there is "php". Its not on my server. What did I do wrong?

Gpan? Any suggestions?

I downloaded all the 4.3.6 RPMs from this link:

http://download.cheetaweb.com/redhat/EL3/php.mysql4/

.. and ran

rpm -Fvh *.rpm

it seemed to work .. no errors .. and my version is reporting as 4.3.6.

To install MMCache .. I need to run phpize.. icon_sad.gif


it seems you can't install mmcache over these rpms...(at least I wasn't able to)
I've compiled php-4.3.6 from the source and mmchache works like a charm:)
ClayGP
I was just told that MMCache is not recommended, as it is very 'buggy'. Should I just go with PHP Accelerator instead?
z3roon3
well phpa is bugyy too rolleyes.gif
azinwood
phpa is not all that it is cracked up to be. mmcache is probably the best free optimizer from what i've been reading.

any way besides compiling 4.3.6 to get mmcahce to work?
rubysky
Hi GPan,

Have you had a chance to patch those RPMs yet? Please let us know. Thanks!

RS.
ClayGP
Cheetah Web told me this:

QUOTE
Did you need it recompiled with the patch? That is billed as a two hour charge to apply it (RPM's would be updated on the repository)


.. if that helps you at all. I'm not sure if this was just intended for me or what.

I'm happy now though .. I just went with PHPA .. and I'm not getting any seg faults this time. Seems to be working real well.
gpan
It will be publically posted eventually at no cost (on my free time), but as he wanted it done right away it would have been a billed charge.

I hope there was no misunderstanding there.
richardd
Well im having issues with installing these RPMS on a RH 7.3 Ensim 3.5.x. seems to be related to a kernel upgrade i did to 2.4.20-20.7. as before i have had installed the 4.3.5 installed. So far anything above 4.3.3 seems to cause these problems.... Anyhow what its doing is when httpd is restarted it looks like everything is good. although if you look in /var/www/html/error_log there is only a few lines in there acts like it doesnt load any of the site configs, although during httpd restart you can see it loading all the configs... but anyhow httpd shows it started fine. but nothing is accessable, no httpd listed during ps auxfn.
richardd
[Sat May 15 20:16:14 2004] [notice] caught SIGTERM, shutting down
[Sat May 15 20:16:22 2004] [notice] httpd_defines: enabled
[Sat May 15 20:16:22 2004] [notice] httpdmon: httpdmon_init
[Sat May 15 20:16:22 2004] [notice] bandwidth monitoring enabled (mapping file: /etc/virtualhosting/mappings/apache.domainmap)
[Sat May 15 20:16:36 2004] [notice] FastCGI: process manager initialized (pid 13829)
[Sat May 15 20:16:36 2004] [notice] httpd_defines: enabled
[Sat May 15 20:16:36 2004] [notice] httpdmon: httpdmon_init
[Sat May 15 20:16:36 2004] [notice] bandwidth monitoring enabled (mapping file: /etc/virtualhosting/mappings/apache.domainmap)
[Sat May 15 20:16:38 2004] [notice] Apache configured -- resuming normal operations
[Sat May 15 20:16:38 2004] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat May 15 20:16:38 2004] [notice] Accept mutex: sysvsem (Default: sysvsem)

This is all that shows up... doesnt show any of the "processing config file .... /etc/httpd/virtual/site##/...." stuff once i remove these rpms and reinstall ensim stock rpms it works fine.
JLChafardet
woot! icon_wink.gif - managed
JLChafardet
Jamie Marie
Hi,

I used these (not all of them, just the ones I needed) and everything went smoothly... in SSH, I get:
QUOTE
# rpm -qa | grep php*
php-ldap-4.3.6-1.1.rhel3.MySQL4.ct
php-imap-4.3.6-1.1.rhel3.MySQL4.ct
php-mysql-4.3.6-1.1.rhel3.MySQL4.ct
perl-XML-Grove-0.46alpha-25
php-4.3.6-1.1.rhel3.MySQL4.ct
php-devel-4.3.6-1.1.rhel3.MySQL4.ct

# php -v
PHP 4.3.6 (cgi) (built: Apr 16 2004 08:39:05)
Copyright © 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright © 1998-2004 Zend Technologies


But my phpinfo page continues to show: "PHP Version 4.3.2".

Am I missing something?
Jamie Marie
QUOTE
Originally posted by Jamie Marie
Hi,

I used these (not all of them, just the ones I needed) and everything went smoothly... in SSH, I get:
 

But  my phpinfo page continues to show: "PHP Version 4.3.[b]2
".

Am I missing something? [/B]


Hmm... I just updated /etc/php.ini, and I see that phpinfo.php also does not show the updated values (for example, I changed y2k_compliance from "On" to "Off", but it still shows "On"; I changed log_errors to "On", but it still shows "Off", etc.

I'm probably forgetting something really obvious, but I don't know what.
Jamie Marie
I knew I was forgetting something obvious - I hadn't restarted Apache! rolleyes.gif

(If anyone finds themselves in the same position as me, don't forget to do "/etc/rc.d/init.d/httpd restart" at the command line when you're done upgrading and after you change php.ini.)
chatlumo
Hi gpan,

Do you know if i can use one of these package (RHEL or Fedora 1) on a RedHat 9 ?

Thanks,
Julien.
plattapuss
When I try to upgrade my php, I have everything working well, except I get this one error:

error: Failed dependencies:
php = 4.3.2-11.ent is needed by (installed) php-ldap-4.3.2-11.ent

[edit]DOH! Forgot to download the ldap rpm. All is good now.[/edit]

Plattapuss
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.