You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@vcl.apache.org by Gary Trail <tr...@rpi.edu> on 2012/02/27 23:20:41 UTC

Problem with sem_get() in utils.php

All:

Using RHEL 6.2,  we are working through the "cookbook install" on:

https://cwiki.apache.org/confluence/display/VCL/VCL+2.2.1+Installation

We have completed the database install and are now working on the web 
front-end.  we have installed the mcrypt dependency removal patch. 
Clicking on "Proceed to Login", we enter admin userid and default 
password and subsequent screen says "Fatal error: Call to undefined 
function sem_get() in /var/www/html/vcl/.ht-inc/utils.php on line 251". 
  Offending line is:

"if(! ($semid = sem_get(SEMKEY, 1, 0666, 1)))"

We are also seeing a message "Notice: Uninitialized string offset: 0 in 
/var/www/html/vcl/.ht-inc/utils.php on line 3208".  Not sure if this 
indicates fatal error or not.

Any ideas on what may be causing the problems and where to look?

Thanks
Gary


Josh Thompson wrote the following on 2/27/2012 3:43 PM:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Clark,
>
> After following the directions on that page, you can ignore the error message
> about mcrypt from testsetup.php.
>
> Josh
>
> On Monday, February 27, 2012 8:15:07 PM Clark Cooper wrote:
>> Yes, I had already attempted that patch, but testsetup.php continues to
>> report the missing modules.  I have installed though:
>>
>> [root@rhel61 phpseclib]# pwd
>> /var/www/html/vcl/.ht-inc/phpseclib
>> [root@rhel61 phpseclib]#
>> [root@rhel61 phpseclib]# ls
>> Crypt       docbook.css  intro.html  math.html        Net       PHP
>> crypt.html  index.html   Math        misc_crypt.html  net.html
>> sym_crypt.html [root@rhel61 phpseclib]#
>> [root@rhel61 phpseclib]# ls -l ../no_mcrypt.patch
>> -rw-r--r--. 1 root root 1460 Jun 16  2011 ../no_mcrypt.patch
>>
>> -Clark
>>
>>
>> -----Original Message-----
>> From: Josh Thompson [mailto:josh_thompson@ncsu.edu]
>> Sent: Monday, February 27, 2012 2:52 PM
>> To: vcl-user@incubator.apache.org
>> Subject: Re: php-mcrypt and php-sysvsem
>>
>> - gpg control packet
>> Clark,
>>
>> This page explains how to remove the dependency on mcrypt:
>>
>> https://cwiki.apache.org/confluence/display/VCL/Patch+to+remove+mcrypt+depen
>> dency
>>
>>  From testing I just did on a RHEL 6.2 system, it looks like the php-process
>> package provides sysvsem.
>>
>> Josh
>>
>> On Monday, February 27, 2012 6:55:15 PM Clark Cooper wrote:
>>> I'm attempting to install/configure VCL on a RHEL61 z/Linux system and
>>> having difficulty with the requirements for php-mcrypt and php-sysvsem
>>> as these packages do not appear to be available for my release.
>>>
>>> The testpsetup.php script identifies the following problems:
>>>
>>> Testing for required php extensions ...
>>> * Missing these extensiosn: mcrypt, sysvsem
>>>
>>>
>>> Again, my release does not appear to contain these packages.  What
>>> should I do in order to get mcrypt support:
>>>
>>>
>>> [root@rhel61 mcrypt-2.6.8]# yum list available|grep php
>>> cups-php.s390x                 1:1.4.2-44.el6
>>> rhel-s390x-server-optional-6 graphviz-php.s390x             2.26.0-7.el6
>>>
>>>       rhel-s390x-server-optional-6 php-bcmath.s390x
>>>
>>> 5.3.3-3.el6_2.6      rhel-s390x-server-optional-6 php-dba.s390x
>>>
>>>       5.3.3-3.el6_2.6      rhel-s390x-server-optional-6
>>>       php-devel.s390x
>>>
>>>            5.3.3-3.el6_2.6      rhel-s390x-server-optional-6
>>>
>>> php-embedded.s390x             5.3.3-3.el6_2.6
>>> rhel-s390x-server-optional-6 php-enchant.s390x
>>> 5.3.3-3.el6_2.6>
>>>       rhel-s390x-server-optional-6 php-imap.s390x
>>>
>>> 5.3.3-3.el6_2.6      rhel-s390x-server-optional-6 php-intl.s390x
>>>
>>>       5.3.3-3.el6_2.6      rhel-s390x-server-optional-6
>>>       php-mbstring.s390x
>>>
>>>            5.3.3-3.el6_2.6      rhel-s390x-server-optional-6
>>>            php-odbc.s390x>
>>>                 5.3.3-3.el6_2.6      rhel-s390x-server-6
>>>                 php-pecl-apc.s390x>
>>>             3.1.3p1-1.2.el6.1    rhel-s390x-server-6
>>>             php-pecl-memcache.s390x>
>>>         3.0.5-3.el6          rhel-s390x-server-6 php-pgsql.s390x
>>>
>>>     5.3.3-3.el6_2.6      rhel-s390x-server-6 php-process.s390x
>>>
>>> 5.3.3-3.el6_2.6      rhel-s390x-server-optional-6 php-pspell.s390x
>>>
>>>       5.3.3-3.el6_2.6      rhel-s390x-server-optional-6
>>>       php-recode.s390x
>>>
>>>            5.3.3-3.el6_2.6      rhel-s390x-server-optional-6
>>>            php-snmp.s390x>
>>>                 5.3.3-3.el6_2.6
>>>                 rhel-s390x-server-optional-6
>>>
>>> php-soap.s390x                 5.3.3-3.el6_2.6      rhel-s390x-server-6
>>> php-tidy.s390x                 5.3.3-3.el6_2.6
>>> rhel-s390x-server-optional-6 php-zts.s390x
>>> 5.3.3-3.el6_2.6>
>>>       rhel-s390x-server-optional-6 rrdtool-php.s390x
>>>
>>> 1.3.8-6.el6          rhel-s390x-server-optional-6 uuid-php.s390x
>>>
>>>       1.6.1-10.el6         rhel-s390x-server-optional-6
>>>
>>> Clark Cooper | Senior Systems Engineer
>>> 1301 Gervais Street, Suite 1800 | Columbia, SC 29201
>>> (d) 803.978.2699 | (f) 803.733.5888
>>> Clark.Cooper@VC3.com | www.VC3.com
>>> Follow us:
> - --
> - -------------------------------
> Josh Thompson
> VCL Developer
> North Carolina State University
>
> my GPG/PGP key can be found at pgp.mit.edu
>
> All electronic mail messages in connection with State business which
> are sent to or received by this account are subject to the NC Public
> Records Law and may be disclosed to third parties.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.17 (GNU/Linux)
>
> iEYEARECAAYFAk9L6wgACgkQV/LQcNdtPQOJWgCfT5g/tKzSAnvctwjBVfvEY4IM
> U90An3ALbKHFcXgAGaTeOPPJY+iUBCfA
> =4+1Z
> -----END PGP SIGNATURE-----
>
>


