Koozali.org: home of the SME Server

php upgrade

Craig Jensen

php upgrade
« on: June 08, 2003, 08:37:27 PM »
I have a SME 5.5U6 with multiple php packages running.  Recently a new one required a php upgrade.  The following packages were installed:

expat-1.95.2-2.i386.rpm
mm-1.1.3-4.i386.rpm
pcre-3.9-2.i386.rpm
php-4.2.3-1db_rh72.i386.rpm
php-imap-4.2.3-1db_rh72.i386.rpm
php-ldap-4.2.3-1db_rh72.i386.rpm
php-mysql-4.2.3-1db_rh72.i386.rpm
php-odbc-4.2.3-1db_rh72.i386.rpm
php-pgsql-4.2.3-1db_rh72.i386.rpm
php-snmp-4.2.3-1db_rh72.i386.rpm

I also installed logwatch and logsentry.

Since the upgrade, I receive continuous php error repotrs in the logs and when loading php packages... phpBB2, imp, gallery, oscommerce, etc, I get blank pages and have to refresh several times to load, sometimes successfully, some not.  The logs show errors such as:

PHP Warning:  Failed opening '/home/httpd/html/horde/imp/redirect.php' for inclusion
(include_path='.:/usr/share/pear') in Unknown on line 0

PHP Warning:  Failed opening '/home/e-smith/files/primary/html/refers/vir_hits.php' for inclusion
(include_path='/usr/share/php') in Unknown on line 0

PHP Warning:  Failed opening 'Log.php' for inclusion (include_path='.:/usr/share/pear') in
/home/httpd/html/horde/lib/Horde.php on line 141

For one thing, there is no /usr/share/php dir.  I read about the open_basdir issue, but did not see this as the issue (and never actually saw a 'fix' for an SME box).  Other findings indicated possible permission issues.  I have tried several changes with no effect.

Can someone help me see through this?

Thank you,

Craig Jensen

Dan Brown

Re: php upgrade
« Reply #1 on: June 09, 2003, 06:33:38 PM »
Hmmm...  I don't remember for sure if this was templated in 5.5, but I think it was.  Have you tried expanding the php.ini template?

Craig Jensen

Re: php upgrade
« Reply #2 on: June 10, 2003, 03:42:08 AM »
Hi Dan.  I did expand the php.ini template, in fact I created a new fragment to attempt to fix the /usr/share/php errors.  I found that it made no difference so I deleted and re-expanded.

I get blank pages with webmail which will eventually load if I refresh about 4 times.  I am still looking for clues...

Thanks

Craig Jensen

Dan Brown

Re: php upgrade
« Reply #3 on: June 10, 2003, 04:42:35 AM »
The probable cause is that you don't have the PEAR libraries installed--they were included with older versions of PHP, but not the current versions.  This is the main reason I haven't changed my HOWTOs to reflect the availability of the later PHP RPMs.  The horde/imp mailing list archives should be able to shed some light on what you'll need to do.

Shad Lords

Re: php upgrade
« Reply #4 on: June 10, 2003, 06:52:51 PM »
I have a copy of the pear libraries that are needed with php v4.3.1 along with php v4.3.1 on my site.

To install just install the php packages that you need then extract the pear tarball to the correct location (/usr/share).

This has worked great for me and has illiminated all php errors from my log files.

-Shad

Craig Jensen

Re: php upgrade
« Reply #5 on: June 11, 2003, 06:55:37 AM »
Thank you Dan and Shad.

I have the latest pear libs now and things seem to be running smooth (Twiggi, Gallery, phpBB2, phpmyadmin, phpwebsite, etc) in the php dept... except webmail.  The redirect.php sends me to a blank page after the login which will not refresh to anything but a blank page.  

Shad, with the '4.3.1-1db' version you are using did you also upgrade imp/horde?

Thanks again for the help

Craig Jensen

Shad Lords

Re: php upgrade
« Reply #6 on: June 11, 2003, 07:18:36 PM »
# rpm -qa | egrep '(imp|horde|turba|php)' | sort
imp-3.2.1-2es
e-smith-imp-1.9.0-06db
horde-2.2.1-1es
e-smith-horde-1.7.0-04db
turba-1.2-1es
e-smith-turba-1.1.0-05db
php-4.3.1-1db
php-imap-4.3.1-1db
php-ldap-4.3.1-1db
php-mysql-4.3.1-1db
e-smith-php-1.8.0-01

Tony Hansen

Re: php upgrade
« Reply #7 on: June 20, 2003, 05:21:40 AM »
So is this the list of rpms I need to upgrade to php 4.3.1
on SME 5.6? Do I need rpms for ssl, gd? Can anyone send
me to a page that explains the process one goes through to
determine the list of rpms one needs to include in upgrades
like this?

Thanks.


imp-3.2.1-2es
e-smith-imp-1.9.0-06db
horde-2.2.1-1es
e-smith-horde-1.7.0-04db
turba-1.2-1es
e-smith-turba-1.1.0-05db
php-4.3.1-1db
php-imap-4.3.1-1db
php-ldap-4.3.1-1db
php-mysql-4.3.1-1db
e-smith-php-1.8.0-01

Dan Brown

Re: php upgrade
« Reply #8 on: June 20, 2003, 06:21:35 AM »
As I've said before, if you don't know what you're doing re: installing the pear libraries, and you upgrade the PHP version, you're going to break webmail.  I'm working on new RPMs of PHP 4.3.2, which will also (among other things) include the pear installer, making this a bit easier, but they aren't ready quite yet.

Tony Hansen

Re: php upgrade
« Reply #9 on: June 20, 2003, 06:20:31 PM »
Thanks.
Will wait for this.
You should have a contribution page, I would be glad to visit it and 'grease the wheels' with a little offering.

Dan Brown

Re: php upgrade
« Reply #10 on: June 20, 2003, 06:29:39 PM »
OK, I have 4.3.2-1db up in my contrib area on any of the mirrors, but it's missing the pear installer.  -2db includes the pear installer, and should be up tonight.

Thanks for the suggestion about the contribution page, but at this point it's not costing me anything but a little time.  Thanks for the kind words, though!

sean browne

Re: php upgrade
« Reply #11 on: June 26, 2003, 12:11:16 AM »
hi dan,

i would really like to get my hands on your php with everything you need upgrade rpm but i dont understand what you mean about it being available on any mirror?

can you post URL?

many thanks
sean
(I want php upgrade so I can get phpwebsite working).

Dan Brown

Re: php upgrade
« Reply #12 on: June 26, 2003, 02:16:09 AM »
From the main page here, www.e-smith.org, there's a link to a list of mirrors.  Go to one of them.