Koozali.org: home of the SME Server

- Solved - Groupoffice on two identicial SMEServers not working

Offline linuxhelp

  • *
  • 173
  • +0/-0
    • Linux PC & Server Support
- Solved - Groupoffice on two identicial SMEServers not working
« on: November 05, 2011, 07:25:17 PM »
Hi@All

for test i use two Servers with SME 8.06 Testing enabled, php.5.3.3, groupoffice

on server 1 installed with 8.05,upgraded to 8.06+testing-repos groupffice works with php-5.3.3
on server 2 frest setup with 8.06+testing-repos,php-5.3.3 groupoffice site blank / "add_date" .. error dumped by php-debugger

php.ini is same..what can be wrong? same installed packages by rpm -qa > list.txt

on php-5.2.1 downgrade all is fine but i need php-5.3.3 for a application

i tried..
- rsync repos-files
- rebuild rpmdb
- rsync php.ini

don't know how to fix..
« Last Edit: November 09, 2011, 02:10:29 AM by linuxhelp »
Linux PC & Server Support
http://www.linuxonlinehelp.de
.. i Love SME..

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Groupoffice on two identicial SMEServers not working
« Reply #1 on: November 05, 2011, 07:36:46 PM »
site blank / "add_date" .. error dumped by php-debugger
Please post the exact error message instead of paraphrasing as this is not very clear.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline mmccarn

  • *
  • 2,626
  • +10/-0
Re: Groupoffice on two identicial SMEServers not working
« Reply #2 on: November 06, 2011, 04:43:17 PM »
Permissions (chown -R www:www /home/e-smith/files/ibays/groupoffice)?

Innodb support (config show mysqld)?

Other database settings?

Other contribs (/sbin/e-smith/audittools/newrpms)?

Virtual domain or re-write settings?

LDAP settings?

.htaccess contents?

AllowOverride settings?

FollowSymLinks settings?

Existence of original ibay 'index.html'?

Offline linuxhelp

  • *
  • 173
  • +0/-0
    • Linux PC & Server Support
Re: Groupoffice on two identicial SMEServers not working
« Reply #3 on: November 07, 2011, 11:49:04 AM »
Hello@All  THANKS FOR YOUR HELP and TIME!!!

sorry for my "stupid" question today i got access to the engine

Error Debug: by php.ini : "Fatal error: Cannot redeclare date_add() in /opt/groupoffice/html/functions.inc on line 102"

this is only shown on the fresh installed server 8.06 + php-5.3.3  i am confused about the old server upgraded from 7.51, to 8.05 no errors, now 8.06 no errors with Groupoffice and PHP 5.3.3. If i downgrade to php-5.2.1 Groupoffice runs pefect.

i tried to make a "installed package list" transfer to the new server and rerun yum with this list to get a identicial setup, but no help.

i try to find out the bug this week at night..

@ MMCARN

Permissions (chown -R www:www /home/e-smith/files/ibays/groupoffice)? no it used default /opt path (nothing changed) no ibay setup

Innodb support (config show mysqld)?

Other database settings?  same like 7.5+8.05

Other contribs (/sbin/e-smith/audittools/newrpms)? basic setup only smeserver-awstats nothing else..

Virtual domain or re-write settings? default

LDAP settings? default

.htaccess contents? default

AllowOverride settings? default

FollowSymLinks settings? default

Existence of original ibay 'index.html'? not used

I try to solve it cause many people here uses groupoffice for free comunication at social groups (childrens garden+church+local sport groups) i make nonprofit support there, i support them to remove all M$ Software last year to save money what they can spent to social needs (kids) and reuse old free hardware PCs which i can get for free
« Last Edit: November 07, 2011, 11:59:41 AM by linuxhelp »
Linux PC & Server Support
http://www.linuxonlinehelp.de
.. i Love SME..

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Groupoffice on two identicial SMEServers not working
« Reply #4 on: November 07, 2011, 07:18:49 PM »
Error Debug: by php.ini : "Fatal error: Cannot redeclare date_add() in /opt/groupoffice/html/functions.inc on line 102"