Re: Problem with sem_get() in utils.php

Posted by Gary Trail <tr...@rpi.edu>.
Found the problem to be a missing sysvsem available in
the php-process rpm located in RHEL Server Optional channel on red Hat 
network.

We now get the main VCL page.

Thanks Aaron!

Gary

Aaron Peeler wrote the following on 2/28/2012 8:09 AM:
> Does the testsetup.php report any missing modules?
>
> https://your.server.org/vcl/testsetup.php
>
> Aaron
>
> On Mon, Feb 27, 2012 at 5:20 PM, Gary Trail<tr...@rpi.edu>  wrote:
>> All:
>>
>> Using RHEL 6.2,  we are working through the "cookbook install" on:
>>
>> https://cwiki.apache.org/confluence/display/VCL/VCL+2.2.1+Installation
>>
>> We have completed the database install and are now working on the web
>> front-end.  we have installed the mcrypt dependency removal patch. Clicking
>> on "Proceed to Login", we enter admin userid and default password and
>> subsequent screen says "Fatal error: Call to undefined function sem_get() in
>> /var/www/html/vcl/.ht-inc/utils.php on line 251".  Offending line is:
>>
>> "if(! ($semid = sem_get(SEMKEY, 1, 0666, 1)))"
>>
>> We are also seeing a message "Notice: Uninitialized string offset: 0 in
>> /var/www/html/vcl/.ht-inc/utils.php on line 3208".  Not sure if this
>> indicates fatal error or not.
>>
>> Any ideas on what may be causing the problems and where to look?
>>
>> Thanks
>> Gary
>>
>>
>> Josh Thompson wrote the following on 2/27/2012 3:43 PM:
>>>
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> Clark,
>>>
>>> After following the directions on that page, you can ignore the error
>>> message
>>> about mcrypt from testsetup.php.
>>>
>>> Josh
>>>
>>> On Monday, February 27, 2012 8:15:07 PM Clark Cooper wrote:
>>>>
>>>> Yes, I had already attempted that patch, but testsetup.php continues to
>>>> report the missing modules.  I have installed though:
>>>>
>>>> [root@rhel61 phpseclib]# pwd
>>>> /var/www/html/vcl/.ht-inc/phpseclib
>>>> [root@rhel61 phpseclib]#
>>>> [root@rhel61 phpseclib]# ls
>>>> Crypt       docbook.css  intro.html  math.html        Net       PHP
>>>> crypt.html  index.html   Math        misc_crypt.html  net.html
>>>> sym_crypt.html [root@rhel61 phpseclib]#
>>>> [root@rhel61 phpseclib]# ls -l ../no_mcrypt.patch
>>>> -rw-r--r--. 1 root root 1460 Jun 16  2011 ../no_mcrypt.patch
>>>>
>>>> -Clark
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: Josh Thompson [mailto:josh_thompson@ncsu.edu]
>>>> Sent: Monday, February 27, 2012 2:52 PM
>>>> To: vcl-user@incubator.apache.org
>>>> Subject: Re: php-mcrypt and php-sysvsem
>>>>
>>>> - gpg control packet
>>>> Clark,
>>>>
>>>> This page explains how to remove the dependency on mcrypt:
>>>>
>>>>
>>>> https://cwiki.apache.org/confluence/display/VCL/Patch+to+remove+mcrypt+depen
>>>> dency
>>>>
>>>>   From testing I just did on a RHEL 6.2 system, it looks like the
>>>> php-process
>>>> package provides sysvsem.
>>>>
>>>> Josh
>>>>
>>>> On Monday, February 27, 2012 6:55:15 PM Clark Cooper wrote:
>>>>>
>>>>> I'm attempting to install/configure VCL on a RHEL61 z/Linux system and
>>>>> having difficulty with the requirements for php-mcrypt and php-sysvsem
>>>>> as these packages do not appear to be available for my release.
>>>>>
>>>>> The testpsetup.php script identifies the following problems:
>>>>>
>>>>> Testing for required php extensions ...
>>>>> * Missing these extensiosn: mcrypt, sysvsem
>>>>>
>>>>>
>>>>> Again, my release does not appear to contain these packages.  What
>>>>> should I do in order to get mcrypt support:
>>>>>
>>>>>
>>>>> [root@rhel61 mcrypt-2.6.8]# yum list available|grep php
>>>>> cups-php.s390x                 1:1.4.2-44.el6
>>>>> rhel-s390x-server-optional-6 graphviz-php.s390x             2.26.0-7.el6
>>>>>
>>>>>       rhel-s390x-server-optional-6 php-bcmath.s390x
>>>>>
>>>>> 5.3.3-3.el6_2.6      rhel-s390x-server-optional-6 php-dba.s390x
>>>>>
>>>>>       5.3.3-3.el6_2.6      rhel-s390x-server-optional-6
>>>>>       php-devel.s390x
>>>>>
>>>>>            5.3.3-3.el6_2.6      rhel-s390x-server-optional-6
>>>>>
>>>>> php-embedded.s390x             5.3.3-3.el6_2.6
>>>>> rhel-s390x-server-optional-6 php-enchant.s390x
>>>>> 5.3.3-3.el6_2.6>
>>>>>       rhel-s390x-server-optional-6 php-imap.s390x
>>>>>
>>>>> 5.3.3-3.el6_2.6      rhel-s390x-server-optional-6 php-intl.s390x
>>>>>
>>>>>       5.3.3-3.el6_2.6      rhel-s390x-server-optional-6
>>>>>       php-mbstring.s390x
>>>>>
>>>>>            5.3.3-3.el6_2.6      rhel-s390x-server-optional-6
>>>>>            php-odbc.s390x>
>>>>>                 5.3.3-3.el6_2.6      rhel-s390x-server-6
>>>>>                 php-pecl-apc.s390x>
>>>>>             3.1.3p1-1.2.el6.1    rhel-s390x-server-6
>>>>>             php-pecl-memcache.s390x>
>>>>>         3.0.5-3.el6          rhel-s390x-server-6 php-pgsql.s390x
>>>>>
>>>>>     5.3.3-3.el6_2.6      rhel-s390x-server-6 php-process.s390x
>>>>>
>>>>> 5.3.3-3.el6_2.6      rhel-s390x-server-optional-6 php-pspell.s390x
>>>>>
>>>>>       5.3.3-3.el6_2.6      rhel-s390x-server-optional-6
>>>>>       php-recode.s390x
>>>>>
>>>>>            5.3.3-3.el6_2.6      rhel-s390x-server-optional-6
>>>>>            php-snmp.s390x>
>>>>>                 5.3.3-3.el6_2.6
>>>>>                 rhel-s390x-server-optional-6
>>>>>
>>>>> php-soap.s390x                 5.3.3-3.el6_2.6      rhel-s390x-server-6
>>>>> php-tidy.s390x                 5.3.3-3.el6_2.6
>>>>> rhel-s390x-server-optional-6 php-zts.s390x
>>>>> 5.3.3-3.el6_2.6>
>>>>>       rhel-s390x-server-optional-6 rrdtool-php.s390x
>>>>>
>>>>> 1.3.8-6.el6          rhel-s390x-server-optional-6 uuid-php.s390x
>>>>>
>>>>>       1.6.1-10.el6         rhel-s390x-server-optional-6
>>>>>
>>>>> Clark Cooper | Senior Systems Engineer
>>>>> 1301 Gervais Street, Suite 1800 | Columbia, SC 29201
>>>>> (d) 803.978.2699 | (f) 803.733.5888
>>>>> Clark.Cooper@VC3.com | www.VC3.com
>>>>> Follow us:
>>>
>>> - --
>>> - -------------------------------
>>> Josh Thompson
>>> VCL Developer
>>> North Carolina State University
>>>
>>> my GPG/PGP key can be found at pgp.mit.edu
>>>
>>> All electronic mail messages in connection with State business which
>>> are sent to or received by this account are subject to the NC Public
>>> Records Law and may be disclosed to third parties.
>>> -----BEGIN PGP SIGNATURE-----
>>> Version: GnuPG v2.0.17 (GNU/Linux)
>>>
>>> iEYEARECAAYFAk9L6wgACgkQV/LQcNdtPQOJWgCfT5g/tKzSAnvctwjBVfvEY4IM
>>> U90An3ALbKHFcXgAGaTeOPPJY+iUBCfA
>>> =4+1Z
>>> -----END PGP SIGNATURE-----
>>>
>>>
>>
>
>
>

