[Maintain] Problems with the semi unreleased version of maintain 2.5

Bahr, Brad (Adecco Engineering & Technical) brad.bahr at hp.com
Wed Sep 21 16:40:17 UTC 2011


Kirsten,
Thus far, I have discovered a couple of issues that I hope may be of some use to others wanting to get this tarball running on a vanilla php install (on if which resolved the notice/error that I had previously queried you with).

Regarding the "undefined function libglue_param()" error that I was receiving when loading index.php, this was the result of an unfortunately deprecated feature of php where you could use a short tag for defining the opening of a php statement (i.e. using '<?' Instead of '<?php').  Since the new php5 default is to disallow this short tagging, the includes/requires were not being interpreted properly in 'libglue/libglue.php'; therefore, the libglue_param function was never getting defined since it was in one of the includes that was not being loaded.  To get around this problem, I set 'short_open_tag = On' in the php.ini which enables this deprecated feature.

The second problem I ran into was with MySQL and authentication.  Once I had solved the previous issue, I was getting 'bad username or password' when trying to login.  Long story short, I found that the 'password' field in the 'user' table was a varchar(28).  When using the PASSWORD() function in MySQL (which maintain uses for password checking), a 40 character hash prefixed with an asterisk is generated which obviously gets truncated.  I increased the password field size in MySQL to remedy this issue.

Do you know of any other 'gotchas' I may run into with php5 and mysql5.1?

Regards,
Brad



From: Petersen, Kirsten J - NET [mailto:Kirsten.Petersen at oregonstate.edu]
Sent: Tuesday, September 20, 2011 5:31 PM
To: Bahr, Brad (Adecco Engineering & Technical); Lim, Edward
Cc: maintain at osuosl.org
Subject: Re: Problems with the semi unreleased version of maintain 2.5

Yeah... that tarball was not necessarily install-friendly.  Let me take a look...


-Kirsten Petersen
Network Services
Oregon State University
http://oregonstate.edu/net
net at oregonstate.edu

From: "Bahr, Brad (Adecco Engineering & Technical)" <brad.bahr at hp.com<mailto:brad.bahr at hp.com>>
Date: Wed, 21 Sep 2011 00:22:00 +0100
To: Kirsten Petersen <kirsten.petersen at oregonstate.edu<mailto:kirsten.petersen at oregonstate.edu>>
Cc: "maintain at osuosl.org<mailto:maintain at osuosl.org>" <maintain at osuosl.org<mailto:maintain at osuosl.org>>
Subject: Problems with the semi unreleased version of maintain 2.5

Kirsten,
Back in July a coworker of mine, Adam Nielson, had requested a version of maintain that supported php5.  I'm in the process of trying to implement version 2.5 that he received from you, and I'm running into some issues.  After stepping through the items lined out in the INSTALL doc, I browse to index.php and get the following errors in apache:

PHP Notice:  Undefined variable: conf in /opt/maintain-2.5/docs/index.php on line 31
PHP Fatal error:  Call to undefined function libglue_param() in /opt/maintain-2.5/modules/config.php on line 90

My environment is:
RHEL 6 Server x64
                httpd-2.2.15-9.el6_1.2.x86_64
                php-pdo-5.3.3-3.el6.x86_64
                php-mysql-5.3.3-3.el6.x86_64
                php-common-5.3.3-3.el6.x86_64
                php-5.3.3-3.el6.x86_64
                php-cli-5.3.3-3.el6.x86_64
                mysql-5.1.52-1.el6_0.1.x86_64
                mysql-server-5.1.52-1.el6_0.1.x86_64
                mysql-libs-5.1.52-1.el6_0.1.x86_64
                php-ldap-5.3.3-3.el6.x86_64
                php-pear-1.9.0-2.el6.noarch
                dhcp-4.1.1-19.P1.el6_1.1.x86_64

Am I running a version of php that is incompatible with v. 2.5?  Or am I missing some obvious configuration step/parameter?

Any assistance would be greatly appreciated,

Brad Bahr
Hewlett Packard - Core Test Strategy Labs
R & D Test Infrastructure - Systems Administrator
W 208-396-4989

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osuosl.org/pipermail/maintain/attachments/20110921/33b76d68/attachment-0001.html>


More information about the maintain mailing list