this is only shown on the fresh installed server 8.06 + php-5.3.3
This means that in the file /opt/groupoffice/html/functions.inc at line 102 the function date_add() is redefined. This means a second definition. Most likely this is some compatibility fix as date_add is a PHP internal function which should not be (re)defined.
You are most likely only seeing this as this function is implemented in PHP 5.3.0 and up (see http://php.net/manual/en/function.date-add.php), so that would explain why you did not have this with earlier releases of PHP.

You shoudl file a bug with GroupOffice as it seems they did not protect their compatibility functions properly or they are using a reserved function name for their own code base. Both should be fixed by them.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Groupoffice on two identicial SMEServers not working
« Reply #5 on: November 07, 2011, 07:22:00 PM »
Can you check that both files are the same on both serves by running below commands on both servers?

Code: [Select]
md5sum /opt/groupoffice/html/functions.inc
As well as the output off:

Code: [Select]
rpm -qa groupoffice
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Groupoffice on two identicial SMEServers not working
« Reply #6 on: November 07, 2011, 07:35:47 PM »
You shoudl file a bug with GroupOffice as it seems they did not protect their compatibility functions properly or they are using a reserved function name for their own code base. Both should be fixed by them.
I did a quick Google with the following page as result: http://www.group-office.com/forum/viewtopic.php?t=6842

Leads me to believe you are running a too old version of groupoffice and need an upgrade for PHP 5.3 compatibility.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline linuxhelp

  • *
  • 173
  • +0/-0
    • Linux PC & Server Support
Re: - Solved - Groupoffice on two identicial SMEServers not working
« Reply #7 on: November 09, 2011, 02:21:18 AM »
Hi@All,

thanks for your help and time, today i made update on both engines, after reconfigure same issues shown.

- then i remove old smeserver-groupoffice
- checked php -v, displays 5.3.3 with "--enablerepo-smeupdates-testing",
- create ibay groupoffice3  (cause System echos groupoffice is a system account)
- removed index.html at /ibay/groupoffice3/html
- download last groupoffice "3" free version and extract to  /ibay/groupoffice/html
- created folders ( /ibay/groupoffice3/html/tmp  /ibay/groupoffice3/html/protect / /ibay/groupoffice3/html/public )
- set rights to apache:apache and chmod 0755, run install http://server/groupoffice3/install/install.php
- REMOVE the "install folder"  and control all permissions of the installed folders!

Success..

- the only thing is there is no user sync between SME and Groupoffice 3
- no succuessfull run of upgrade2to3.php, i changed path inside old copied config.php but no help..
..but works..

Happy again..
« Last Edit: November 09, 2011, 01:48:57 PM by linuxhelp »
Linux PC & Server Support
http://www.linuxonlinehelp.de
.. i Love SME..

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: - Solved - Groupoffice on two identicial SMEServers not working
« Reply #8 on: November 09, 2011, 07:03:49 AM »
- set rights to apache:apache and chmod 0777, run install http://server/groupoffice3/install/install.php
That is a security no-no. You should never, ever chmod files to 777, most of the times 644 is enough, otherwise 755 should do the trick.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline linuxhelp

  • *
  • 173
  • +0/-0
    • Linux PC & Server Support
Re: - Solved - Groupoffice on two identicial SMEServers not working
« Reply #9 on: November 09, 2011, 01:47:48 PM »
Hi,

sorry 0777 was wanted for install mode, i removed  instal folder + 0777-> 0755  and changed it.

thanks for feedback.
Linux PC & Server Support
http://www.linuxonlinehelp.de
.. i Love SME..

Offline Gary Douglas

  • *
  • 68
  • +1/-0
Re: - Solved - Groupoffice on two identicial SMEServers not working
« Reply #10 on: December 04, 2011, 02:56:38 PM »
hi linuxhelp

how do you downgrade to php 5.2.1 after the 5.3.3 upgrade?

I have same problem with groupoffice and weberp broken under php 5.3.3

Gary Douglas

Offline Gary Douglas

  • *
  • 68
  • +1/-0
Re: - Solved - Groupoffice on two identicial SMEServers not working
« Reply #11 on: December 08, 2011, 09:29:05 AM »
Problem resolved by removing php5.3.3 and reinstalling php5.2.10 from rpms from sme8_6b cd