Koozali.org: home of the SME Server

Sme 7 Php 5 Webmail

Offline gregswallow

  • *
  • 651
  • +1/-0
Sme 7 Php 5 Webmail
« Reply #15 on: May 18, 2006, 12:35:39 AM »
By the way, one other cool thing I know of that needs php5:
Avantfax - http://avantfax.com/

mstrangers

Sme 7 Php 5 Webmail
« Reply #16 on: May 18, 2006, 01:23:40 AM »
it appear that is an include_path problem
Code: [Select]

May 18 01:15:02 ds9 php: PHP Warning:  mb_ereg_replace(): mbregex compile err: premature end of char-class in /home/e-smith/files/ibays/cacti/html/include/config.php on line 58
May 18 01:15:02 ds9 php: PHP Warning:  mb_ereg_replace(): mbregex compile err: premature end of char-class in /home/e-smith/files/ibays/cacti/html/include/config.php on line 59
May 18 01:15:02 ds9 php: PHP Warning:  include(/adodb/adodb.inc.php): failed to open stream: No such file or directory in /home/e-smith/files/ibays/cacti/html/include/config.php on line 143
May 18 01:15:02 ds9 php: PHP Warning:  include(): Failed opening '/adodb/adodb.inc.php' for inclusion (include_path='.:/usr/share/pear-addons:/usr/share/pear') in /home/e-smith/files/ibays/cacti/html/include/config.php on line 143
May 18 01:15:02 ds9 php: PHP Warning:  include(/database.php): failed to open stream: No such file or directory in /home/e-smith/files/ibays/cacti/html/include/config.php on line 144
May 18 01:15:02 ds9 php: PHP Warning:  include(): Failed opening '/database.php' for inclusion (include_path='.:/usr/share/pear-addons:/usr/share/pear') in /home/e-smith/files/ibays/cacti/html/include/config.php on line 144
May 18 01:15:02 ds9 php: PHP Warning:  include_once(/functions.php): failed to open stream: No such file or directory in /home/e-smith/files/ibays/cacti/html/include/config.php on line 145
May 18 01:15:02 ds9 php: PHP Warning:  include_once(): Failed opening '/functions.php' for inclusion (include_path='.:/usr/share/pear-addons:/usr/share/pear') in /home/e-smith/files/ibays/cacti/html/include/config.php on line 145
May 18 01:15:02 ds9 php: PHP Fatal error:  Call to undefined function db_connect_real() in /home/e-smith/files/ibays/cacti/html/include/config.php on line 151
May 18 01:19:30 ds9 httpd: PHP Warning:  include_once(PEAR.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in /home/e-smith/files/ibays/egroupware/html/phpgwapi/inc/horde/lib/core.php on line 27
May 18 01:19:30 ds9 httpd: PHP Warning:  include_once() [<a href='function.include'>function.include</a>]: Failed opening 'PEAR.php' for inclusion (include_path='/home/e-smith/files/ibays/egroupware/html/phpgwapi/inc/horde/lib/../../horde/:.:/usr/share/pear-addons:/usr/share/pear') in /home/e-smith/files/ibays/egroupware/html/phpgwapi/inc/horde/lib/core.php on line 27
May 18 01:19:30 ds9 httpd: PHP Warning:  include_once(Log.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in /home/e-smith/files/ibays/egroupware/html/phpgwapi/inc/horde/Horde.php on line 3
May 18 01:19:30 ds9 httpd: PHP Warning:  include_once() [<a href='function.include'>function.include</a>]: Failed opening 'Log.php' for inclusion (include_path='/home/e-smith/files/ibays/egroupware/html/phpgwapi/inc/horde/lib/../../horde/:.:/usr/share/pear-addons:/usr/share/pear') in /home/e-smith/files/ibays/egroupware/html/phpgwapi/inc/horde/Horde.php on line 3


one is for cacti and the other the syncML of egroupware

Offline gregswallow

  • *
  • 651
  • +1/-0
Sme 7 Php 5 Webmail
« Reply #17 on: May 18, 2006, 01:39:21 AM »
Do you have php-pear and php-pear-Log installed?

php-pear has a separate source rpm - you may need to rebuild that too, and there are some php-pear-xxx rpms in my contrib directory.

mstrangers

Sme 7 Php 5 Webmail
« Reply #18 on: May 18, 2006, 09:17:21 AM »
Quote from: "gregswallow"
Do you have php-pear and php-pear-Log installed?

php-pear has a separate source rpm - you may need to rebuild that too, and there are some php-pear-xxx rpms in my contrib directory.


yes php-pear et the other in yours contrib dir but haven't recompile them

i do that and reinstall the rpm
the rpm installed
Code: [Select]

[root@ds9 php5]# rpm -qa | grep php
php-xmlrpc-5.1.2-5.c4.02
php-imap-5.1.2-5.c4.02
php-pear-1.4.6-2.c4
php-pear-Log-1.9.3-1
php-pear-Net-Socket-1.0.6-1
php-pecl-fileinfo-1.0.3-1.SME7
php-devel-5.1.2-5.c4.02
php-ncurses-5.1.2-5.c4.02
php-pear-File-1.2.2-1
php-pear-Net-IMAP-1.0.3-1
php-pear-XML-Parser-1.2.7-1
php-xml-5.1.2-5.c4.02
php-eaccelerator-5.1.2_0.9.5-1.beta1.01.SME7
php-odbc-5.1.2-5.c4.02
php-pear-HTTP-Request-1.3.0-1
php-pear-Net-Sieve-1.1.2-1
php-pear-XML-Serializer-0.18.0-1
e-smith-phpmyadmin-2.6.0-13.SME7
e-smith-php-1.12.0-01
php-bcmath-5.1.2-5.c4.02
php-gd-5.1.2-5.c4.02
php-mcrypt-5.1.2-5.c4.02
php-pdo-5.1.2-5.c4.02
php-pear-Date-1.4.6-1
php-pear-HTTP-WebDAV-Server-1.0.0RC3-1
php-pear-Net-DIME-0.3-1
php-pear-Net-SMTP-1.2.8-1
php-pear-SOAP-0.9.1-1
php-pear-XML-Util-1.1.1-1
php-snmp-5.1.2-5.c4.02
php-dba-5.1.2-5.c4.02
php-mysql-5.1.2-5.c4.02
php-pear-DB-1.7.6-4
php-pear-Net-FTP-1.3.2-1
php-pear-Text-Wiki-1.1.0-1
php-soap-5.1.2-5.c4.02
php-ldap-5.1.2-5.c4.02
php-pear-Auth-SASL-1.0.1-1
php-pear-Mail-1.1.9-1
php-pear-Net-URL-1.0.14-1
php-pecl-memcache-2.0.1-1.SME7
php-5.1.2-5.c4.02
php-mbstring-5.1.2-5.c4.02
php-pear-Cache-1.5.4-1
php-pear-Mail-Mime-1.3.1-1
php-pear-Services-Weather-1.4.0-1
php-pgsql-5.1.2-5.c4.02
[root@ds9 php5]#

mstrangers

Sme 7 Php 5 Webmail
« Reply #19 on: May 18, 2006, 10:18:32 AM »
same error with the recompiled rpm

mstrangers

Sme 7 Php 5 Webmail
« Reply #20 on: May 18, 2006, 11:25:22 AM »
go back tu standart php4
one think it's the possible prob the pear-* on the original repo was not updated because they aren' the same name
ex:pear-Log in original an in the new rpm php-pear-Log

mstrangers

Sme 7 Php 5 Webmail
« Reply #21 on: May 18, 2006, 02:43:53 PM »
same problem with cacti on php4  :hammer:
the problem is in this fonction
Quote

ereg_replace("(.*[\/\\])include", "\\1lib", dirname(__FILE__));
Code: [Select]


the dirname(__FILE__) return the right value but the ereg_replace return nothing

mstrangers

Sme 7 Php 5 Webmail
« Reply #22 on: May 18, 2006, 03:37:52 PM »
and here the reason of the ereg_replace error
Code: [Select]


May 18 15:32:03 ds9 httpd: PHP Warning:  mb_ereg_replace() [<a href='function.mb-ereg-replace'>function.mb-ereg-replace</a>]: mbregex compile err: premature end of char-class in /home/e-smith/files/ibays/cacti/html/include/config.php on line 64
May 18 15:32:03 ds9 httpd: PHP Warning:  mb_ereg_replace() [<a href='function.mb-ereg-replace'>function.mb-ereg-replace</a>]: mbregex compile err: premature end of char-class in /home/e-smith/files/ibays/cacti/html/include/config.php on line 65


and now i can't not solve this a this time
complette deinstal of all php and pear rpm and reinstal from repo or whith php5 didn't solve the prob

mstrangers

Sme 7 Php 5 Webmail
« Reply #23 on: May 18, 2006, 06:39:11 PM »
i think i found the prob missing --enable-mbregex in the compile option

mstrangers

Sme 7 Php 5 Webmail
« Reply #24 on: May 19, 2006, 09:17:56 AM »
not that the error
same problem with 5.1.2 ,5.0.4 from cenosplus and with the original when i reinstall it.
but when in install 5.0.4 after 5.1.2 and before i expand the php.ini everything
work fine (except a problem with sessions)

Offline gregswallow

  • *
  • 651
  • +1/-0
Sme 7 Php 5 Webmail
« Reply #25 on: May 19, 2006, 08:11:55 PM »
Quote from: "mstrangers"
one think it's the possible prob the pear-* on the original repo was not updated because they aren' the same name
ex:pear-Log in original an in the new rpm php-pear-Log

Yes, my php-pear-xxx rpms are meant to replace the current pear-xxx rpms.  php-pear-xxx is the naming sceme in Fedora Extras, so I think we should switch to that sometime soon.

Quote from: "mstrangers"
before i expand the php.ini everything
work fine (except a problem with sessions)

It is very likely that we need to template some other lines from the suggested php.ini for php 5.

Offline gregswallow

  • *
  • 651
  • +1/-0
Sme 7 Php 5 Webmail
« Reply #26 on: May 19, 2006, 08:19:06 PM »
try without php-pecl-memcache and php-eaccelerator - they are just things to make php faster and are likely to cause problems.

mstrangers

Sme 7 Php 5 Webmail
« Reply #27 on: May 23, 2006, 04:47:02 PM »
found the error you need tu force mbstring overload tu not overload the ereg
whith this
mbstring.func_overload=0
or value under 4 in php.ini

with this cacti workfine with php 5.0.4 from centosplus repos

i test with gregswallow rpm this evening

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Sme 7 Php 5 Webmail
« Reply #28 on: May 23, 2006, 10:19:08 PM »
Quote from: "stefan24"

I'm also waiting for an official support for PHP5 in SME 7...


You'll likely be waiting quite a long time. SME7 is based on CentOS4/RHEL4, which doesn't include php5.

mstrangers

Sme 7 Php 5 Webmail
« Reply #29 on: May 23, 2006, 11:35:26 PM »
Quote from: "CharlieBrady"
Quote from: "stefan24"

I'm also waiting for an official support for PHP5 in SME 7...


You'll likely be waiting quite a long time. SME7 is based on CentOS4/RHEL4, which doesn't include php5.


the centosplus isn't centos 4 ?
php5.0.4 are in centos plus repositori