Koozali.org: home of the SME Server

php-4.4.1 RPMS and upgrade script

ergozd

php-4.4.1 RPMS and upgrade script
« on: November 01, 2005, 10:30:55 PM »
Hi!

Pls read carefully before you upgrade... ;-)

1- If you have any accelerators (mmcache, eAccelerator) install pls upgrade them as well, you might experience problems. I've also upgraded php-eaccelerator RPM...

2- If you're planning to upgrade to SME7 soon pls make sure to read about GregSwallow's Removal script

3- You upgrade at your own risk... ;-)

4- php-xslt has a dependency issue libiconv.so.2, you can install libiconv from source
http://forums.contribs.org/index.php?topic=29161.msg121993#msg121993

5- php-pgsql has a dependency libpq.so.2, and there's a workaround...
http://forums.contribs.org/index.php?topic=29161.msg121993#msg121993

6 - If you still want to go ahead and upgrade
http://ergin.dyndns.org/download/RPMS/contribs/PHP/

and upgrade script
http://ergin.dyndns.org/download/scripts/php-4.4.1-upgrade.sh

thecat

php-4.4.1 RPMS and upgrade script
« Reply #1 on: November 02, 2005, 02:38:35 AM »
once again thanks for all your work. It is excellent stuff.

One small thing is the link to the update script is wrong... I think you might mean http://mirror.contribs.org/smeserver/contribs/ergozd/scripts/php-4.4.1-upgrade.sh

ergozd

php-4.4.1 RPMS and upgrade script
« Reply #2 on: November 02, 2005, 06:13:51 AM »
Quote
once again thanks for all your work. It is excellent stuff.

Thank you, glad to be able to help.

Quote
One small thing is the link to the update script is wrong... I think you might mean http://mirror.contribs.org/smeserver/contribs/ergozd/scripts/php-4.4.1-upgrade.sh


It was a typo, the links are
http://mirror.contribs.org/smeserver/contribs/ergozd/scripts/php4.4.1-upgrade.sh
http://ergin.dyndns.org/download/scripts/php4.4.1-upgrade.sh

nerd341

php-4.4.1 RPMS and upgrade script
« Reply #3 on: November 06, 2005, 04:02:33 PM »
I ran the update and made all of the changes that are talked about on the other post but I am still getting the following error ... Any idea's or help would be GREATLY appreceated since my websites are down.

Code: [Select]
[root@www apache]# /etc/init.d/httpd restart
Stopping httpd:                                            [ FAILED ]
Starting httpd: Syntax error on line 138 of /etc/httpd/conf/httpd.conf:
Can't locate API module structure php4_module' in file /usr/lib/apache/libphp5.so: /usr/sbin/httpd: undefined symbol: php4_module
                                                           [ FAILED ]


THANK YOU for all of your help in advance.

nerd341

php-4.4.1 RPMS and upgrade script
« Reply #4 on: November 06, 2005, 04:04:57 PM »
I ran the update and made all of the changes that are talked about on the other post but I am still getting the following error ... Any idea's or help would be GREATLY appreceated since my websites are down.

Code: [Select]
[root@www apache]# /etc/init.d/httpd restart
Stopping httpd:                                            [ FAILED ]
Starting httpd: Syntax error on line 138 of /etc/httpd/conf/httpd.conf:
Can't locate API module structure php4_module' in file /usr/lib/apache/libphp5.so: /usr/sbin/httpd: undefined symbol: php4_module
                                                           [ FAILED ]


THANK YOU for all of your help in advance.

ergozd

php-4.4.1 RPMS and upgrade script
« Reply #5 on: November 06, 2005, 04:30:53 PM »
Code: [Select]
[root@www apache]# /etc/init.d/httpd restart
Stopping httpd:                                            [ FAILED ]
Starting httpd: Syntax error on line 138 of /etc/httpd/conf/httpd.conf:
Can't locate API module structure php4_module' in file /usr/lib/apache/libphp5.so: /usr/sbin/httpd: undefined symbol: php4_module                                                           [ FAILED ]


