Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: percyiii on April 08, 2006, 05:30:25 PM

Title: Sme 7 Php 5 Webmail
Post by: percyiii on April 08, 2006, 05:30:25 PM
I have built a sme 7 server upgraded the php to 5.04. But seems to have broke the webmail.
Mar 15 01:12:14 lfp70 httpd: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/gd.so' - /usr/lib/php5/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 15 01:12:14 lfp70 httpd: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/imap.so' - /usr/lib/php5/imap.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 15 01:12:14 lfp70 httpd: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/ldap.so' - /usr/lib/php5/ldap.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 15 01:12:14 lfp70 httpd: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/mbstring.so' - /usr/lib/php5/mbstring.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 15 01:12:14 lfp70 httpd: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/mysql.so' - /usr/lib/php5/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
Mar 15 01:12:14 lfp70 httpd: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/mysqli.so' - /usr/lib/php5/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
 
Ok this is the error i got.
 
Well '/usr/lib/php5 did not exist.. so being the bandaid guy i am.. I copied the files looked for above from /usr/lib/php to the newly made /usr/lib/php5 dir...
Well no error now but the webmail still no workie...
Any ideas linux guru's
 
 
 
I got the php5 by
 
adding the following to yum
 
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://mirror.nsc.liu.se/CentOS/4.2/centosplus/$basearch/
gpgcheck=1
enabled=1
 
then making a fragment
 
/etc/e-smith/templates-custom/etc/php.ini/50PathsDirectories

include_path            = ".:/usr/share/pear"
doc_root                =
user_dir                =
extension_dir   =       /usr/lib/php5
enable_dl               = On
 
 
any ideas?
Title: Sme 7 Php 5 Webmail
Post by: Franco on April 08, 2006, 10:34:03 PM
Is webmail the only thing broken so far? How are the panels that control the server acting?
Title: Sme 7 Php 5 Webmail
Post by: percyiii on April 09, 2006, 02:46:05 PM
Quote from: "stuntshell"
Is webmail the only thing broken so far? How are the panels that control the server acting?



Everythng works that I can tell except the webmail. The web person wanted some features that php 5 had..

Bill
Title: Sme 7 Php 5 Webmail
Post by: CharlieBrady on April 09, 2006, 08:06:27 PM
Quote from: "stuntshell"
Is webmail the only thing broken so far? How are the panels that control the server acting?


The server manager does not use PHP.
Title: Sme 7 Php 5 Webmail
Post by: Franco on April 10, 2006, 05:04:16 AM
Hummm! :-D
I'm on the same boat, and it's why I asked (Web person asking for PHP5).
I already replaced the webmail and went with roundcube (Still beta but works good), if everything else fails for you...
Title: Sme 7 Php 5 Webmail
Post by: thefff-fr on April 10, 2006, 12:42:20 PM
Hello,

For a script, i need PHP 5. I read this post, and, if the only thinks that doesn't work is the webmail and if it possible to modify this with Roundcube, maybe i go to install this.

But, i wont to know if it's possible to import the mail on Horde to Roundcube.
Title: Sme 7 Php 5 Webmail
Post by: Franco on April 10, 2006, 04:33:17 PM
The great advantage of using Roundcube is that you don't have to touch anything, it uses IMAP so you could even have both working at the same time if you would.
Title: Sme 7 Php 5 Webmail
Post by: gregswallow on April 10, 2006, 08:53:19 PM
There's a bug report open to allow the use of php4 or php5.  The php rpms in my contrib directory are not supported at all, and I'd really recommend you not install them unless you are developing an addon that _requires_ php5.

http://bugs.contribs.org/show_bug.cgi?id=1120
Title: Sme 7 Php 5 Webmail
Post by: mstrangers on May 17, 2006, 02:29:51 PM
:gregswallow
your rpm need mysql5 ?
they need libmysqlclient.so.15 that are ine mysql5 rpm
how can i install php5 whitout mysql5 ?
i need php5 for the syncML module of egroupware
Title: Sme 7 Php 5 Webmail
Post by: CharlieBrady on May 17, 2006, 04:00:18 PM
Quote from: "mstrangers"

i need php5 for the syncML module of egroupware


