Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: Nokia390 on May 02, 2009, 12:30:13 AM

Title: OCS and GLPI
Post by: Nokia390 on May 02, 2009, 12:30:13 AM
hi all
i´ve install OCS, and it works ok
but glpi give me this messege:
Your database version isn't compatible with the version of the code installed. An update is needed."
but does not update....
thanks
Title: Re: OCS and GLPI
Post by: JanzY on June 04, 2009, 09:13:21 PM
Hello;

The same problem here.

I have done fresh installation of SME 7.4 from CD.
Then I install OCS and GLPI step by step from the manual http://wiki.contribs.org/OCS_Inventory_Tools#Maintainer .

Thanks for help.
Title: Re: OCS and GLPI
Post by: JanzY on June 11, 2009, 06:26:34 PM
Hi,

problem solved.
You just need to do a manual install the latest version of GLPI (I installed version 0.71.6).
http://glpi-project.org/spip.php?article172
 
I didn't "Unpack the new archive and overwrite all files of the old version" but just renamed the old folder with GLPI contents to xx_OLD.

By
Title: Re: OCS and GLPI
Post by: Nokia390 on June 22, 2009, 02:05:24 PM
hi
problem solved, with last sme update
Title: Re: OCS and GLPI
Post by: JanzY on August 04, 2009, 09:45:24 PM
Hi,

Which version of GLPI do you use?
I can't upgrade to 0.7.2 .

By...
Title: Re: OCS and GLPI
Post by: Nokia390 on August 05, 2009, 01:16:32 PM
Hi,

Which version of GLPI do you use?
I can't upgrade to 0.7.2 .

By...

hi
0.68.3
Title: Re: OCS and GLPI
Post by: JanzY on August 05, 2009, 01:27:26 PM
Hi Nokia390,

Please let me know, if you'll upgrade. I use version 0.7.1.6 .
How many computers do you manage with OCS & GLPI?
Title: Re: OCS and GLPI
Post by: Nokia390 on August 06, 2009, 04:50:38 PM
hi
I can´t upgrade, only 0.68.3 work in my sme
I wish to upgrade it, but...
My OCS and GLPI manage about 130 PC´s and 3 servers (windows and linux)
I try to upgrade 0.7* like you did it but didnt work.
best regards
Title: Re: OCS and GLPI
Post by: Nokia390 on August 12, 2009, 06:08:10 PM
i can´t still upgrade to any 0.7.*
how do you do it?
Title: Re: OCS and GLPI
Post by: globalsi on August 13, 2009, 11:04:03 AM
Hi
I've got the same problem (SME 7.4)

I try to use GLPI 0.72.1

I rename the folder /opt/inventory/glpi to glpi.old
I unpack glpi-0.72.1.tar.gz to /opt/inventory/glpi
I change the group to www
But when i go to my serveur https://myserver/glpi ... the page is blank ...  :sad:

any ideas or tips ?

thanks
globalsi
Title: Re: OCS and GLPI
Post by: Stefano on August 13, 2009, 11:40:19 AM
Hi
I've got the same problem (SME 7.4)

I try to use GLPI 0.72.1

I rename the folder /opt/inventory/glpi to glpi.old
I unpack glpi-0.72.1.tar.gz to /opt/inventory/glpi
I change the group to www
But when i go to my serveur https://myserver/glpi ... the page is blank ...  :sad:

any ideas or tips ?

thanks
globalsi

read the upgrade instructions and search for errors in /var/log/httpd/ could be a good start

