try this:
$cu = curl_init();
$url = "http://classes.vm:5080/openmeetings/services/UserService/getSession";;
curl_setopt($cu, CURLOPT_URL,$url);
curl_setopt($cu, CURLOPT_VERBOSE,        1);  #show the conversation
$curlOutput    = curl_exec($cu);
$response = (curl_getinfo($cu,CURLINFO_HTTP_CODE ));
curl_close($cu);

print_r($curlOutput);
print_r($response);



On 2012-09-30 09:54, Maxim Solodovnik wrote:
Unfortunately Im no so good in PHP programming :(
I guess we need PHP guru :)
everything is working on my Ubuntu machines :(

On Sun, Sep 30, 2012 at 10:48 PM, Mohammed Arafa
<mohammed.ar...@gmail.com [91]> wrote:

i went looking for a php test and found this:

<?php
if(array_search(curl, get_loaded_extensions())){ echo "curl is
there"; } else echo "curl is not there"
?>

i ran it and receive a positive response. it is not a curl issue

On Sun, Sep 30, 2012 at 11:21 AM, Maxim Solodovnik
<solomax...@gmail.com [85]> wrote:

Java applications are not dependent on system architecture.

On Sun, Sep 30, 2012 at 10:19 PM, Mohammed Arafa
<mohammed.ar...@gmail.com [84]> wrote:

is it possible that openmeetings is a 32 bit application?

On Sun, Sep 30, 2012 at 11:15 AM, Maxim Solodovnik
<solomax...@gmail.com [78]> wrote:

I hope anybody else here is using CenOS and can help you.
I did all my testings on Ubuntu :(

On Sun, Sep 30, 2012 at 9:50 PM, Mohammed Arafa
<mohammed.ar...@gmail.com [77]> wrote:

here is my verification of curl for php
[root@classes ~]# rpm -qil php-common | grep curl
/etc/php.d/curl.ini
/usr/lib64/php/modules/curl.so
[root@classes ~]# curl
curl: try curl --help or curl --manual for more information

On Sun, Sep 30, 2012 at 10:44 AM, Maxim Solodovnik
<solomax...@gmail.com [71]> wrote:

Im not sure about CenOS
in debian/ubuntu
I did install "php5-curl - CURL module for php5"

solomax@antares:~$ apt-cache search curl|grep php
php5-curl - CURL module for php5

solomax@antares:~$ locate .deb|grep curl

/var/cache/apt/archives/php5-curl_5.3.10-1ubuntu3.3_i386.deb

/var/cache/apt/archives/php5-curl_5.3.10-1ubuntu3.4_i386.deb

On Sun, Sep 30, 2012 at 9:23 PM, Mohammed Arafa
<mohammed.ar...@gmail.com [70]> wrote:

Maxim

I appreciate the offer and i will not forget it but The
vms are not on the net, there is at least one firewall
blocking access. so in the meantime i have attached my
very rough notes on what i did on my centos 6.3 vm

thank you

On Sun, Sep 30, 2012 at 2:50 AM, Maxim Solodovnik
<solomax...@gmail.com [64]> wrote:

Im afraid the only option I can propose:

let me take a look at your server and Ill try to
debug/investigate and maybe will find the reason.

On Sat, Sep 29, 2012 at 6:20 PM, Mohammed Arafa
<mohammed.ar...@gmail.com [63]> wrote:

Hello

I just set up a fresh new vm and went thru the
configuration steps and the issue is repeated on the
new vm. i was using the admin user.
thanks

On Thu, Sep 27, 2012 at 12:25 AM, Maxim Solodovnik
<solomax...@gmail.com [57]> wrote:

Since you can see the response in the browser I
guess it some kind of misconfiguration
Ill try to google it if Ill have enough time

On Thu, Sep 27, 2012 at 8:41 AM, Mohammed Arafa
<mohammed.ar...@gmail.com [56]> wrote:

Hello Maxim

There was no response. I added it to 2 different
spots within the code and saw no response. is
this a bug?

On Wed, Sep 26, 2012 at 6:40 AM, Mohammed Arafa
<mohammed.ar...@gmail.com [50]> wrote:

Maxim

111 222













http://classes.marafa.vm:5080/openmeetings/services/UserService/getSessionResource
[42] id #96AAA BBB













http://classes.marafa.vm:5080/openmeetings/services/UserService/getSessionResource
[43] id #96Request OpenMeetings! OpenMeetings
Service failed and no response was returned.

On Tue, Sep 25, 2012 at 11:37 PM, Maxim
Solodovnik <solomax...@gmail.com [44]> wrote:

Can you add 
echo("AAA");
print_r($response);
echo("BBB");

to check if it was response, was it empty,
what is in the response if not empty ...

On Wed, Sep 26, 2012 at 9:57 AM, Mohammed
Arafa <mohammed.ar...@gmail.com [41]> wrote:

Yes it works for fqdn and localhost

On Sep 25, 2012 10:56 PM, "Maxim
Solodovnik" <solomax...@gmail.com [40]>
wrote:

and what about wget?
is it work?

On Wed, Sep 26, 2012 at 9:25 AM,
Mohammed Arafa <mohammed.ar...@gmail.com
[39]> wrote:


















http://localhost:5080/openmeetings/services/UserService/getSessionResource
[29] id

















#96http://localhost:5080/openmeetings/services/UserService/getSessionResource
[30] id #96Request OpenMeetings!
OpenMeetings Service failed and no
response was returned.

i used that url and it failed (of
course since openmeetings is not on my
localhost but on a vm!)

so i used the original setting i had
(the fqdn) and that too gave

















http://classes.vm:5080/openmeetings/services/UserService/getSessionResource
[31] id

















#96http://classes.vm:5080/openmeetings/services/UserService/getSessionResource
[32] id #96Request OpenMeetings!
OpenMeetings Service failed and no
response was returned.

but the url in the browser works now

On Tue, Sep 25, 2012 at 10:17 PM,
Maxim Solodovnik <solomax...@gmail.com
[33]> wrote:

OK :)
can you use PRINT_R()
insted of var_dump?

or maybe even better:
print_r($request);
print_r($session);

On Wed, Sep 26, 2012 at 9:13 AM,
Mohammed Arafa
<mohammed.ar...@gmail.com [28]>
wrote:

line 57 and 58 are:






                       
if(!$response) {









                          
die("Request OpenMeetings!
OpenMeetings Service failed and no
response was returned.");






                       
}

so that sentence was added to line
55

anyways, the response now is

resource(96) of type (curl)
resource(96) of type (Unknown)
Request OpenMeetings! OpenMeetings
Service failed and no response was
returned.

On Tue, Sep 25, 2012 at 10:05 PM,
Maxim Solodovnik
<solomax...@gmail.com [22]> wrote:

The error you are getting
"Request OpenMeetings!
OpenMeetings Service failed and
no response was returned."

is because of 
$response = curl_exec($session);

$response is none/empty/error

openmeetings_rest_service.php
line 58

can you add something like:
var_dump($session);

before line 58?

Maybe this will give as a hint
what is wrong

On Wed, Sep 26, 2012 at 9:00 AM,
Mohammed Arafa
<mohammed.ar...@gmail.com [21]>
wrote:

php-curl (curl.so) is in
php-common which is already
installed.
i also installed



php-pear-Net-Curl-1.2.5-4.el6.noarch
(and restarted httpd) with no
luck

On Tue, Sep 25, 2012 at 9:53
PM, Maxim Solodovnik
<solomax...@gmail.com [15]>
wrote:

I guess you need "php curl"
installed

On Wed, Sep 26, 2012 at 8:50
AM, Mohammed Arafa
<mohammed.ar...@gmail.com
[14]> wrote:

Hello  Maxim

appreciate your very quick
response.

I checked my urls and it
worked both ways. fyi it
was wget





















http://classes.vm:5080/openmeetings/services/UserService/getSession
[7] where the fqdn is
actually the same for both
openmeetings and moodle.
also, i am concerned that
the "openmeetings" in the
url is not in the moodle
config page unless it is
the "OpenMeetings webapp
name"

as for php, these are the
rpm packages installed:
php-5.3.3-14.el6_3.x86_64


php-cli-5.3.3-14.el6_3.x86_64



php-common-5.3.3-14.el6_3.x86_64

php-gd-5.3.3-14.el6_3.x86_64


php-intl-5.3.3-14.el6_3.x86_64




php-mbstring-5.3.3-14.el6_3.x86_64



php-mysql-5.3.3-14.el6_3.x86_64


php-pdo-5.3.3-14.el6_3.x86_64

php-pear-1.9.4-4.el6.noarch






php-pear-Auth-SASL-1.0.4-1.el6.noarch







php-pear-HTTP-Request-1.4.4-2.el6.noarch



php-pear-Mail-1.2.0-1.el6.noarch






php-pear-Mail-Mime-1.8.4-1.el6.noarch





php-pear-Net-DIME-1.0.2-1.el6.noarch





php-pear-Net-SMTP-1.6.1-1.el6.noarch







php-pear-Net-Socket-1.0.10-1.el6.noarch





php-pear-Net-URL-1.0.15-4.el6.noarch




php-pear-SOAP-0.12.0-4.el6.noarch


php-soap-5.3.3-14.el6_3.x86_64


php-xml-5.3.3-14.el6_3.x86_64



php-xmlrpc-5.3.3-14.el6_3.x86_64

if there is anything
missing pls let me know

as to apache logs. nothing
unusual. error logs only
show startup status. and
access logs show only me.
as for the openmeeting
logs, i wouldnt know what
to look for in there.

On Tue, Sep 25, 2012 at
9:22 PM, Maxim Solodovnik
<solomax...@gmail.com [8]>
wrote:

Hello Mohammed,

The issue is most
probably with
configuration.
If you have PHP
experience you can add
some debug into moodle
plugin. If not:

please check if the
following URL works for
you:
























"<URL_TO_OM_FROM_YOUR_MOODLE_CONFIG>/services/UserService/getSession"?

It it works on your
computer try it using
























"wget <URL_TO_OM_FROM_YOUR_MOODLE_CONFIG>/services/UserService/getSession"
on the machine Moodle is
running

if both OK Apache logs
need to be checked,
maybe some necessesary
PHP modules are not
installed

On Wed, Sep 26, 2012 at
8:10 AM, Mohammed Arafa

<mohammed.ar...@gmail.com
[6]> wrote:

hello

i believe i have
succesfully installed
moodle and
openmeetings
individually. each url
path works
independently. i used:
























apache-openmeetings-incubating-2.0.0.r1361497-14-07-2012_1108.tar.gz



















apache-openmeetings-moodle-plugin-incubating-1.4.tar.gz










jodconverter-core-3.0-beta-4-dist.zip


moodle-latest-23.tgz

i have verified that
individually the 2
applications work, i
have also verified
that my admin user as
well as the soap user
are able to login.
however, whenever i
attempt to add an
openmeeting activity
to my course i keep
running into this
error:

Request OpenMeetings!
OpenMeetings Service
failed and no response
was returned.

the red5.log doesnt
show much and google
doesnt know anything
about this error
except that it is
coming from
openmeeting code. any
help or hint
appreciated as things
were going smoothly
till this error showed
up

also, i used the
default settings when
setting up
openmeetings and the
moodle pluginany and
all advise will be
helpful

thank you

--

[1]
805010942448935 [2]

LinkedIn Profile [3]

Latest Resume [4]

VoIP:



sip:mar...@fedoraproject.org
[5]

--
WBR
Maxim aka solomax

--

[9]
805010942448935 [10]

LinkedIn Profile [11]

Latest Resume [12]

VoIP:

sip:mar...@fedoraproject.org
[13]

--
WBR
Maxim aka solomax

--

[16]
805010942448935 [17]

LinkedIn Profile [18]

Latest Resume [19]

VoIP:
sip:mar...@fedoraproject.org
[20]

--
WBR
Maxim aka solomax

--

[23]
805010942448935 [24]

LinkedIn Profile [25]

Latest Resume [26]

VoIP: sip:mar...@fedoraproject.org
[27]

--
WBR
Maxim aka solomax

--

[34]
805010942448935 [35]

LinkedIn Profile [36]

Latest Resume [37]

VoIP: sip:mar...@fedoraproject.org
[38]

--
WBR
Maxim aka solomax

--
WBR
Maxim aka solomax

--

[45]
805010942448935 [46]

LinkedIn Profile [47]

Latest Resume [48]

VoIP: sip:mar...@fedoraproject.org [49]

--

[51]
805010942448935 [52]

LinkedIn Profile [53]

Latest Resume [54]

VoIP: sip:mar...@fedoraproject.org [55]

--
WBR
Maxim aka solomax

--

[58]
805010942448935 [59]

LinkedIn Profile [60]

Latest Resume [61]

VoIP: sip:mar...@fedoraproject.org [62]

--
WBR
Maxim aka solomax

--

[65]
805010942448935 [66]

LinkedIn Profile [67]

Latest Resume [68]

VoIP: sip:mar...@fedoraproject.org [69]

--
WBR
Maxim aka solomax

--

[72]
805010942448935 [73]

LinkedIn Profile [74]

Latest Resume [75]

VoIP: sip:mar...@fedoraproject.org [76]

--
WBR
Maxim aka solomax

--

[79]
805010942448935 [80]

LinkedIn Profile [81]

Latest Resume [82]

VoIP: sip:mar...@fedoraproject.org [83]

--
WBR
Maxim aka solomax

--

[86]
805010942448935 [87]

LinkedIn Profile [88]

Latest Resume [89]

VoIP: sip:mar...@fedoraproject.org [90]

--
WBR
Maxim aka solomax

--
This message has been scanned for viruses and
dangerous content by MAILSCANNER [92], and is
believed to be clean.

Links:
------
[1]

https://www.redhat.com/wapps/training/certification/verify.html?certNumber=805010942448935&amp;verify=Verify
[2]

https://www.redhat.com/wapps/training/certification/verify.html?certNumber=805010942448935&amp;verify=Verify
[3] http://www.linkedin.com/in/mohammedarafa
[4] http://www.in-egypt.net/MArafaCV.pdf
[5] mailto:mar...@fedoraproject.org
[6] mailto:mohammed.ar...@gmail.com
[7] http://classes.vm:5080/openmeetings/services/UserService/getSession
[8] mailto:solomax...@gmail.com
[9]

https://www.redhat.com/wapps/training/certification/verify.html?certNumber=805010942448935&amp;verify=Verify
[10]

https://www.redhat.com/wapps/training/certification/verify.html?certNumber=805010942448935&amp;verify=Verify
[11] http://www.linkedin.com/in/mohammedarafa
[12] http://www.in-egypt.net/MArafaCV.pdf
[13] mailto:mar...@fedoraproject.org
[14] mailto:mohammed.ar...@gmail.com
[15] mailto:solomax...@gmail.com
[16]

https://www.redhat.com/wapps/training/certification/verify.html?certNumber=805010942448935&amp;verify=Verify
[17]

https://www.redhat.com/wapps/training/certification/verify.html?certNumber=805010942448935&amp;verify=Verify
[18] http://www.linkedin.com/in/mohammedarafa
[19] http://www.in-egypt.net/MArafaCV.pdf
[20] mailto:mar...@fedoraproject.org
[21] mailto:mohammed.ar...@gmail.com
[22] mailto:solomax...@gmail.com
[23]

https://www.redhat.com/wapps/training/certification/verify.html?certNumber=805010942448935&amp;verify=Verify
[24]

https://www.redhat.com/wapps/training/certification/verify.html?certNumber=805010942448935&amp;verify=Verify
[25] http://www.linkedin.com/in/mohammedarafa
[26] http://www.in-egypt.net/MArafaCV.pdf
[27] mailto:mar...@fedoraproject.org
[28] mailto:mohammed.ar...@gmail.com
[29]

http://localhost:5080/openmeetings/services/UserService/getSessionResource
[30]

http://localhost:5080/openmeetings/services/UserService/getSessionResource
[31]

http://classes.vm:5080/openmeetings/services/UserService/getSessionResource
[32]

http://classes.vm:5080/openmeetings/services/UserService/getSessionResource
[33] mailto:solomax...@gmail.com
[34]

https://www.redhat.com/wapps/training/certification/verify.html?certNumber=805010942448935&amp;verify=Verify
[35]

https://www.redhat.com/wapps/training/certification/verify.html?certNumber=805010942448935&amp;verify=Verify
[36] http://www.linkedin.com/in/mohammedarafa
[37] http://www.in-egypt.net/MArafaCV.pdf
[38] mailto:mar...@fedoraproject.org
[39] mailto:mohammed.ar...@gmail.com
[40] mailto:solomax...@gmail.com
[41] mailto:mohammed.ar...@gmail.com
[42]

http://classes.marafa.vm:5080/openmeetings/services/UserService/getSessionResource
[43]

http://classes.marafa.vm:5080/openmeetings/services/UserService/getSessionResource
[44] mailto:solomax...@gmail.com
[45]

https://www.redhat.com/wapps/training/certification/verify.html?certNumber=805010942448935&amp;verify=Verify
[46]

https://www.redhat.com/wapps/training/certification/verify.html?certNumber=805010942448935&amp;verify=Verify
[47] http://www.linkedin.com/in/mohammedarafa
[48] http://www.in-egypt.net/MArafaCV.pdf
[49] mailto:mar...@fedoraproject.org
[50] mailto:mohammed.ar...@gmail.com
[51]

https://www.redhat.com/wapps/training/certification/verify.html?certNumber=805010942448935&amp;verify=Verify
[52]

https://www.redhat.com/wapps/training/certification/verify.html?certNumber=805010942448935&amp;verify=Verify
[53] http://www.linkedin.com/in/mohammedarafa
[54] http://www.in-egypt.net/MArafaCV.pdf
[55] mailto:mar...@fedoraproject.org
[56] mailto:mohammed.ar...@gmail.com
[57] mailto:solomax...@gmail.com
[58]

https://www.redhat.com/wapps/training/certification/verify.html?certNumber=805010942448935&amp;verify=Verify
[59]

https://www.redhat.com/wapps/training/certification/verify.html?certNumber=805010942448935&amp;verify=Verify
[60] http://www.linkedin.com/in/mohammedarafa
[61] http://www.in-egypt.net/MArafaCV.pdf
[62] mailto:mar...@fedoraproject.org
[63] mailto:mohammed.ar...@gmail.com
[64] mailto:solomax...@gmail.com
[65]

https://www.redhat.com/wapps/training/certification/verify.html?certNumber=805010942448935&amp;verify=Verify
[66]

https://www.redhat.com/wapps/training/certification/verify.html?certNumber=805010942448935&amp;verify=Verify
[67] http://www.linkedin.com/in/mohammedarafa
[68] http://www.in-egypt.net/MArafaCV.pdf
[69] mailto:mar...@fedoraproject.org
[70] mailto:mohammed.ar...@gmail.com
[71] mailto:solomax...@gmail.com
[72]

https://www.redhat.com/wapps/training/certification/verify.html?certNumber=805010942448935&amp;verify=Verify
[73]

https://www.redhat.com/wapps/training/certification/verify.html?certNumber=805010942448935&amp;verify=Verify
[74] http://www.linkedin.com/in/mohammedarafa
[75] http://www.in-egypt.net/MArafaCV.pdf
[76] mailto:mar...@fedoraproject.org
[77] mailto:mohammed.ar...@gmail.com
[78] mailto:solomax...@gmail.com
[79]

https://www.redhat.com/wapps/training/certification/verify.html?certNumber=805010942448935&amp;verify=Verify
[80]

https://www.redhat.com/wapps/training/certification/verify.html?certNumber=805010942448935&amp;verify=Verify
[81] http://www.linkedin.com/in/mohammedarafa
[82] http://www.in-egypt.net/MArafaCV.pdf
[83] mailto:mar...@fedoraproject.org
[84] mailto:mohammed.ar...@gmail.com
[85] mailto:solomax...@gmail.com
[86]

https://www.redhat.com/wapps/training/certification/verify.html?certNumber=805010942448935&amp;verify=Verify
[87]

https://www.redhat.com/wapps/training/certification/verify.html?certNumber=805010942448935&amp;verify=Verify
[88] http://www.linkedin.com/in/mohammedarafa
[89] http://www.in-egypt.net/MArafaCV.pdf
[90] mailto:mar...@fedoraproject.org
[91] mailto:mohammed.ar...@gmail.com
[92] http://www.mailscanner.info/

--
Mark Newnham

American Data Group
(303)741-5711

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Reply via email to