Permission Still Denied with Moodle

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

 




Hi,

I've tried a few times to setup moodle on LAMP but failed each time with the following errors:

If I use localhost/moodle, I get this error:

Incorrect access detected, this server may be accessed only through "http://*my ip*/moodle" address, sorry.  Please notify server administrator.

If I use http://*my ip*/moodle or http://*my ip*:80/moodle I get this error:

Oops! Google Chrome could not connect to *my ip*

If I look in the /etc/httpd/logs/error_log I see:

[Wed Oct 09 14:59:46.240266 2013] [core:error] [pid 2279] (13)Permission denied: [client 127.0.0.1:43084] AH00035: access to /moodle/ denied (filesystem path '/var/www/html/moodle') because search permissions are missing on a component of the path

The wiki says this is an error 13 which indicates a filesystem permissions problem but I can't see where.  I've looked at a lot of questions relating to permission problems that people have had and it all seems to show that I have things set up correctly, or have tried the things that should work.  

/etc/httpd/conf/httpd.conf contains
...
User apache
Group apache
...
<Directory />
    AllowOverride none
    Require all denied
</Directory>
...
<Directory "/var/www">
    AllowOverride None
    # Allow open access:
    Require all granted
</Directory>
...
<Directory "/var/www/html">
    Options Indexes FollowSymLinks
    #AllowOverride None
    all 
    Require all granted
</Directory>

My directory permissions are:

drwxrwxr-x.  4 apache apache 4096 Oct  9 08:23 www

drwxrwxr-x. 2 apache apache 4096 Jul 31 15:50 cgi-bin
drwxrwxr-x. 3 apache apache 4096 Oct  9 14:07 html

-rw-r--r--.  1 apache root     20 Oct  9 11:32 info.php
drwxr-xr-x. 44 apache apache 4096 Oct  9 14:18 moodle

-rw-r-----.  1 apache apache    690 Oct  9 14:18 config.php
-rwxr-xr-x.  1 apache timothy 35147 Oct  4 11:43 COPYING.txt
drwxr-xr-x.  7 apache timothy  4096 Oct  9 14:06 course
-rwxr-xr-x.  1 apache timothy  2594 Oct  4 11:43 draftfile.php
drwxr-xr-x. 17 apache timothy  4096 Oct  9 14:06 enrol
drwxr-xr-x.  2 apache timothy  4096 Oct  9 14:06 error
-rwxr-xr-x.  1 apache timothy  3923 Oct  4 11:43 file.php
drwxr-xr-x.  3 apache timothy  4096 Oct  9 14:06 files
drwxr-xr-x. 14 apache timothy  4096 Oct  9 14:06 filter
-rwxr-xr-x.  1 apache timothy   953 Oct  4 15:14 githash.php
drwxr-xr-x.  8 apache timothy  4096 Oct  9 14:06 grade
drwxr-xr-x.  3 apache timothy  4096 Oct  9 14:06 group
-rwxr-xr-x.  1 apache timothy  1423 Oct  4 11:43 help_ajax.php
-rwxr-xr-x.  1 apache timothy  1761 Oct  4 11:43 help.php
-rwxr-xr-x.  1 apache timothy 13203 Oct  4 11:43 index.php

* tried setenforce 0.  The ls -alZ command returns 

-rwxr-xr-x. apache timothy unconfined_u:object_r:user_home_t:s0 index.php

* tried chown -R root on all files as well.
* ran the moodle setup script as such: # sudo -u apache /usr/bin/php install.php

I am using the following setup:
Fedora 19
Apache 2.4.6
PHP 5.5.4
moodle 2.5
MariaDB 5.5.32

Since the Moodle docs indicate this is a permissions problem with apache, I thought I should ask here first.  Any suggestions or solutions would be much welcomed.

Thanks,

Timothy Curchod.

[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