Ciao
Stefano
Title: Re: OCS and GLPI
Post by: globalsi on August 13, 2009, 12:05:00 PM
(i restarted httpd-e-smith and followed http://www.glpi-project.org/spip.php?article172 )

I haven't any errors in /var/log/httpd/error_log and /var/log/httpd/access_log
Title: Re: OCS and GLPI
Post by: globalsi on August 13, 2009, 04:46:36 PM
auto response ....

glpi 0.72 need php5 ....
SME 7.4 use php4

this can't work. :neutral:
Title: Re: OCS and GLPI
Post by: globalsi on August 13, 2009, 05:20:16 PM
How to know the glpi version installed with this method  ?
http://wiki.contribs.org/OCS_Inventory_Tools

I follow the step.
OCS works but not GLPI ...
http://myserversme/glpi give me this message "Your database version isn't compatible with the version of the code installed. An update is needed."

thanks
Title: Re: OCS and GLPI
Post by: JanzY on August 13, 2009, 09:08:29 PM
Hi Nokia...

When you copy directory GLPI 1.71.6 and restart httpd services, what do you see when you tried to access glpi over the browser?
In my case was, that PHP can't write to some of the directories of the new GLPI directories. Then I modified the rights on that directories and voila, it works.

By.
Title: Re: OCS and GLPI
Post by: JanzY on August 13, 2009, 09:24:30 PM
Hi Globalsi,

like you already mentioned, the version 1.72 needs PHP 5 and on SME server 7.4 in installed PHP 4.3.9 .

The version of GLPI installed with that method is 0.68.3 (I'm almost certain).

I did't tried to upgrade PHP for testing glpi 1.72 because I run some other applications on my SME server and I really don't won't to broke any of them.

GLPI version 1.71.6 runs with no complications for me.

By.
Title: Re: OCS and GLPI
Post by: Nokia390 on August 14, 2009, 10:20:00 AM
ok
It works (0.71.6)
but have the same problem whith 7.2
best regards
Title: Re: OCS and GLPI
Post by: JanzY on August 14, 2009, 02:48:02 PM
Hi,

read my answer to Globalsi.

By
Title: Re: OCS and GLPI
Post by: globalsi on August 14, 2009, 03:47:18 PM
Hi,
I installed glpi-0.71.6 with new installation (instead of update)
I have actived OCSNG in the configuration/restriction

I have 2 computers listed in OCSNG but when i try to import them in glpi, I have this message : "no new computer to import"....

any ideas or tips ?
for exemple, what is in setup / OCSNG Mode
 - OCSweb database user
 - OCSweb user password

thanks

Title: Re: OCS and GLPI
Post by: Nokia390 on August 14, 2009, 04:53:24 PM
hi
I think you have to sincronise glpi and ocs

put dbname
user and password ( config show ocs ), it work for me.
Title: Re: OCS and GLPI
Post by: globalsi on August 14, 2009, 05:20:25 PM
ok, all works fine now.
Title: Re: OCS and GLPI
Post by: JanzY on August 18, 2009, 09:51:12 PM
Hi,

Just when I thought everthing works I realized, that I don't see any software in GLPI.
How about you 2?

By.
Title: Re: OCS and GLPI
Post by: JanzY on August 18, 2009, 10:24:27 PM
Hi,

Just when I thought everthing works I realized, that I don't see any software in GLPI.
How about you 2?

By.

I find the problem.
In the synchronization settings of OCS NG "Use the software dictionary of OCS" I change from Yes 2 NO and now I see software 2.

Sorry for this post but in the first (and second) look I didn't find the problem. Anyway please post your settings just to compare.

By.
Title: Re: OCS and GLPI
Post by: Nokia390 on August 21, 2009, 11:15:05 AM
hi
i upgrade to PHP5 and glpi 0.72.1 works fine, i dont have problems with other contribs, because we have option to only glpi work whith php5, like egroupware still working with php 4.3.9.

best regards
Title: Re: OCS and GLPI
Post by: globalsi on August 27, 2009, 09:10:55 AM
I find the problem.
In the synchronization settings of OCS NG "Use the software dictionary of OCS" I change from Yes 2 NO and now I see software 2.

Sorry for this post but in the first (and second) look I didn't find the problem. Anyway please post your settings just to compare.

By.

which settings ?
Title: Re: OCS and GLPI
Post by: wlud on October 16, 2009, 09:56:00 PM
As for myslef, I upgrader to php 5 following : http://wiki.contribs.org/PHP5

Then I checked that OCS and glpi 0.68.3 works well.. ok..
I moved /opt/inventory/glpi to /opt inventory/glpi068
I copied the 0.72 glpi dir in /opt/inventory
and .. white page.. I checked all the rights and ownership of the directories and set them exactly to theose of 0.68.3.. same thing..
I checked /var/log/messages and this is what I get :

Oct 16 21:48:49 support httpd: PHP Parse error:  parse error, unexpected '=', expecting ')' in /opt/inventory/glpi/inc/common.function.php on line 1591

line 1591 is : function getURLContent ($url, &$msgerr=NULL, $rec=0) {


any idea ?

Cheers,
Phil.

Title: Re: OCS and GLPI
Post by: wlud on October 16, 2009, 09:57:59 PM
P.S : ocs is still working well, so i suppose php5 is correctly set..
Title: Re: OCS and GLPI
Post by: Stefano on October 16, 2009, 10:00:18 PM
Oct 16 21:48:49 support httpd: PHP Parse error:  parse error, unexpected '=', expecting ')' in /opt/inventory/glpi/inc/common.function.php on line 1591
line 1591 is : function getURLContent ($url, &$msgerr=NULL, $rec=0) {
any idea ?

what about posting on glpi's (http://www.glpi-project.org/forum/) forums? :-)
Title: Re: OCS and GLPI
Post by: wlud on October 16, 2009, 10:15:58 PM
My bad, I'll try there..
Title: Re: OCS and GLPI
Post by: Nokia390 on November 23, 2009, 01:06:25 PM
Now have the same problem with GLPI 0.72.3, doesn´t work.
Title: Re: OCS and GLPI
Post by: Stefano on November 23, 2009, 02:54:51 PM
Now have the same problem with GLPI 0.72.3, doesn´t work.

"it doesn't work" is an useless info.. what about looking in the logs? :-)

in any case, this is a GLPI issue, so you should first search in GLPI support, then report here
Title: Re: OCS and GLPI
Post by: wlud on November 23, 2009, 03:04:37 PM
Solved this problem using this contrib : ?topic=43988.new;topicseen#new
You can have ocs running under php4 and glpi running under php5.. The important thing is to configure the ebay used by glpi to use php5 ot to configure the opt/? directory used as stated in the howto..
One crucial point is to restore the rights of the directories EXACTLY as they were with 0.68.x ..
Works fine for me now.
Title: Re: OCS and GLPI
Post by: Stefano on November 23, 2009, 03:22:05 PM
Solved this problem using this contrib : ?topic=43988.new;topicseen#new

mmmhh... did you miss something here? :-)
Title: Re: OCS and GLPI
Post by: wlud on November 23, 2009, 03:31:55 PM
Yes.. I missed the beginning of the url : http://forums.contribs.org/index.php??topic=43988.new;topicseen#new
Title: Re: OCS and GLPI
Post by: wlud on November 23, 2009, 03:33:18 PM
deleted
Title: Re: OCS and GLPI
Post by: wlud on November 23, 2009, 03:36:25 PM
Forget about the url I sent.. it's bogus.. I dunno why I gave this one..

The contrib is there : http://wiki.contribs.org/PHP5

My bad..
Title: Re: OCS and GLPI
Post by: Stefano on November 23, 2009, 03:37:56 PM
Forget about the url I sent.. it's bogus.. I dunno why I gave this one..

The contrib is there : http://wiki.contribs.org/PHP5

My bad..

don't worry, it's monday ;-)
Title: Re: OCS and GLPI
Post by: Nokia390 on November 23, 2009, 05:02:28 PM
I installed it was fine, like the 0.7.21 version, when i install everising is ok( copy the files to /opt/inventory..., and give the permisions to the files, but, wen i go to https://myserverip/glpi, doesn´t work, can´t load the page.


(sory my english)
Title: Re: OCS and GLPI
Post by: Nokia390 on November 23, 2009, 05:14:19 PM
ok solved the problem was PHP5


mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/
pico /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/90glpi

<Directory /opt/inventory/glpi>
       AddHandler php5-cgi .php
       Action php5-cgi /php5-cgi/php-cgi
</Directory>


thanks

Title: Re: OCS and GLPI
Post by: JanzY on January 15, 2010, 07:34:13 PM
Welcome and a lot of happiness in 2010.

Can you help me with GLPI and LDAP protocol for authentication. Connection is successful but when I tri to import users from that server it does't work.
Is there something else to configure?

Thanks.
By