-- 
Gary Trail
Director of Network Services
Rensselaer Hartford Graduate Center
860-548-7869
trailg@rpi.edu


Re: Problem with sem_get() in utils.php

Posted by Aaron Peeler <fa...@ncsu.edu>.
Does the testsetup.php report any missing modules?

https://your.server.org/vcl/testsetup.php

Aaron

On Mon, Feb 27, 2012 at 5:20 PM, Gary Trail <tr...@rpi.edu> wrote:
> All:
>
> Using RHEL 6.2,  we are working through the "cookbook install" on:
>
> https://cwiki.apache.org/confluence/display/VCL/VCL+2.2.1+Installation
>
> We have completed the database install and are now working on the web
> front-end.  we have installed the mcrypt dependency removal patch. Clicking
> on "Proceed to Login", we enter admin userid and default password and
> subsequent screen says "Fatal error: Call to undefined function sem_get() in
> /var/www/html/vcl/.ht-inc/utils.php on line 251".  Offending line is:
>
> "if(! ($semid = sem_get(SEMKEY, 1, 0666, 1)))"
>
> We are also seeing a message "Notice: Uninitialized string offset: 0 in
> /var/www/html/vcl/.ht-inc/utils.php on line 3208".  Not sure if this
> indicates fatal error or not.
>
> Any ideas on what may be causing the problems and where to look?
>
> Thanks
> Gary
>
>
> Josh Thompson wrote the following on 2/27/2012 3:43 PM:
>>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Clark,
>>
>> After following the directions on that page, you can ignore the error
>> message
>> about mcrypt from testsetup.php.
>>
>> Josh
>>
>> On Monday, February 27, 2012 8:15:07 PM Clark Cooper wrote:
>>>
>>> Yes, I had already attempted that patch, but testsetup.php continues to
>>> report the missing modules.  I have installed though:
>>>
>>> [root@rhel61 phpseclib]# pwd
>>> /var/www/html/vcl/.ht-inc/phpseclib
>>> [root@rhel61 phpseclib]#
>>> [root@rhel61 phpseclib]# ls
>>> Crypt       docbook.css  intro.html  math.html        Net       PHP
>>> crypt.html  index.html   Math        misc_crypt.html  net.html
>>> sym_crypt.html [root@rhel61 phpseclib]#
>>> [root@rhel61 phpseclib]# ls -l ../no_mcrypt.patch
>>> -rw-r--r--. 1 root root 1460 Jun 16  2011 ../no_mcrypt.patch
>>>
>>> -Clark
>>>
>>>
>>> -----Original Message-----
>>> From: Josh Thompson [mailto:josh_thompson@ncsu.edu]
>>> Sent: Monday, February 27, 2012 2:52 PM
>>> To: vcl-user@incubator.apache.org
>>> Subject: Re: php-mcrypt and php-sysvsem
>>>
>>> - gpg control packet
>>> Clark,
>>>
>>> This page explains how to remove the dependency on mcrypt:
>>>
>>>
>>> https://cwiki.apache.org/confluence/display/VCL/Patch+to+remove+mcrypt+depen
>>> dency
>>>
>>>  From testing I just did on a RHEL 6.2 system, it looks like the
>>> php-process
>>> package provides sysvsem.
>>>
>>> Josh
>>>
>>> On Monday, February 27, 2012 6:55:15 PM Clark Cooper wrote:
>>>>
>>>> I'm attempting to install/configure VCL on a RHEL61 z/Linux system and
>>>> having difficulty with the requirements for php-mcrypt and php-sysvsem
>>>> as these packages do not appear to be available for my release.
>>>>
>>>> The testpsetup.php script identifies the following problems:
>>>>
>>>> Testing for required php extensions ...
>>>> * Missing these extensiosn: mcrypt, sysvsem
>>>>
>>>>
>>>> Again, my release does not appear to contain these packages.  What
>>>> should I do in order to get mcrypt support:
>>>>
>>>>
>>>> [root@rhel61 mcrypt-2.6.8]# yum list available|grep php
>>>> cups-php.s390x                 1:1.4.2-44.el6
>>>> rhel-s390x-server-optional-6 graphviz-php.s390x             2.26.0-7.el6
>>>>
>>>>      rhel-s390x-server-optional-6 php-bcmath.s390x
>>>>
>>>> 5.3.3-3.el6_2.6      rhel-s390x-server-optional-6 php-dba.s390x
>>>>
>>>>      5.3.3-3.el6_2.6      rhel-s390x-server-optional-6
>>>>      php-devel.s390x
>>>>
>>>>           5.3.3-3.el6_2.6      rhel-s390x-server-optional-6
>>>>
>>>> php-embedded.s390x             5.3.3-3.el6_2.6
>>>> rhel-s390x-server-optional-6 php-enchant.s390x
>>>> 5.3.3-3.el6_2.6>
>>>>      rhel-s390x-server-optional-6 php-imap.s390x
>>>>
>>>> 5.3.3-3.el6_2.6      rhel-s390x-server-optional-6 php-intl.s390x
>>>>
>>>>      5.3.3-3.el6_2.6      rhel-s390x-server-optional-6
>>>>      php-mbstring.s390x
>>>>
>>>>           5.3.3-3.el6_2.6      rhel-s390x-server-optional-6
>>>>           php-odbc.s390x>
>>>>                5.3.3-3.el6_2.6      rhel-s390x-server-6
>>>>                php-pecl-apc.s390x>
>>>>            3.1.3p1-1.2.el6.1    rhel-s390x-server-6
>>>>            php-pecl-memcache.s390x>
>>>>        3.0.5-3.el6          rhel-s390x-server-6 php-pgsql.s390x
>>>>
>>>>    5.3.3-3.el6_2.6      rhel-s390x-server-6 php-process.s390x
>>>>
>>>> 5.3.3-3.el6_2.6      rhel-s390x-server-optional-6 php-pspell.s390x
>>>>
>>>>      5.3.3-3.el6_2.6      rhel-s390x-server-optional-6
>>>>      php-recode.s390x
>>>>
>>>>           5.3.3-3.el6_2.6      rhel-s390x-server-optional-6
>>>>           php-snmp.s390x>
>>>>                5.3.3-3.el6_2.6
>>>>                rhel-s390x-server-optional-6
>>>>
>>>> php-soap.s390x                 5.3.3-3.el6_2.6      rhel-s390x-server-6
>>>> php-tidy.s390x                 5.3.3-3.el6_2.6
>>>> rhel-s390x-server-optional-6 php-zts.s390x
>>>> 5.3.3-3.el6_2.6>
>>>>      rhel-s390x-server-optional-6 rrdtool-php.s390x
>>>>
>>>> 1.3.8-6.el6          rhel-s390x-server-optional-6 uuid-php.s390x
>>>>
>>>>      1.6.1-10.el6         rhel-s390x-server-optional-6
>>>>
>>>> Clark Cooper | Senior Systems Engineer
>>>> 1301 Gervais Street, Suite 1800 | Columbia, SC 29201
>>>> (d) 803.978.2699 | (f) 803.733.5888
>>>> Clark.Cooper@VC3.com | www.VC3.com
>>>> Follow us:
>>
>> - --
>> - -------------------------------
>> Josh Thompson
>> VCL Developer
>> North Carolina State University
>>
>> my GPG/PGP key can be found at pgp.mit.edu
>>
>> All electronic mail messages in connection with State business which
>> are sent to or received by this account are subject to the NC Public
>> Records Law and may be disclosed to third parties.
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v2.0.17 (GNU/Linux)
>>
>> iEYEARECAAYFAk9L6wgACgkQV/LQcNdtPQOJWgCfT5g/tKzSAnvctwjBVfvEY4IM
>> U90An3ALbKHFcXgAGaTeOPPJY+iUBCfA
>> =4+1Z
>> -----END PGP SIGNATURE-----
>>
>>
>



-- 
Aaron Peeler
Program Manager
Virtual Computing Lab
NC State University

All electronic mail messages in connection with State business which
are sent to or received by this account are subject to the NC Public
Records Law and may be disclosed to third parties.