php-mcrypt and php-sysvsem

2012-02-27 Thread Clark Cooper
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.s390x5.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.1rhel-s390x-server-6 
php-pecl-memcache.s390x3.0.5-3.el6  rhel-s390x-server-6 
php-pgsql.s390x5.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.coo...@vc3.com | www.VC3.com
Follow us: 





Re: php-mcrypt and php-sysvsem

2012-02-27 Thread Scott M. Sorrentino
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, Feb 27, 2012 at 06:55:15PM +, 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.  
 

I had the mcrypt issue on RHEL5 (php not php53) and worked around it by
installing the php source RPM, building the mcrypt module by hand and
adding it to php.ini.

- -- 
Scott M. Sorrentino sms...@cornell.edu
CIT Systems  Operations, Cornell University
726 Rhodes Hall // (607) 254-8535
GnuPG fingerprint: 6E30 0B83 43F8 CF8B 3B44  7DBE 6AAE DFC9 1DE6 8C1C

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk9L2qEACgkQaq7fyR3mjBxoOwCfaKwqv/VRo1EgxisL5t7Kv3c/
RisAoKjscHjJp7cdMGAPaXFRUa5zIopr
=a+pV
-END PGP SIGNATURE-


RE: php-mcrypt and php-sysvsem

2012-02-27 Thread Clark Cooper
I figured that might be the case.  I'll give that an attempt should it appear 
to be my only option.

Thank you,
Clark


-Original Message-
From: Scott M. Sorrentino [mailto:sms...@cornell.edu] 
Sent: Monday, February 27, 2012 2:34 PM
To: vcl-user@incubator.apache.org
Subject: Re: php-mcrypt and php-sysvsem

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, Feb 27, 2012 at 06:55:15PM +, 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.  
 

I had the mcrypt issue on RHEL5 (php not php53) and worked around it by 
installing the php source RPM, building the mcrypt module by hand and adding it 
to php.ini.

- --
Scott M. Sorrentino sms...@cornell.edu CIT Systems  Operations, Cornell 
University
726 Rhodes Hall // (607) 254-8535
GnuPG fingerprint: 6E30 0B83 43F8 CF8B 3B44  7DBE 6AAE DFC9 1DE6 8C1C

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk9L2qEACgkQaq7fyR3mjBxoOwCfaKwqv/VRo1EgxisL5t7Kv3c/
RisAoKjscHjJp7cdMGAPaXFRUa5zIopr
=a+pV
-END PGP SIGNATURE-


Re: php-mcrypt and php-sysvsem

2012-02-27 Thread James O'Dell
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


I highly suggest using the 'epel' repository.
(http://fedoraproject.org/wiki/EPEL).

It will allow you to handle updates to the extention, and
the extention's depenencies.

'php-mcrypt' is available there.

As for 'sysvsem' it looks to me it has to be added to php at compile
time.

When I use 'php -i', I'm seeing it show up in the Configure Command
('--enable-sysvsem').

__Jim

On 2/27/2012 10:55 AM, 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.s390x5.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.1rhel-s390x-server-6   
   
 php-pecl-memcache.s390x3.0.5-3.el6  rhel-s390x-server-6   
   
 php-pgsql.s390x5.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.coo...@vc3.com | www.VC3.com
 Follow us: 
 
 
 


- -- 
Jim O'Dell
Network Analyst
California State University Fullerton
Email: jod...@fullerton.edu
Phone: (657) 278-2256
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9L3z0ACgkQREVHAOnXPYQxlACghfvLBHjiQJv/6HUIfTMdlVJu
CwcAnRqI73G4fhXXZlTv190dc1w7qFJj
=5oRP
-END PGP SIGNATURE-


Re: php-mcrypt and php-sysvsem

2012-02-27 Thread Dmitri Chebotarov
Scott,

You can also remove mcrypt dependency via this patch, if your environment 
permits:

https://cwiki.apache.org/VCL/patch-to-remove-mcrypt-dependency.html

Thanks.
On Feb 27, 2012, at 14:33 , Scott M. Sorrentino wrote:

 
 Hash: SHA1
 
 On Mon, Feb 27, 2012 at 06:55:15PM +, 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.  
 
 
 I had the mcrypt issue on RHEL5 (php not php53) and worked around it by
 installing the php source RPM, building the mcrypt module by hand and
 adding it to php.ini.
 
 - -- 
 Scott M. Sorrentino sms...@cornell.edu
 CIT Systems  Operations, Cornell University
 726 Rhodes Hall // (607) 254-8535
 GnuPG fingerprint: 6E30 0B83 43F8 CF8B 3B44  7DBE 6AAE DFC9 1DE6 8C1C
 
 




Thank you.

-
Dmitri Chebotarov
dcheb...@gmu.edu
703-993-6175
-




signature.asc
Description: Message signed with OpenPGP using GPGMail


RE: php-mcrypt and php-sysvsem

2012-02-27 Thread Clark Cooper
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.htmlNet   PHP
crypt.html  index.html   Mathmisc_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_thomp...@ncsu.edu] 
Sent: Monday, February 27, 2012 2:52 PM
To: vcl-user@incubator.apache.org
Subject: Re: php-mcrypt and php-sysvsem

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Clark,

This page explains how to remove the dependency on mcrypt:

https://cwiki.apache.org/confluence/display/VCL/Patch+to+remove+mcrypt+dependency

- 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.1rhel-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.coo...@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)

iEYEARECAAYFAk9L3uMACgkQV/LQcNdtPQOltgCeM4G9+F9WNo87kqgXlR+xC1o8
9zMAn0PvrednZ1J6jIN64cMBhQovAwSo
=vLN6
-END PGP SIGNATURE-



