I have had moodle working interally for a few weeks with no issues (http://moodle/moodle)...but now having no joy since giving it an externally accessible IP (subset setup by external company to point to http://moodle.mywebsite.ie (in the same way we already have http://webct.mywebsite.ie) - server IP address changed appropriately - firewall rule in place and looks fine).
The config.php file is below (some of it)
$cfg -> wwwroot = 'http://moodle.mywebsite.ie';
$cfg -> dbtype = 'mysql'
$cfg -> dbhost = 'localhost'
$cfg -> dbname = 'moodle 193'
$cfg -> dbuser = 'root';
etc
Any ideas where im going wrong?
Any help/advice much appreciated...if I can provide any more information that might help please let me know...tearing my hair out here!
I should mention its the only thing running on the server....so not sure what issue is
I would be helpful if you described what was going wrong.
However, do you have an internal AND an external DNS. The *same* url will need to resolve to the appropriate IP externally and internally (i.e. same url but different IPs). That's usually all that's required.
However, do you have an internal AND an external DNS. The *same* url will need to resolve to the appropriate IP externally and internally (i.e. same url but different IPs). That's usually all that's required.
Hello Howard
Thanks so much for the quick response.
I have only 1 IP address 193.1.242.## (which I cant seem to ping at all)
(I have given the moodle server this IP Address, and added a firewall rule to allow access..and BT have put a redirect in place
(or so they say from http://moodle.mywebsite.ie)
With regards the config.php
I would need to have
&cfg -> wwwroot 'http://moodle.mywebsite.ie/moodle' (I cant have http://moodle.mywebsite.ie?)
Maybe I need to enure the redirect is from the /moodle address?
Very confused at this stage, is there something really silly I am doing wrong?
Thanks
Thanks so much for the quick response.
I have only 1 IP address 193.1.242.## (which I cant seem to ping at all)
(I have given the moodle server this IP Address, and added a firewall rule to allow access..and BT have put a redirect in place
(or so they say from http://moodle.mywebsite.ie)
With regards the config.php
I would need to have
&cfg -> wwwroot 'http://moodle.mywebsite.ie/moodle' (I cant have http://moodle.mywebsite.ie?)
Maybe I need to enure the redirect is from the /moodle address?
Very confused at this stage, is there something really silly I am doing wrong?
Thanks
There's a few things here. I would need to know much more about your network setup to give definite advice, however...
Your moodle server's IP is 193.1.242.something (you are HEAnet presumably). Whatever the IP is, then, it must be the SAME from everywhere - both internally and externally (very often not the case). Be absolutely sure and clear about this point before doing anything else - prove it!
If the above is true then moodle.mywebsite.ie needs to resolve to that IP both internally and externally. Again, this is not optional - make sure you check.
Only one config.php wwwroot setting can be right.
Redirects always worry me. It's a complication that almost always breaks stuff. You need to know *exactly* what rule has been created. "redirect" seems to mean different things to different people.
It's probably nothing too bad... just understanding what is going on in your configuration.
Your moodle server's IP is 193.1.242.something (you are HEAnet presumably). Whatever the IP is, then, it must be the SAME from everywhere - both internally and externally (very often not the case). Be absolutely sure and clear about this point before doing anything else - prove it!
If the above is true then moodle.mywebsite.ie needs to resolve to that IP both internally and externally. Again, this is not optional - make sure you check.
Only one config.php wwwroot setting can be right.
Redirects always worry me. It's a complication that almost always breaks stuff. You need to know *exactly* what rule has been created. "redirect" seems to mean different things to different people.
It's probably nothing too bad... just understanding what is going on in your configuration.
There's a few things here. I would need to know much more about your network setup to give definite advice, however...
Your moodle server's IP is 193.1.242.something (you are HEAnet presumably). Whatever the IP is, then, it must be the SAME from everywhere - both internally and externally (very often not the case). Be absolutely sure and clear about this point before doing anything else - prove it!
The server only has one IP address and there is one IP address on the firewall (to allow external access)
If the above is true then moodle.mywebsite.ie needs to resolve to that IP both internally and externally. Again, this is not optional - make sure you check.
Only one config.php wwwroot setting can be right.
I got an e-mail from BT...they said http://moodle.mywebsite.ie was redirecting to that IP address (I cant redirect to this I need the moodle part at the end?)
====
Hi Gareth
that A record is already in place , please see the below details
dig a moodle.mywebsite.ie
; <<>> DiG 9.5.1-P1 <<>> a moodle.ipa.ie
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46384
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 4
;; QUESTION SECTION:
;moodle.mywebsite.ie. IN A
;; ANSWER SECTION:
moodle.mywebsite.ie. 3600 IN A 193.1.242.xx
regards
============
Redirects always worry me. It's a complication that almost always breaks stuff. You need to know *exactly* what rule has been created. "redirect" seems to mean different things to different people.
It's probably nothing too bad... just understanding what is going on in your configuration.
I think I might need BT redirect
I think I will get onto BT to see exactly what has been setup
Are there any files I could send you privately that would maybe help sort this out?
Thanks again so much for all the help
Your moodle server's IP is 193.1.242.something (you are HEAnet presumably). Whatever the IP is, then, it must be the SAME from everywhere - both internally and externally (very often not the case). Be absolutely sure and clear about this point before doing anything else - prove it!
The server only has one IP address and there is one IP address on the firewall (to allow external access)
If the above is true then moodle.mywebsite.ie needs to resolve to that IP both internally and externally. Again, this is not optional - make sure you check.
Only one config.php wwwroot setting can be right.
I got an e-mail from BT...they said http://moodle.mywebsite.ie was redirecting to that IP address (I cant redirect to this I need the moodle part at the end?)
====
Hi Gareth
that A record is already in place , please see the below details
dig a moodle.mywebsite.ie
; <<>> DiG 9.5.1-P1 <<>> a moodle.ipa.ie
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46384
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 4
;; QUESTION SECTION:
;moodle.mywebsite.ie. IN A
;; ANSWER SECTION:
moodle.mywebsite.ie. 3600 IN A 193.1.242.xx
regards
============
Redirects always worry me. It's a complication that almost always breaks stuff. You need to know *exactly* what rule has been created. "redirect" seems to mean different things to different people.
It's probably nothing too bad... just understanding what is going on in your configuration.
I think I might need BT redirect
'http://moodle.mywebsite.ie/moodle'; to the same 193.1.242.xx address?
I think I will get onto BT to see exactly what has been setup
Are there any files I could send you privately that would maybe help sort this out?
Thanks again so much for all the help
Is 'moodle.mywebsite.ie' the ACTUAL name of your site or just an example? If it's supposed to be the actual one then it doesn't exist.
That won't help at all
It obviously hasn't been set up (properly) in DNS
mywebsite.ie shows...
Authoritative answers can be found from:
mywebsite.ie nameserver = ns1.novara.ie.
mywebsite.ie nameserver = ns3.novara.ie.
mywebsite.ie nameserver = ns2.novara.ie.
So, presumably, Novara hosting is in the mix here.
It would be good to know the actual IP address to see if it can be accessed. However, it looks like Novara (or you via your panel) should set up
* moodle.mywebsite.ie resolves to you IP in DNS zone (NOT a redirect.... that's different)
* The IP is allowed through your firewall - again, not a redirect.
That should work. I would avoid redirects like the plague. That's for when you want traffic from SITEA all to go to SITEB. You don't want that - you have a DNS issue. They are completely unrelated.
That won't help at all
It obviously hasn't been set up (properly) in DNS
mywebsite.ie shows...
Authoritative answers can be found from:
mywebsite.ie nameserver = ns1.novara.ie.
mywebsite.ie nameserver = ns3.novara.ie.
mywebsite.ie nameserver = ns2.novara.ie.
So, presumably, Novara hosting is in the mix here.
It would be good to know the actual IP address to see if it can be accessed. However, it looks like Novara (or you via your panel) should set up
* moodle.mywebsite.ie resolves to you IP in DNS zone (NOT a redirect.... that's different)
* The IP is allowed through your firewall - again, not a redirect.
That should work. I would avoid redirects like the plague. That's for when you want traffic from SITEA all to go to SITEB. You don't want that - you have a DNS issue. They are completely unrelated.
Sorry...I thought I would post mywebsite as opposed to our actual website
...but hey in for a penny!
Our website would be moodle.ipa.ie and IP address 193.1.242.45 (rule on firewall to let any traffic into that IP address)
I thought by giving this DNS name to BT they should be able to do the rest? They also did same thing with http://webct.ipa.ie
Thanks again for the rapid responses!
...but hey in for a penny!Our website would be moodle.ipa.ie and IP address 193.1.242.45 (rule on firewall to let any traffic into that IP address)
I thought by giving this DNS name to BT they should be able to do the rest? They also did same thing with http://webct.ipa.ie
Thanks again for the rapid responses!
It's an old fashioned tcp/ip problem. Quite likely a screw-up with the firewall...
$ telnet moodle.ipa.ie 80
Trying 193.1.242.45...
telnet: Unable to connect to remote host: No route to host
Tricky to tell where as pings are blocked on your network. Looks like a ferocious firewall. I would suspect 193.1.244.22!!
$ telnet moodle.ipa.ie 80
Trying 193.1.242.45...
telnet: Unable to connect to remote host: No route to host
Tricky to tell where as pings are blocked on your network. Looks like a ferocious firewall. I would suspect 193.1.244.22!!
There is a rule on the firewall that should allow any external person access to that IP address grrr
Same IP settings as webct.....all really confusing at this stage...no idea where .22 is lol I can ping it though....
Same IP settings as webct.....all really confusing at this stage...no idea where .22 is lol I can ping it though....
I see your server is now accessible (although an ACL issue is blocking Moodle). What was the problem in the end?
BT had screwed up and put in the wrong IP address! doh
Thanks again for all your help!
Thanks again for all your help!