- Posts: 3
[Solved] problem with IP addresses between moodle/joomla
- xavier alexander
- Topic Author
- Offline
- New Member
-
Less
More
13 years 6 months ago - 13 years 6 months ago #1
by xavier alexander
[Solved] problem with IP addresses between moodle/joomla was created by xavier alexander
Hi,
i use following versions :
Moodle 2.3.2+
Joomla 2.5.7
Joomdle 0.82
i installed everything correct, went through it over and over, but can't get rid of these 2 health-check error lines in Joomdle plugin @ joomla :
Moodle to Joomla HTTP connectivity Moodle cannot connect to Joomla
Joomdle Web Services Received empty response from Moodle
server external IP : 191.2.3.4 ( not the real one, just example
)
server internal IP : 10.0.0.205
the moodle config file has the public IP in the CFG=>WWWROOT : 191.2.3.4/moodle
if i change this to http://10.0.0.205/moodle, then the error lines in joomdle plugin health check dissapear and all is green, but then i can't access Moodle anymore from public internet
i already changed all Ip addresses to all possible combinations between moodle/joomdle auth setting/joomla, but nothing seems to work here.
i already did/ammended all the possible reasons from the wiki about health-check in Joomdle plugin, but nothing seems to work.
The firewall i use is a Watchguard Firebox, well configured
i am pretty sure i did not miss 1 setting in moodle/joomdle configs
i don't have a DNS server running, prefer not to use it.
is there a trick or workaround for this issue ? i can't believe i am the only one suffering this problem....
Something to do with the .htaccess file ? if yes, which .htaccess file to ammend and how ?
can someone please help me on this issue ?
thank you in advance
i use following versions :
Moodle 2.3.2+
Joomla 2.5.7
Joomdle 0.82
i installed everything correct, went through it over and over, but can't get rid of these 2 health-check error lines in Joomdle plugin @ joomla :
Moodle to Joomla HTTP connectivity Moodle cannot connect to Joomla
Joomdle Web Services Received empty response from Moodle
server external IP : 191.2.3.4 ( not the real one, just example
server internal IP : 10.0.0.205
the moodle config file has the public IP in the CFG=>WWWROOT : 191.2.3.4/moodle
if i change this to http://10.0.0.205/moodle, then the error lines in joomdle plugin health check dissapear and all is green, but then i can't access Moodle anymore from public internet
i already changed all Ip addresses to all possible combinations between moodle/joomdle auth setting/joomla, but nothing seems to work here.
i already did/ammended all the possible reasons from the wiki about health-check in Joomdle plugin, but nothing seems to work.
The firewall i use is a Watchguard Firebox, well configured
i am pretty sure i did not miss 1 setting in moodle/joomdle configs
i don't have a DNS server running, prefer not to use it.
is there a trick or workaround for this issue ? i can't believe i am the only one suffering this problem....
Something to do with the .htaccess file ? if yes, which .htaccess file to ammend and how ?
can someone please help me on this issue ?
thank you in advance
Last edit: 13 years 6 months ago by Chris.
Please Log in or Create an account to join the conversation.
- xavier alexander
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 3
13 years 6 months ago #2
by xavier alexander
Replied by xavier alexander on topic problem with IP addresses between moodle/joomdle/joomla
ok problem solved
for those of you who have similar problems :
no need for setting up a DNS server or other complicated things
just change the line in moodle's config.php :
$CFG->wwwroot = "http://".$_SERVER["HTTP_HOST"]."/moodle";
this way you get your favorable green lines in joomdle health check
for those of you who have similar problems :
no need for setting up a DNS server or other complicated things
just change the line in moodle's config.php :
$CFG->wwwroot = "http://".$_SERVER["HTTP_HOST"]."/moodle";
this way you get your favorable green lines in joomdle health check
Please Log in or Create an account to join the conversation.
- Carlos Ramírez
- Offline
- New Member
-
Less
More
- Posts: 3
13 years 6 months ago - 13 years 6 months ago #3
by Carlos Ramírez
Hi, I have a function to get the url, but is the same target, now, my problem is how to do same operation in joomdle, because when I link to " mydomain.tld/moodle " from joomla it works good, but not when I use www. So in moodle it is solved, but not in joomla.
Replied by Carlos Ramírez on topic problem with IP addresses between moodle/joomdle/joomla
xavier alexander wrote: ok problem solved
for those of you who have similar problems :
no need for setting up a DNS server or other complicated things
just change the line in moodle's config.php :
$CFG->wwwroot = "http://".$_SERVER["HTTP_HOST"]."/moodle";
this way you get your favorable green lines in joomdle health check
Hi, I have a function to get the url, but is the same target, now, my problem is how to do same operation in joomdle, because when I link to " mydomain.tld/moodle " from joomla it works good, but not when I use www. So in moodle it is solved, but not in joomla.
Last edit: 13 years 6 months ago by Carlos Ramírez.
Please Log in or Create an account to join the conversation.
- xavier alexander
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 3
13 years 6 months ago #4
by xavier alexander
Replied by xavier alexander on topic problem with IP addresses between moodle/joomdle/joomla
Try the internal IP adress in Joomla config
f.e. 127.0.0.1 or your local lan ip of the moodle server
It workes for me in this way
f.e. 127.0.0.1 or your local lan ip of the moodle server
It workes for me in this way
Please Log in or Create an account to join the conversation.
- Carlos Ramírez
- Offline
- New Member
-
Less
More
- Posts: 3
13 years 6 months ago #5
by Carlos Ramírez
Replied by Carlos Ramírez on topic problem with IP addresses between moodle/joomdle/joomla
Thank for your answer, but I have a shared hosting, so the ip don't works. but I solved it in part with www. redirect.
Please Log in or Create an account to join the conversation.