Linux servers with VLAN ID

2012-02-27 Thread Dmitri Chebotarov
Hi All,

In case if I need to use VLANs on external interface on Linux servers, what 
would be the good way to handle eth1.xx interfaces? 
I'm adding xCAT support for VCL and xCAT servers have external interface with 
VLAD id. 
The VCL script in rc.local checks for eth1, but not for eth1.xxx (which is 
understandable). 

I plan to change 1st two lines to:

IP0=$(ifconfig | grep inet addr:|awk '{print $2}' | awk -F: '{print $2}'|awk 
'{ if (NR==1) print $0 }')
IP1=$(ifconfig | grep inet addr:|awk '{print $2}' | awk -F: '{print $2}'|awk 
'{ if (NR==2) print $0 }')

or to:

IF0=$(ip -f inet addr|grep inet |grep eth0| awk {'print $7'})
IF1=$(ip -f inet addr|grep inet |grep eth1| awk {'print $7'})

IP0=$(ifconfig $IF0 | grep inet | awk '{print $2}' | awk -F: '{print $2}')
IP1=$(ifconfig $IF1 | grep inet | awk '{print $2}' | awk -F: '{print $2}')

and wanted to ask if anyone had to solve similar problem in the past and may be 
have different solution. 

I cannot hardcode eth1.VLANID, b/c the same VCL is used for VMs as well, and 
those don't have VLANs (VLANs done by ESXi host)

This is original script, which I plan to change:

# This file will get overwritten during image capture. Any customizations
# should be put into /etc/init.d/vcl_post_reserve or /etc/init.d/vcl_post_load
# Note these files do not exist by default.

IP0=$(ifconfig eth0 | grep inet | awk '{print $2}' | awk -F: '{print $2}')
IP1=$(ifconfig eth1 | grep inet | awk '{print $2}' | awk -F: '{print $2}')

sed -i -e '/.*AllowUsers .*$/d' /etc/ssh/sshd_config
sed -i -e '/.*ListenAddress .*/d' /etc/ssh/sshd_config
sed -i -e '/.*ListenAddress .*/d' /etc/ssh/external_sshd_config
echo AllowUsers root  /etc/ssh/sshd_config
echo ListenAddress $IP0  /etc/ssh/sshd_config
echo ListenAddress $IP1  /etc/ssh/external_sshd_config
/etc/rc.d/init.d/ext_sshd stop
/etc/rc.d/init.d/sshd stop
sleep 2
/etc/rc.d/init.d/sshd start
/etc/rc.d/init.d/ext_sshd start


Thank you.

-
Dmitri Chebotarov
dcheb...@gmu.edu
703-993-6175
-




signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: php-mcrypt and php-sysvsem

2012-02-27 Thread Josh Thompson
-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.htmlNet   PHP
 crypt.html  index.html   Mathmisc_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_thomp...@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.1rhel-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.coo...@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-



Problem with sem_get() in utils.php

2012-02-27 Thread Gary Trail

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.htmlNet   PHP
crypt.html  index.html   Mathmisc_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_thomp...@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.1rhel-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.coo...@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-

Re: failed mysql connection

2012-02-27 Thread Dmitri Chebotarov
Clark

Are you able to connect to mysql from command line on rhel61 host, 'mysql -u 
vcluser -p' ?
Can you also try with GRAND ALL ON vcl.* TO 'vcluser'@localhost?

On Feb 27, 2012, at 16:36 , Clark Cooper wrote:

 Still trying to get VCL setup/configured and moving past the php-mcrypt 
 issue, I also receive the following message within my testsetup.php output:
 
 
 Testing mysql connection ...
 Error: fsockopen(): unable to connect to localhost:3306 (Permission denied)
 Could not connect to port 3306 on localhost
 
 
 For debugging purposes, I have stopped iptables.  Here is the connection 
 information within my secrets.php file:
 
 [root@rhel61 .ht-inc]# grep vcl secrets.php 
 $vclhost = 'localhost'; # name of mysql server
 $vcldb = 'vcl'; # name of mysql database
 $vclusername = 'vcluser';  # username to access database
 $vclpassword = 'vcluserpassword';  # password to access database
 
 
 
 Note the following outputs from MySQL:
 
 mysql show grants for vcluser@localhost;
 ++
 | Grants for vcluser@localhost
|
 ++
 | GRANT USAGE ON *.* TO 'vcluser'@'localhost' IDENTIFIED BY PASSWORD 
 '*BC54E34381D07EB1FF25938A2F524C17201FC22F' |
 | GRANT SELECT, INSERT, UPDATE, DELETE, CREATE TEMPORARY TABLES, LOCK TABLES 
 ON `vcl`.* TO 'vcluser'@'localhost' |
 ++
 2 rows in set (0.00 sec)
 
 
 mysql select host, user, password from mysql.user;
 +---+-+---+
 | host  | user| password  |
 +---+-+---+
 | localhost | root| *A195277AB4567B2C3C4CDCAF6B5B48409EFE6765 |
 | 127.0.0.1 | root| *A195277AB4567B2C3C4CDCAF6B5B48409EFE6765 |
 | localhost | vcluser | *BC54E34381D07EB1FF25938A2F524C17201FC22F |
 +---+-+---+
 
 
 Clark Cooper | Senior Systems Engineer
 1301 Gervais Street, Suite 1800 | Columbia, SC 29201
 (d) 803.978.2699 | (f) 803.733.5888
 clark.coo...@vc3.com | www.VC3.com
 Follow us: 
 
 
 




Thank you.

-
Dmitri Chebotarov
dcheb...@gmu.edu
703-993-6175
-




signature.asc
Description: Message signed with OpenPGP using GPGMail