Complain to the developers of egroupware. It would be considerable easier for you if they allow the use of php4.
Title: Sme 7 Php 5 Webmail
Post by: mstrangers on May 17, 2006, 05:49:57 PM
php 5.0.4-5 present in the centosplus repo did need mysql5
i test this this evening
Title: Sme 7 Php 5 Webmail
Post by: stefan24 on May 17, 2006, 05:50:37 PM
@CharlieBrady: I already did complain to them (at LinuxTag 2006 in Wiesbaden, Germany). They said, that PHP5 is required for the SyncML thing in eGroupware and that there is no chance to use PHP4 in this case.

I'm also waiting for an official support for PHP5 in SME 7, but when I install eGroupware I probably won't need Horde Webmail anymore.
Title: Sme 7 Php 5 Webmail
Post by: gregswallow on May 17, 2006, 07:01:13 PM
Quote from: "mstrangers"
:gregswallow
your rpm need mysql5 ?
they need libmysqlclient.so.15 that are ine mysql5 rpm
how can i install php5 whitout mysql5 ?


Sorry about that, I don't have time to fix them now... - But you can rebuild the php rpms from the php source rpm - I had mysql5 installed when I built them and it must have picked that dependancy automatically.
Title: Sme 7 Php 5 Webmail
Post by: mstrangers on May 18, 2006, 12:08:25 AM
i have recompiled the src.rpm and install it
modifier php.ini and httpd.conf
webmail work
cacti didn't work i search why tomorow
egroupware work
redoma work
gallery work
phpmyadmin work to

i'm happy :D

i post a link with the recompiled rpm tomorow is too late here
Title: Sme 7 Php 5 Webmail
Post by: gregswallow on May 18, 2006, 12:19:09 AM
Quote from: "mstrangers"
cacti didn't work i search why tomorow

cacti needs php-snmp and net-snmp I think.

Glad it is working for you...(so far) ;-)

Again for everyone else reading this, please stick with the version of php that comes with SME7 - this version of php is already out of date - there is 5.1.4 now - the php in SME7 is version 4.3.9, but it is patched, and will continue to be patched until 2012 by Redhat/CentOS, to fix any security problems.  If you use php5, you have to update it yourself, and if it doesn't work you can't submit a bug report and will probably have a hard time finding help here.
Title: Sme 7 Php 5 Webmail
Post by: gregswallow 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/
Title: Sme 7 Php 5 Webmail
Post by: mstrangers 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
Title: Sme 7 Php 5 Webmail
Post by: gregswallow 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.
Title: Sme 7 Php 5 Webmail
Post by: mstrangers 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]#
Title: Sme 7 Php 5 Webmail
Post by: mstrangers on May 18, 2006, 10:18:32 AM
same error with the recompiled rpm
Title: Sme 7 Php 5 Webmail
Post by: mstrangers 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
Title: Sme 7 Php 5 Webmail
Post by: mstrangers 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
Title: Sme 7 Php 5 Webmail
Post by: mstrangers 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
Title: Sme 7 Php 5 Webmail
Post by: mstrangers on May 18, 2006, 06:39:11 PM
i think i found the prob missing --enable-mbregex in the compile option
Title: Sme 7 Php 5 Webmail
Post by: mstrangers 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)
Title: Sme 7 Php 5 Webmail
Post by: gregswallow 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.
Title: Sme 7 Php 5 Webmail
Post by: gregswallow 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.
Title: Sme 7 Php 5 Webmail
Post by: mstrangers 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
Title: Sme 7 Php 5 Webmail
Post by: CharlieBrady 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.
Title: Sme 7 Php 5 Webmail
Post by: mstrangers 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
Title: Sme 7 Php 5 Webmail
Post by: crazybob on May 23, 2006, 11:43:20 PM
You might want to check this

http://mirror.centos.org/centos/4/centosplus/Readme.txt

Bob
Title: Sme 7 Php 5 Webmail
Post by: gregswallow on May 30, 2006, 12:42:56 AM
Quote from: "mstrangers"
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


I added this info to the bug report:
http://bugs.contribs.org/show_bug.cgi?id=1120

If you have edited the php.ini file with anything else, please make a not of your changes in the bug report (you will need to create an account in bugzilla) - Thanks!
Title: Sme 7 Php 5 Webmail
Post by: CharlieBrady on May 30, 2006, 01:45:17 AM
Quote from: "mstrangers"

the centosplus isn't centos 4 ?


No. They're maintained by people working on the centos4 project, but they are not in centos4.