Koozali.org: home of the SME Server

Sme 7 Php 5 Webmail

percyiii

Sme 7 Php 5 Webmail
« 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?

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Sme 7 Php 5 Webmail
« Reply #1 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?

percyiii

Sme 7 Php 5 Webmail
« Reply #2 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

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Sme 7 Php 5 Webmail
« Reply #3 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.

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Sme 7 Php 5 Webmail
« Reply #4 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...

thefff-fr

Sme 7 Php 5 Webmail
« Reply #5 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.

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Sme 7 Php 5 Webmail
« Reply #6 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.

Offline gregswallow

  • *
  • 651
  • +1/-0
Sme 7 Php 5 Webmail
« Reply #7 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

mstrangers

Sme 7 Php 5 Webmail
« Reply #8 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

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Sme 7 Php 5 Webmail
« Reply #9 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.

mstrangers

Sme 7 Php 5 Webmail
« Reply #10 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

Offline stefan24

  • *****
  • 483
  • +0/-0
    • www.sme-server.de
Sme 7 Php 5 Webmail
« Reply #11 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.

Offline gregswallow

  • *
  • 651
  • +1/-0
Sme 7 Php 5 Webmail
« Reply #12 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.

mstrangers

Sme 7 Php 5 Webmail
« Reply #13 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

Offline gregswallow

  • *
  • 651
  • +1/-0
Sme 7 Php 5 Webmail
« Reply #14 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.