RE: Permission Still Denied with Moodle

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello everyone,


Hope you're all having a good weekend. The good news here is that I've solved the localhost problem.  The moodle config file, when set with this value "$CFG->wwwroot = 'localhostmoodle';" and then going to 'http://localhost/moodle' works and is fully functional. However, changing that value to '$CFG->wwwroot   = 'http://*my*.*ip*.*goes*.*here*:80/moodle';" and going to http://*my*.*ip*.*goes*.*here*:80/moodle doesn't.  Google Chrome removes the :80 for some reason from the address bar (Firefox doesn't) and it takes almost a minute to come back with the "Oops!" message, as if the server is not on.  But if I change the config.php file for moodle to respond to localhost, it responds right away with the index.php.  Another test file works on localhost, but again is not served from the web.


The full httpd error log for the problem can be seen here: http://pastebin.com/WuF1xsD3

The first error from which is:

[autoindex:error] [pid 4396] [client 127.0.0.1:40388] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive, referer: http://localhost/moodle/login/index.php


Why is it then forbidden to serve something to the web that is OK for localhost?  Is the router a problem?  Is Tomcat listening on Port 8080  on a different box causing a problem with this box listening on port 80?  The Apache config file is set to listen to 80.  I tried some other values for this, changing them in the router and the config file and none worked.


The Linksys WRT54C router using Automatic Configuration DHCP is set as follows:

Port Range

Application Start End Protocol IP Address Enable

Apache httpd    80 to 80 Both 192.168.1.100 Check  

Apache Tomcat 8080 to 8080    Both 192.168.1.126    Check  

(Both means TCP and UDP)


Taking moodle out of the picture and running strace on http://211.220.31.50/test.html cuases the same error.  So it's not a Moodle problem.  Here are some more details I may or may not have posted in earlier e-mails:


netstat -ln | grep 80

tcp6       0      0 :::80                   :::*                    LISTEN     

unix  2      [ ACC ]     STREAM     LISTENING     18068    @/tmp/.ICE-unix/1205

unix  2      [ ACC ]     STREAM     LISTENING     18069    /tmp/.ICE-unix/1205


httpd -S

VirtualHost configuration:

ServerRoot: "/etc/httpd"

Main DocumentRoot: "/var/www/html"

Main ErrorLog: "/etc/httpd/logs/error_log"

Mutex proxy: using_defaults

Mutex authn-socache: using_defaults

Mutex default: dir="/run/httpd/" mechanism=default

Mutex mpm-accept: using_defaults

Mutex authdigest-opaque: using_defaults

Mutex proxy-balancer-shm: using_defaults

Mutex rewrite-map: using_defaults

Mutex authdigest-client: using_defaults

PidFile: "/run/httpd/httpd.pid"

Define: DUMP_VHOSTS

Define: DUMP_RUN_CFG

User: name="apache" id=48

Group: name="apache" id=48


> Date: Thu, 10 Oct 2013 19:11:17 -0400
> To: users@xxxxxxxxxxxxxxxx
> From: stormy22@xxxxxxxxx
> Subject: RE: [users@httpd] Permission Still Denied with Moodle
>
> At 10:17 AM 10/10/2013 +0000, you wrote:
> [snip]
> >/sbin/ifconfig
> >em1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
> > inet 192.168.1.100 netmask 255.255.255.0 broadcast 192.168.1.255
> ^^^^^^^^^^^^^^
>
> Have you got a router set up for DHCP?
> [snip]
>
> >Something funny is going on with the ip address however. When I go to
> >localhost, like I said before, it prints this message: "Incorrect access
> >detected, this server may be accessed only through
> >"http://*.*.*.30:80/moodle" address, sorry.
>
>
> Best - Paul
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux