I entered chmod -R 770 and chown -R root:www commands for the server and moodle_data. I also changed the $CFG>wwwroot to "http://mysite.dyndns.org/moodle".
My problem: my moodle site works fine in the Internet (outside), but I can't see nor access my site on my local network as localhost, or with my 192.168.1.2 private address. I only see my Index.php page, but with broken links and without CSS.
What to do to correct this?
Thank you in advance for your help.
As you can see I added the line above to the /etc/hosts file:
# Host Database
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
... but it does not work: I receive an Object not found. The requested URL '/moodle' was not found on the RomPager server.
It should work because I'm in a similar situation. (on the client)
Is your browser using a proxy, then exclude "typomane.dyndns.org" from using it.
I have the same problem. In the config.php file the wwwroot is pointing to WAN IP-adress. So from the 'internet side' everything is working fine. From the LAN side, however, I get problems as described.
When I switch the wwwroot to the LAN IP-adress, everything on the LAN is working fine...
I installed Moodle 1.4 on Windows 2003 with EasyPHP.
Perhaps you can try following :
Find out if you can use a proxy. Most ISP's have one. In your browser, make arrangements that you contact the internet through the proxy and configure the port (mostly 8080 or 3128).
Now your packets to typomane.dyndns.org first travel through the proxy and return to the outside of your router (your IP). NAT takes over and the packets arrive in your machine.
It's not a fast way but the only one I can think of if you're on one machine and want to keep the config moodle file accessible from the net and from the machine itself.
Things are easier working in a LAN, using two machines ...
Hope this helps ... ?
I want Moodle accessible from the Internet (works fine). I also want Moodle accessible from a LAN (doesn't work). There is more then one workstation in our LAN... ;)
your domain name is yourmachine.dot.tk
you sit behind a client machine A (f.i 192.168.1.2 LAN IP)
on the client machine A, look for a file called hosts :
------ Something like this
192.168.1.3 yourmachine yourmachine.dot.tk
Add the blue entry
machine B has HOSTNAME yourmachine.dot.tk
On your server machine B, you have a webserver running.
Give the webserver name : ServerName yourmachine.dot.tk
--> look for the hosts file on machine B
127.0.0.1 localhost localhost.localdomain
192.168.1.2 machine A
You see, I created a "route" back. Don't know if it is necessary but there is no harm in that ...
Moodle config has :
$CFG->wwwroot = 'http://yourmachine.dot.tk/moodle';
(assuming moodle is running at webserver root level, or perhaps through an alias, I don't know that ...)
Your browser (on machine A) connects direct to the internet; by typing:
http://yourmachine.dot.tk the system first looks at the hosts file, and thus connects to your local server machine B
As DNS server(s) machine B points to the inside of your LAN router (which points to your ISP DNS) ( Linux systems: resolv.conf --> nameserver)
This way, machine B is accessable by the net and (fast) locally.
You can even change the resolve order in (Linux) nsswitch.conf , but that shouldn't be necessary ...
Hope all of this makes sence ... , it's what I have done