I am not sure if it's a typo but your configuration needs a few changes... It looks like you've had PHP5 installed or at least you've tried.

Pls modify you httpd.conf template file (one the files below) to include libphp4.so and NOT libphp5.so
Code: [Select]
LoadModule php4_module /usr/lib/apache/libphp4.so

Code: [Select]
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/20LoadModule80PHP
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/20LoadModule80PHP


Expand you new httpd.conf file and restart your httpd-server

Code: [Select]
# /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
# /etc/init.d/httpd restart

nerd341

php-4.4.1 RPMS and upgrade script
« Reply #6 on: November 06, 2005, 08:53:58 PM »
THANK YOU ergozd so much I made the changes and still not able to start HTTPD.  When I look in the folder it is trying to pull the include from I have
"/usr/lib/apache/libphp5.so", I do not have 4, any help on gettign this up would be GREATLY apprecated.


Code: [Select]


[root@www root]# /etc/init.d/httpd restart
Stopping httpd:                                            [ FAILED ]
Starting httpd: Syntax error on line 138 of /etc/httpd/conf/httpd.conf:
Cannot load /usr/lib/apache/libphp4.so into server: /usr/lib/apache/libphp4.so: cannot open shared object file: No such file or directory
                                                           [ FAILED ]


Thank's
NERD341

ergozd

php-4.4.1 RPMS and upgrade script
« Reply #7 on: November 08, 2005, 07:19:45 PM »
Installing PHP5 on SME6.x is descripbed in detail at
http://ergin.dyndns.org/download/RPMS/contribs/PHP/php505_experimental/php5_howto.txt

I would propose to dubbel check to eliminate any typos. If you're still having prouble pls report.

haj

Re: php-4.4.1 RPMS and upgrade script
« Reply #8 on: November 19, 2005, 03:41:06 AM »
Quote from: "ergozd"

4- php-xslt has a dependency issue libiconv.so.2, you can install libiconv from source
http://forums.contribs.org/index.php?topic=29161.msg121993#msg121993


Hello,

Seems dependencies with libiconv.so.2 is not for installing php-xslt package but php package:

rpm -Uch php-4.4.1-1eo.i386.rpm
error: failed dependencies:
        libiconv.so.2   is needed by php-4.4.1-1eo

Best regards

ergozd

php-4.4.1 RPMS and upgrade script
« Reply #9 on: November 19, 2005, 01:27:25 PM »
Hi Laurent!

You're correct... Thanks for observing/reporting that.

Code: [Select]
[root@XXXXXX root]# rpm -qa --requires php
/bin/sh
/sbin/ldconfig
/sbin/ldconfig
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(CompressedFileNames) <= 3.0.4-1
/bin/sh
libbz2.so.1
libcom_err.so.3
libcrypto.so.2
libcrypt.so.1
libcrypt.so.1(GLIBC_2.0)
libc.so.6
libc.so.6(GLIBC_2.0)
libc.so.6(GLIBC_2.1)
libc.so.6(GLIBC_2.1.3)
libc.so.6(GLIBC_2.2)
libc.so.6(GLIBC_2.2.3)
libdb-3.3.so
libdl.so.2
libdl.so.2(GLIBC_2.0)
libdl.so.2(GLIBC_2.1)
libexpat.so.0
libfreetype.so.6
libgdbm.so.2
libgmp.so.3
libgssapi_krb5.so.2
libhistory.so.4
libiconv.so.2
libjpeg.so.62
libk5crypto.so.3
libkrb5.so.3
libmm.so.11
libm.so.6
libm.so.6(GLIBC_2.0)
libncurses.so.5
libnsl.so.1
libnsl.so.1(GLIBC_2.0)
libpng.so.2
libreadline.so.4
libresolv.so.2
libresolv.so.2(GLIBC_2.0)
libresolv.so.2(GLIBC_2.2)
libssl.so.2
libttf.so.2
libz.so.1


So the bottom line is installing libiconv is necessary to get php v4.4.1 running...