You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Timothy Curchod <ti...@hotmail.com> on 2013/10/09 10:19:50 UTC
[users@httpd] Permission Still Denied with Moodle
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 apacheGroup 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-bindrwxrwxr-x. 3 apache apache 4096 Oct 9 14:07 html
-rw-r--r--. 1 apache root 20 Oct 9 11:32 info.phpdrwxr-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.txtdrwxr-xr-x. 7 apache timothy 4096 Oct 9 14:06 course-rwxr-xr-x. 1 apache timothy 2594 Oct 4 11:43 draftfile.phpdrwxr-xr-x. 17 apache timothy 4096 Oct 9 14:06 enroldrwxr-xr-x. 2 apache timothy 4096 Oct 9 14:06 error-rwxr-xr-x. 1 apache timothy 3923 Oct 4 11:43 file.phpdrwxr-xr-x. 3 apache timothy 4096 Oct 9 14:06 filesdrwxr-xr-x. 14 apache timothy 4096 Oct 9 14:06 filter-rwxr-xr-x. 1 apache timothy 953 Oct 4 15:14 githash.phpdrwxr-xr-x. 8 apache timothy 4096 Oct 9 14:06 gradedrwxr-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 19Apache 2.4.6PHP 5.5.4moodle 2.5MariaDB 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.
Re: [users@httpd] Permission Still Denied with Moodle
Posted by Eric Covener <co...@gmail.com>.
Are you sure these runs generated the same error log message you had
initially? Normally we'd also see the error message being written to
the error log in the same strace.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Permission Still Denied with Moodle
Posted by Eric Covener <co...@gmail.com>.
are you using the ITK MPM by any chance?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: [users@httpd] Permission Still Denied with Moodle
Posted by Timothy Curchod <ti...@hotmail.com>.
Hi Eric,
Here is the info after following your advice:
> You could start the server under strace and see exactly which
> underlying call fails, and what its arguments were.
>
> stop Apache
> strace -f o /tmp/strace.out apachectl -X
> recreate
> interrupt with control C
> Look for EACCES towards the botom of /tmp/strace.out and share some of
> the surrounding context here
>
There seems to be a lot of comments relating to ImageMagick, which is a php module I think. When I started the trace this time, I first went to info.php to see a working page, and then my ip link. I hope this will reveal what the problem is.(Half way down this page you will see part of an earlier trace that contained no EACCES string, but other details after I tried to browse localhost/moodle)
2126 stat("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/magick.la", {st_mode=S_IFREG|0755, st_size=1115, ...}) = 02126 access("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/magick.la", F_OK) = 02126 openat(AT_FDCWD, "/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 112126 brk(0) = 0x7f1ecad570002126 brk(0x7f1ecad7f000) = 0x7f1ecad7f0002126 getdents(11, /* 226 entries */, 32768) = 72002126 brk(0) = 0x7f1ecad7f0002126 brk(0x7f1ecada0000) = 0x7f1ecada00002126 brk(0) = 0x7f1ecada00002126 brk(0x7f1ecadc1000) = 0x7f1ecadc10002126 brk(0) = 0x7f1ecadc10002126 brk(0x7f1ecade2000) = 0x7f1ecade20002126 getdents(11, /* 0 entries */, 32768) = 02126 close(11) = 02126 open("/usr/share/ImageMagick-6.7.8/coder.xml", O_RDONLY) = -1 ENOENT (No such file or directory)2126 open("/usr/lib64/ImageMagick-6.7.8/config/coder.xml", O_RDONLY) = -1 ENOENT (No such file or directory)2126 open("/etc/ImageMagick/coder.xml", O_RDONLY) = 112126 lseek(11, 0, SEEK_END) = 8422126 mmap(NULL, 842, PROT_READ, MAP_PRIVATE, 11, 0) = 0x7f1ec97950002126 munmap(0x7f1ec9795000, 842) = 02126 close(11) = 02126 open("/usr/share/doc/ImageMagick-6.7.8/coder.xml", O_RDONLY) = -1 ENOENT (No such file or directory)2126 open("/root/.magick/coder.xml", O_RDONLY) = -1 EACCES (Permission denied)2126 stat("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/aai.la", {st_mode=S_IFREG|0755, st_size=1097, ...}) = 02126 access("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/aai.la", F_OK) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/aai.la", O_RDONLY) = 112126 fstat(11, {st_mode=S_IFREG|0755, st_size=1097, ...}) = 02126 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1ec97950002126 read(11, "# aai.la - a libtool library fil"..., 4096) = 10972126 read(11, "", 4096) = 02126 close(11) = 02126 munmap(0x7f1ec9795000, 4096) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/aai.so", O_RDONLY|O_CLOEXEC) = 112126 read(11, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000\22\0\0\0\0\0\0"..., 832) = 8322126 fstat(11, {st_mode=S_IFREG|0755, st_size=15440, ...}) = 02126 mmap(NULL, 2109760, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f1eaaf6f0002126 mprotect(0x7f1eaaf72000, 2093056, PROT_NONE) = 02126 mmap(0x7f1eab171000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x2000) = 0x7f1eab1710002126 close(11) = 02126 mprotect(0x7f1eab171000, 4096, PROT_READ) = 02126 stat("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/art.la", {st_mode=S_IFREG|0755, st_size=1097, ...}) = 02126 access("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/art.la", F_OK) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/art.la", O_RDONLY) = 112126 fstat(11, {st_mode=S_IFREG|0755, st_size=1097, ...}) = 02126 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1ec97950002126 read(11, "# art.la - a libtool library fil"..., 4096) = 10972126 read(11, "", 4096) = 02126 close(11) = 02126 munmap(0x7f1ec9795000, 4096) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/art.so", O_RDONLY|O_CLOEXEC) = 112126 read(11, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\23\0\0\0\0\0\0"..., 832) = 8322126 fstat(11, {st_mode=S_IFREG|0755, st_size=15472, ...}) = 02126 mmap(NULL, 2109792, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f1eaad6b0002126 mprotect(0x7f1eaad6e000, 2093056, PROT_NONE) = 02126 mmap(0x7f1eaaf6d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x2000) = 0x7f1eaaf6d0002126 close(11) = 02126 mprotect(0x7f1eaaf6d000, 4096, PROT_READ) = 02126 stat("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/avs.la", {st_mode=S_IFREG|0755, st_size=1097, ...}) = 02126 access("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/avs.la", F_OK) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/avs.la", O_RDONLY) = 112126 fstat(11, {st_mode=S_IFREG|0755, st_size=1097, ...}) = 02126 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1ec97950002126 read(11, "# avs.la - a libtool library fil"..., 4096) = 10972126 read(11, "", 4096) = 02126 close(11) = 02126 munmap(0x7f1ec9795000, 4096) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/avs.so", O_RDONLY|O_CLOEXEC) = 112126 read(11, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000\22\0\0\0\0\0\0"..., 832) = 8322126 fstat(11, {st_mode=S_IFREG|0755, st_size=15440, ...}) = 02126 mmap(NULL, 2109760, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f1eaab670002126 mprotect(0x7f1eaab6a000, 2093056, PROT_NONE) = 02126 mmap(0x7f1eaad69000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x2000) = 0x7f1eaad690002126 close(11) = 02126 mprotect(0x7f1eaad69000, 4096, PROT_READ) = 02126 stat("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/bgr.la", {st_mode=S_IFREG|0755, st_size=1097, ...}) = 02126 access("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/bgr.la", F_OK) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/bgr.la", O_RDONLY) = 112126 fstat(11, {st_mode=S_IFREG|0755, st_size=1097, ...}) = 02126 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1ec97950002126 read(11, "# bgr.la - a libtool library fil"..., 4096) = 10972126 read(11, "", 4096) = 02126 close(11) = 02126 munmap(0x7f1ec9795000, 4096) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/bgr.so", O_RDONLY|O_CLOEXEC) = 112126 read(11, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 \26\0\0\0\0\0\0"..., 832) = 8322126 fstat(11, {st_mode=S_IFREG|0755, st_size=23736, ...}) = 02126 mmap(NULL, 2118048, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f1eaa9610002126 mprotect(0x7f1eaa966000, 2093056, PROT_NONE) = 02126 mmap(0x7f1eaab65000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x4000) = 0x7f1eaab650002126 close(11) = 02126 mprotect(0x7f1eaab65000, 4096, PROT_READ) = 02126 stat("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/bmp.la", {st_mode=S_IFREG|0755, st_size=1097, ...}) = 02126 access("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/bmp.la", F_OK) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/bmp.la", O_RDONLY) = 112126 fstat(11, {st_mode=S_IFREG|0755, st_size=1097, ...}) = 02126 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1ec97950002126 read(11, "# bmp.la - a libtool library fil"..., 4096) = 10972126 read(11, "", 4096) = 02126 close(11) = 02126 munmap(0x7f1ec9795000, 4096) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/bmp.so", O_RDONLY|O_CLOEXEC) = 112126 read(11, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\27\0\0\0\0\0\0"..., 832) = 8322126 fstat(11, {st_mode=S_IFREG|0755, st_size=31968, ...}) = 02126 mmap(NULL, 2126272, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f1eaa7590002126 mprotect(0x7f1eaa760000, 2093056, PROT_NONE) = 02126 mmap(0x7f1eaa95f000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x6000) = 0x7f1eaa95f0002126 close(11) = 02126 mprotect(0x7f1eaa95f000, 4096, PROT_READ) = 02126 stat("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/braille.la", {st_mode=S_IFREG|0755, st_size=1121, ...}) = 02126 access("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/braille.la", F_OK) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/braille.la", O_RDONLY) = 112126 fstat(11, {st_mode=S_IFREG|0755, st_size=1121, ...}) = 02126 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1ec97950002126 read(11, "# braille.la - a libtool library"..., 4096) = 11212126 read(11, "", 4096) = 02126 close(11) = 02126 munmap(0x7f1ec9795000, 4096) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/braille.so", O_RDONLY|O_CLOEXEC) = 112126 read(11, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\f\0\0\0\0\0\0"..., 832) = 8322126 fstat(11, {st_mode=S_IFREG|0755, st_size=15296, ...}) = 02126 mmap(NULL, 2109640, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f1eaa5550002126 mprotect(0x7f1eaa558000, 2093056, PROT_NONE) = 02126 mmap(0x7f1eaa757000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x2000) = 0x7f1eaa7570002126 close(11) = 02126 mprotect(0x7f1eaa757000, 4096, PROT_READ) = 02126 stat("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/cals.la", {st_mode=S_IFREG|0755, st_size=1103, ...}) = 02126 access("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/cals.la", F_OK) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/cals.la", O_RDONLY) = 112126 fstat(11, {st_mode=S_IFREG|0755, st_size=1103, ...}) = 02126 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1ec97950002126 read(11, "# cals.la - a libtool library fi"..., 4096) = 11032126 read(11, "", 4096) = 02126 close(11) = 02126 munmap(0x7f1ec9795000, 4096) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/cals.so", O_RDONLY|O_CLOEXEC) = 112126 read(11, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\21\0\0\0\0\0\0"..., 832) = 8322126 fstat(11, {st_mode=S_IFREG|0755, st_size=15456, ...}) = 02126 mmap(NULL, 2109768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f1eaa3510002126 mprotect(0x7f1eaa354000, 2093056, PROT_NONE) = 02126 mmap(0x7f1eaa553000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x2000) = 0x7f1eaa5530002126 close(11) = 02126 mprotect(0x7f1eaa553000, 4096, PROT_READ) = 02126 stat("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/caption.la", {st_mode=S_IFREG|0755, st_size=1121, ...}) = 02126 access("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/caption.la", F_OK) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/caption.la", O_RDONLY) = 112126 fstat(11, {st_mode=S_IFREG|0755, st_size=1121, ...}) = 02126 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1ec97950002126 read(11, "# caption.la - a libtool library"..., 4096) = 11212126 read(11, "", 4096) = 02126 close(11) = 02126 munmap(0x7f1ec9795000, 4096) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/caption.so", O_RDONLY|O_CLOEXEC) = 112126 read(11, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\20\0\0\0\0\0\0"..., 832) = 8322126 fstat(11, {st_mode=S_IFREG|0755, st_size=15384, ...}) = 02126 mmap(NULL, 2109736, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f1eaa14d0002126 mprotect(0x7f1eaa14f000, 2097152, PROT_NONE) = 02126 mmap(0x7f1eaa34f000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x2000) = 0x7f1eaa34f0002126 close(11) = 02126 mprotect(0x7f1eaa34f000, 4096, PROT_READ) = 02126 stat("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/cin.la", {st_mode=S_IFREG|0755, st_size=1097, ...}) = 02126 access("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/cin.la", F_OK) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/cin.la", O_RDONLY) = 112126 fstat(11, {st_mode=S_IFREG|0755, st_size=1097, ...}) = 02126 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1ec97950002126 read(11, "# cin.la - a libtool library fil"..., 4096) = 10972126 read(11, "", 4096) = 02126 close(11) = 02126 munmap(0x7f1ec9795000, 4096) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/cin.so", O_RDONLY|O_CLOEXEC) = 112126 read(11, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\31\0\0\0\0\0\0"..., 832) = 8322126 fstat(11, {st_mode=S_IFREG|0755, st_size=23848, ...}) = 02126 mmap(NULL, 2118144, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f1ea9f470002126 mprotect(0x7f1ea9f4c000, 2093056, PROT_NONE) = 02126 mmap(0x7f1eaa14b000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x4000) = 0x7f1eaa14b0002126 close(11) = 02126 mprotect(0x7f1eaa14b000, 4096, PROT_READ) = 02126 stat("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/cip.la", {st_mode=S_IFREG|0755, st_size=1097, ...}) = 02126 access("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/cip.la", F_OK) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/cip.la", O_RDONLY) = 112126 fstat(11, {st_mode=S_IFREG|0755, st_size=1097, ...}) = 02126 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1ec97950002126 read(11, "# cip.la - a libtool library fil"..., 4096) = 10972126 read(11, "", 4096) = 02126 close(11) = 02126 munmap(0x7f1ec9795000, 4096) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/cip.so", O_RDONLY|O_CLOEXEC) = 112126 read(11, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\v\0\0\0\0\0\0"..., 832) = 8322126 fstat(11, {st_mode=S_IFREG|0755, st_size=15264, ...}) = 02126 mmap(NULL, 2109616, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f1ea9d430002126 mprotect(0x7f1ea9d46000, 2093056, PROT_NONE) = 02126 mmap(0x7f1ea9f45000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x2000) = 0x7f1ea9f450002126 close(11) = 02126 mprotect(0x7f1ea9f45000, 4096, PROT_READ) = 02126 stat("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/clip.la", {st_mode=S_IFREG|0755, st_size=1103, ...}) = 02126 access("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/clip.la", F_OK) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/clip.la", O_RDONLY) = 112126 fstat(11, {st_mode=S_IFREG|0755, st_size=1103, ...}) = 02126 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1ec97950002126 read(11, "# clip.la - a libtool library fi"..., 4096) = 11032126 read(11, "", 4096) = 02126 close(11) = 02126 munmap(0x7f1ec9795000, 4096) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/clip.so", O_RDONLY|O_CLOEXEC) = 112126 read(11, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\v\0\0\0\0\0\0"..., 832) = 8322126 fstat(11, {st_mode=S_IFREG|0755, st_size=11168, ...}) = 02126 mmap(NULL, 2105528, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f1ea9b400002126 mprotect(0x7f1ea9b41000, 2097152, PROT_NONE) = 02126 mmap(0x7f1ea9d41000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x1000) = 0x7f1ea9d410002126 close(11) = 02126 mprotect(0x7f1ea9d41000, 4096, PROT_READ) = 02126 stat("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/cmyk.la", {st_mode=S_IFREG|0755, st_size=1103, ...}) = 02126 access("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/cmyk.la", F_OK) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/cmyk.la", O_RDONLY) = 112126 fstat(11, {st_mode=S_IFREG|0755, st_size=1103, ...}) = 02126 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1ec97950002126 read(11, "# cmyk.la - a libtool library fi"..., 4096) = 11032126 read(11, "", 4096) = 02126 close(11) = 02126 munmap(0x7f1ec9795000, 4096) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/cmyk.so", O_RDONLY|O_CLOEXEC) = 112126 read(11, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000\27\0\0\0\0\0\0"..., 832) = 8322126 fstat(11, {st_mode=S_IFREG|0755, st_size=27848, ...}) = 02126 mmap(NULL, 2122168, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f1ea99390002126 mprotect(0x7f1ea993f000, 2093056, PROT_NONE) = 02126 mmap(0x7f1ea9b3e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x5000) = 0x7f1ea9b3e0002126 close(11) = 02126 mprotect(0x7f1ea9b3e000, 4096, PROT_READ) = 02126 stat("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/cut.la", {st_mode=S_IFREG|0755, st_size=1097, ...}) = 02126 access("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/cut.la", F_OK) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/cut.la", O_RDONLY) = 112126 fstat(11, {st_mode=S_IFREG|0755, st_size=1097, ...}) = 02126 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1ec97950002126 read(11, "# cut.la - a libtool library fil"..., 4096) = 10972126 read(11, "", 4096) = 02126 close(11) = 02126 munmap(0x7f1ec9795000, 4096) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/cut.so", O_RDONLY|O_CLOEXEC) = 112126 read(11, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\22\0\0\0\0\0\0"..., 832) = 8322126 fstat(11, {st_mode=S_IFREG|0755, st_size=15472, ...}) = 02126 mmap(NULL, 2109792, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f1ea97350002126 mprotect(0x7f1ea9738000, 2093056, PROT_NONE) = 02126 mmap(0x7f1ea9937000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x2000) = 0x7f1ea99370002126 close(11) = 02126 mprotect(0x7f1ea9937000, 4096, PROT_READ) = 02126 stat("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/dcm.la", {st_mode=S_IFREG|0755, st_size=1097, ...}) = 02126 access("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/dcm.la", F_OK) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/dcm.la", O_RDONLY) = 112126 fstat(11, {st_mode=S_IFREG|0755, st_size=1097, ...}) = 02126 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1ec97950002126 read(11, "# dcm.la - a libtool library fil"..., 4096) = 10972126 read(11, "", 4096) = 02126 close(11) = 02126 munmap(0x7f1ec9795000, 4096) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/dcm.so", O_RDONLY|O_CLOEXEC) = 112126 read(11, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360\366\1\0\0\0\0\0"..., 832) = 8322126 fstat(11, {st_mode=S_IFREG|0755, st_size=257432, ...}) = 02126 mmap(NULL, 2351712, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f1ea94f60002126 mprotect(0x7f1ea9525000, 2093056, PROT_NONE) = 02126 mmap(0x7f1ea9724000, 69632, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x2e000) = 0x7f1ea97240002126 close(11) = 02126 mprotect(0x7f1ea9724000, 65536, PROT_READ) = 02126 stat("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/dds.la", {st_mode=S_IFREG|0755, st_size=1097, ...}) = 02126 access("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/dds.la", F_OK) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/dds.la", O_RDONLY) = 112126 fstat(11, {st_mode=S_IFREG|0755, st_size=1097, ...}) = 02126 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1ec97950002126 read(11, "# dds.la - a libtool library fil"..., 4096) = 10972126 read(11, "", 4096) = 02126 close(11) = 02126 munmap(0x7f1ec9795000, 4096) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/dds.so", O_RDONLY|O_CLOEXEC) = 112126 read(11, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\16\0\0\0\0\0\0"..., 832) = 8322126 fstat(11, {st_mode=S_IFREG|0755, st_size=15472, ...}) = 02126 mmap(NULL, 2109704, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f1ea92f20002126 mprotect(0x7f1ea92f5000, 2093056, PROT_NONE) = 02126 mmap(0x7f1ea94f4000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x2000) = 0x7f1ea94f40002126 close(11) = 02126 mprotect(0x7f1ea94f4000, 4096, PROT_READ) = 02126 stat("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/debug.la", {st_mode=S_IFREG|0755, st_size=1109, ...}) = 02126 access("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/debug.la", F_OK) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/debug.la", O_RDONLY) = 112126 fstat(11, {st_mode=S_IFREG|0755, st_size=1109, ...}) = 02126 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1ec97950002126 read(11, "# debug.la - a libtool library f"..., 4096) = 11092126 read(11, "", 4096) = 02126 close(11) = 02126 munmap(0x7f1ec9795000, 4096) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/debug.so", O_RDONLY|O_CLOEXEC) = 112126 read(11, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\r\0\0\0\0\0\0"..., 832) = 8322126 fstat(11, {st_mode=S_IFREG|0755, st_size=11216, ...}) = 02126 mmap(NULL, 2105568, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f1ea90ef0002126 mprotect(0x7f1ea90f1000, 2093056, PROT_NONE) = 02126 mmap(0x7f1ea92f0000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x1000) = 0x7f1ea92f00002126 close(11) = 02126 mprotect(0x7f1ea92f0000, 4096, PROT_READ) = 02126 stat("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/dib.la", {st_mode=S_IFREG|0755, st_size=1097, ...}) = 02126 access("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/dib.la", F_OK) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/dib.la", O_RDONLY) = 112126 fstat(11, {st_mode=S_IFREG|0755, st_size=1097, ...}) = 02126 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1ec97950002126 read(11, "# dib.la - a libtool library fil"..., 4096) = 10972126 read(11, "", 4096) = 02126 close(11) = 02126 munmap(0x7f1ec9795000, 4096) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/dib.so", O_RDONLY|O_CLOEXEC) = 112126 read(11, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\24\0\0\0\0\0\0"..., 832) = 8322126 fstat(11, {st_mode=S_IFREG|0755, st_size=19608, ...}) = 02126 mmap(NULL, 2113920, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f1ea8eea0002126 mprotect(0x7f1ea8eee000, 2093056, PROT_NONE) = 02126 mmap(0x7f1ea90ed000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x3000) = 0x7f1ea90ed0002126 close(11) = 02126 mprotect(0x7f1ea90ed000, 4096, PROT_READ) = 02126 stat("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/dng.la", {st_mode=S_IFREG|0755, st_size=1097, ...}) = 02126 access("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/dng.la", F_OK) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/dng.la", O_RDONLY) = 112126 fstat(11, {st_mode=S_IFREG|0755, st_size=1097, ...}) = 02126 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1ec97950002126 read(11, "# dng.la - a libtool library fil"..., 4096) = 10972126 read(11, "", 4096) = 02126 close(11) = 02126 munmap(0x7f1ec9795000, 4096) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/dng.so", O_RDONLY|O_CLOEXEC) = 112126 read(11, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\21\0\0\0\0\0\0"..., 832) = 8322126 fstat(11, {st_mode=S_IFREG|0755, st_size=15408, ...}) = 02126 mmap(NULL, 2109760, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f1ea8ce60002126 mprotect(0x7f1ea8ce9000, 2093056, PROT_NONE) = 02126 mmap(0x7f1ea8ee8000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x2000) = 0x7f1ea8ee80002126 close(11) = 02126 mprotect(0x7f1ea8ee8000, 4096, PROT_READ) = 02126 stat("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/dot.la", {st_mode=S_IFREG|0755, st_size=1097, ...}) = 02126 access("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/dot.la", F_OK) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/dot.la", O_RDONLY) = 112126 fstat(11, {st_mode=S_IFREG|0755, st_size=1097, ...}) = 02126 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1ec97950002126 read(11, "# dot.la - a libtool library fil"..., 4096) = 10972126 read(11, "", 4096) = 02126 close(11) = 02126 munmap(0x7f1ec9795000, 4096) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/dot.so", O_RDONLY|O_CLOEXEC) = 112126 read(11, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\7\0\0\0\0\0\0"..., 832) = 8322126 fstat(11, {st_mode=S_IFREG|0755, st_size=6936, ...}) = 02126 mmap(NULL, 2101328, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f1ea8ae40002126 mprotect(0x7f1ea8ae5000, 2093056, PROT_NONE) = 02126 mmap(0x7f1ea8ce4000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0) = 0x7f1ea8ce40002126 close(11) = 02126 mprotect(0x7f1ea8ce4000, 4096, PROT_READ) = 02126 brk(0) = 0x7f1ecade20002126 brk(0x7f1ecae03000) = 0x7f1ecae030002126 stat("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/dpx.la", {st_mode=S_IFREG|0755, st_size=1097, ...}) = 02126 access("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/dpx.la", F_OK) = 02126 brk(0) = 0x7f1ecae030002126 brk(0) = 0x7f1ecae030002126 brk(0x7f1ecae02000) = 0x7f1ecae020002126 brk(0) = 0x7f1ecae020002126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/dpx.la", O_RDONLY) = 112126 fstat(11, {st_mode=S_IFREG|0755, st_size=1097, ...}) = 02126 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1ec97950002126 read(11, "# dpx.la - a libtool library fil"..., 4096) = 10972126 read(11, "", 4096) = 02126 close(11) = 02126 munmap(0x7f1ec9795000, 4096) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/dpx.so", O_RDONLY|O_CLOEXEC) = 112126 read(11, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\33\0\0\0\0\0\0"..., 832) = 8322126 fstat(11, {st_mode=S_IFREG|0755, st_size=32112, ...}) = 02126 mmap(NULL, 2126384, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f1ea88dc0002126 mprotect(0x7f1ea88e3000, 2093056, PROT_NONE) = 02126 mmap(0x7f1ea8ae2000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x6000) = 0x7f1ea8ae20002126 close(11) = 02126 mprotect(0x7f1ea8ae2000, 4096, PROT_READ) = 02126 stat("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/ept.la", {st_mode=S_IFREG|0755, st_size=1097, ...}) = 02126 access("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/ept.la", F_OK) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/ept.la", O_RDONLY) = 112126 fstat(11, {st_mode=S_IFREG|0755, st_size=1097, ...}) = 02126 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1ec97950002126 read(11, "# ept.la - a libtool library fil"..., 4096) = 10972126 read(11, "", 4096) = 02126 close(11) = 02126 munmap(0x7f1ec9795000, 4096) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/ept.so", O_RDONLY|O_CLOEXEC) = 112126 read(11, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\21\0\0\0\0\0\0"..., 832) = 8322126 fstat(11, {st_mode=S_IFREG|0755, st_size=15456, ...}) = 02126 mmap(NULL, 2109776, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f1ea86d80002126 mprotect(0x7f1ea86db000, 2093056, PROT_NONE) = 02126 mmap(0x7f1ea88da000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x2000) = 0x7f1ea88da0002126 close(11) = 02126 mprotect(0x7f1ea88da000, 4096, PROT_READ) = 02126 stat("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/exr.la", {st_mode=S_IFREG|0755, st_size=1149, ...}) = 02126 access("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/exr.la", F_OK) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/exr.la", O_RDONLY) = 112126 fstat(11, {st_mode=S_IFREG|0755, st_size=1149, ...}) = 02126 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1ec97950002126 read(11, "# exr.la - a libtool library fil"..., 4096) = 11492126 read(11, "", 4096) = 02126 close(11) = 02126 munmap(0x7f1ec9795000, 4096) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/exr.so", O_RDONLY|O_CLOEXEC) = 112126 read(11, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\26\0\0\0\0\0\0"..., 832) = 8322126 fstat(11, {st_mode=S_IFREG|0755, st_size=15560, ...}) = 02126 mmap(NULL, 2109880, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f1ea84d40002126 mprotect(0x7f1ea84d7000, 2093056, PROT_NONE) = 02126 mmap(0x7f1ea86d6000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x2000) = 0x7f1ea86d60002126 close(11) = 02126 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 112126 fstat(11, {st_mode=S_IFREG|0644, st_size=80822, ...}) = 02126 mmap(NULL, 80822, PROT_READ, MAP_PRIVATE, 11, 0) = 0x7f1ea84c00002126 close(11) = 02126 open("/lib64/libIlmImf.so.7", O_RDONLY|O_CLOEXEC) = 112126 read(11, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\306\2\0\0\0\0\0"..., 832) = 8322126 fstat(11, {st_mode=S_IFREG|0755, st_size=813656, ...}) = 02126 mmap(NULL, 2907456, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f1ea81fa0002126 mprotect(0x7f1ea82bc000, 2093056, PROT_NONE) = 02126 mmap(0x7f1ea84bb000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0xc1000) = 0x7f1ea84bb0002126 close(11) = 02126 open("/lib64/libImath.so.6", O_RDONLY|O_CLOEXEC) = 112126 read(11, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320,\0\0\0\0\0\0"..., 832) = 8322126 fstat(11, {st_mode=S_IFREG|0755, st_size=73152, ...}) = 02126 mmap(NULL, 2167424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f1ea7fe80002126 mprotect(0x7f1ea7ff9000, 2093056, PROT_NONE) = 02126 mmap(0x7f1ea81f8000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x10000) = 0x7f1ea81f80002126 close(11) = 02126 open("/lib64/libHalf.so.6", O_RDONLY|O_CLOEXEC) = 112126 read(11, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240\n\0\0\0\0\0\0"..., 832) = 8322126 fstat(11, {st_mode=S_IFREG|0755, st_size=273240, ...}) = 02126 mmap(NULL, 2367592, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f1ea7da50002126 mprotect(0x7f1ea7de7000, 2093056, PROT_NONE) = 02126 mmap(0x7f1ea7fe6000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x41000) = 0x7f1ea7fe60002126 close(11) = 02126 open("/lib64/libIex.so.6", O_RDONLY|O_CLOEXEC) = 112126 read(11, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0'\1\0\0\0\0\0"..., 832) = 8322126 fstat(11, {st_mode=S_IFREG|0755, st_size=126128, ...}) = 02126 mmap(NULL, 2220312, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f1ea7b860002126 mprotect(0x7f1ea7ba0000, 2097152, PROT_NONE) = 02126 mmap(0x7f1ea7da0000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x1a000) = 0x7f1ea7da00002126 close(11) = 02126 open("/lib64/libIexMath.so.6", O_RDONLY|O_CLOEXEC) = 112126 read(11, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\32\0\0\0\0\0\0"..., 832) = 8322126 fstat(11, {st_mode=S_IFREG|0755, st_size=15304, ...}) = 02126 mmap(NULL, 2109616, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f1ea79820002126 mprotect(0x7f1ea7985000, 2093056, PROT_NONE) = 02126 mmap(0x7f1ea7b84000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x2000) = 0x7f1ea7b840002126 close(11) = 02126 open("/lib64/libIlmThread.so.6", O_RDONLY|O_CLOEXEC) = 112126 read(11, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300.\0\0\0\0\0\0"..., 832) = 8322126 fstat(11, {st_mode=S_IFREG|0755, st_size=28168, ...}) = 02126 mmap(NULL, 2122296, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f1ea777b0002126 mprotect(0x7f1ea7780000, 2097152, PROT_NONE) = 02126 mmap(0x7f1ea7980000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x5000) = 0x7f1ea79800002126 close(11) = 02126 open("/lib64/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = 112126 read(11, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\265\245\374>\0\0\0"..., 832) = 8322126 fstat(11, {st_mode=S_IFREG|0755, st_size=982336, ...}) = 02126 mmap(NULL, 3159072, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f1ea74770002126 mprotect(0x7f1ea755d000, 2093056, PROT_NONE) = 02126 mmap(0x7f1ea775c000, 40960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0xe5000) = 0x7f1ea775c0002126 mmap(0x7f1ea7766000, 82976, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f1ea77660002126 close(11) = 02126 mprotect(0x7f1ea775c000, 32768, PROT_READ) = 02126 mprotect(0x7f1ea7da0000, 16384, PROT_READ) = 02126 mprotect(0x7f1ea7980000, 4096, PROT_READ) = 02126 mprotect(0x7f1ea7b84000, 4096, PROT_READ) = 02126 mprotect(0x7f1ea7fe6000, 4096, PROT_READ) = 02126 mprotect(0x7f1ea81f8000, 4096, PROT_READ) = 02126 mprotect(0x7f1ea84bb000, 12288, PROT_READ) = 02126 mprotect(0x7f1ea86d6000, 4096, PROT_READ) = 02126 futex(0x7f1ea777896c, FUTEX_WAKE_PRIVATE, 2147483647) = 02126 futex(0x7f1ea7778978, FUTEX_WAKE_PRIVATE, 2147483647) = 02126 munmap(0x7f1ea84c0000, 80822) = 02126 stat("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/fax.la", {st_mode=S_IFREG|0755, st_size=1097, ...}) = 02126 access("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/fax.la", F_OK) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/fax.la", O_RDONLY) = 112126 fstat(11, {st_mode=S_IFREG|0755, st_size=1097, ...}) = 02126 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1ec97950002126 read(11, "# fax.la - a libtool library fil"..., 4096) = 10972126 read(11, "", 4096) = 02126 close(11) = 02126 munmap(0x7f1ec9795000, 4096) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/fax.so", O_RDONLY|O_CLOEXEC) = 112126 read(11, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\17\0\0\0\0\0\0"..., 832) = 8322126 fstat(11, {st_mode=S_IFREG|0755, st_size=11320, ...}) = 02126 mmap(NULL, 2105624, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7f1ea72740002126 mprotect(0x7f1ea7276000, 2093056, PROT_NONE) = 02126 mmap(0x7f1ea7475000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x1000) = 0x7f1ea74750002126 close(11) = 02126 mprotect(0x7f1ea7475000, 4096, PROT_READ) = 02126 stat("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/fd.la", {st_mode=S_IFREG|0755, st_size=1091, ...}) = 02126 access("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/fd.la", F_OK) = 02126 open("/usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/fd.la", O_RDONLY) = 112126 fstat(11, {st_mode=S_IFREG|0755, st_size=1091, ...}) = 02126 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1ec97950002126 read(11, "# fd.la - a libtool library file"..., 4096) = 10912126 read(11, "", 4096) = 02126 close(11) = 0...2126 munmap(0x7f1ec97d7000, 323584) = 02126 close(6) = 02126 close(5) = 02126 exit_group(0) = ?2126 +++ exited with 0 +++2124 <... wait4 resumed> [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 21262124 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 02124 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=2126, si_status=0, si_utime=44, si_stime=26} ---2124 wait4(-1, 0x7fffec6be158, WNOHANG, NULL) = -1 ECHILD (No child processes)2124 rt_sigreturn() = 02124 rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x3eeda35a90}, {0x43dfe0, [], SA_RESTORER, 0x3eeda35a90}, 8) = 02124 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 02124 read(255, "\nexit $ERROR\n\n", 4263) = 142124 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 02124 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 02124 exit_group(0) = ?2124 +++ exited with 0 +++
------------------------------------------------------------------------------------------------------
Here is the first trace I did when I went to localhost
...7750 lstat("/var/www/html/moodle/index.php", {st_mode=S_IFREG|0755, st_size=13203, ...}) = 07750 lstat("/var/www/html/moodle", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 07750 lstat("/var/www/html", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 07750 lstat("/var/www", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 07750 lstat("/var", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 07750 open("/var/www/html/moodle/index.php", O_RDONLY) = 117750 fstat(11, {st_mode=S_IFREG|0755, st_size=13203, ...}) = 07750 fstat(11, {st_mode=S_IFREG|0755, st_size=13203, ...}) = 07750 fstat(11, {st_mode=S_IFREG|0755, st_size=13203, ...}) = 07750 mmap(NULL, 13203, PROT_READ, MAP_SHARED, 11, 0) = 0x7f425bb6c0007750 mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f425bb2b0007750 munmap(0x7f425bb6c000, 13203) = 07750 close(11) = 07750 access("./config.php", F_OK) = 07750 getcwd("/var/www/html/moodle", 4096) = 217750 lstat("/var/www/html/moodle/./config.php", {st_mode=S_IFREG|0640, st_size=690, ...}) = 07750 lstat("/var/www/html/moodle/config.php", {st_mode=S_IFREG|0640, st_size=690, ...}) = 07750 open("/var/www/html/moodle/config.php", O_RDONLY) = 117750 fstat(11, {st_mode=S_IFREG|0640, st_size=690, ...}) = 07750 fstat(11, {st_mode=S_IFREG|0640, st_size=690, ...}) = 07750 fstat(11, {st_mode=S_IFREG|0640, st_size=690, ...}) = 07750 mmap(NULL, 690, PROT_READ, MAP_SHARED, 11, 0) = 0x7f425bb6f0007750 munmap(0x7f425bb6f000, 690) = 07750 close(11) = 07750 lstat("/var/www/html/moodle/lib/setup.php", {st_mode=S_IFREG|0755, st_size=36052, ...}) = 07750 lstat("/var/www/html/moodle/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 07750 open("/var/www/html/moodle/lib/setup.php", O_RDONLY) = 117750 fstat(11, {st_mode=S_IFREG|0755, st_size=36052, ...}) = 07750 fstat(11, {st_mode=S_IFREG|0755, st_size=36052, ...}) = 07750 fstat(11, {st_mode=S_IFREG|0755, st_size=36052, ...}) = 07750 mmap(NULL, 36052, PROT_READ, MAP_SHARED, 11, 0) = 0x7f425bb220007750 mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f423d4cb0007750 munmap(0x7f425bb22000, 36052) = 07750 close(11) = 07750 lstat("/var/moodledata", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 07750 access("/var/moodledata", W_OK) = 07750 openat(AT_FDCWD, "/usr/share/zoneinfo/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 117750 getdents(11, /* 68 entries */, 32768) = 19687750 getdents(11, /* 0 entries */, 32768) = 0...7750 lstat("/var/www/html/moodle/lib/setuplib.php", {st_mode=S_IFREG|0755, st_size=61227, ...}) = 07750 open("/var/www/html/moodle/lib/setuplib.php", O_RDONLY) = 117750 fstat(11, {st_mode=S_IFREG|0755, st_size=61227, ...}) = 07750 fstat(11, {st_mode=S_IFREG|0755, st_size=61227, ...}) = 07750 fstat(11, {st_mode=S_IFREG|0755, st_size=61227, ...}) = 07750 mmap(NULL, 61227, PROT_READ, MAP_SHARED, 11, 0) = 0x7f423d4bc0007750 munmap(0x7f423d4bc000, 61227) = 07750 close(11) = 07750 gettimeofday({1381402621, 223376}, NULL) = 07750 times({tms_utime=18, tms_stime=14, tms_cutime=0, tms_cstime=0}) = 4302171537750 lstat("/var/www/html/moodle/lib/textlib.class.php", {st_mode=S_IFREG|0755, st_size=36686, ...}) = 07750 open("/var/www/html/moodle/lib/textlib.class.php", O_RDONLY) = 117750 fstat(11, {st_mode=S_IFREG|0755, st_size=36686, ...}) = 07750 fstat(11, {st_mode=S_IFREG|0755, st_size=36686, ...}) = 07750 fstat(11, {st_mode=S_IFREG|0755, st_size=36686, ...}) = 07750 mmap(NULL, 36686, PROT_READ, MAP_SHARED, 11, 0) = 0x7f425bb220007750 mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f423d48a0007750 munmap(0x7f425bb22000, 36686) = 07750 close(11) = 07750 lstat("/var/www/html/moodle/lib/filterlib.php", {st_mode=S_IFREG|0755, st_size=53237, ...}) = 07750 open("/var/www/html/moodle/lib/filterlib.php", O_RDONLY) = 117750 fstat(11, {st_mode=S_IFREG|0755, st_size=53237, ...}) = 07750 fstat(11, {st_mode=S_IFREG|0755, st_size=53237, ...}) = 07750 fstat(11, {st_mode=S_IFREG|0755, st_size=53237, ...}) = 07750 read(11, "<?php\n// This file is part of Mo"..., 8192) = 81927750 read(11, "filter implementations\n * ar"..., 8192) = 81927750 read(11, "er of name.\n */\nfunction filter_"..., 8192) = 81927750 read(11, "RIT) {\n $DB->delete_recor"..., 8192) = 81927750 read(11, " // This maths copes with rea"..., 8192) = 81927750 read(11, " class=\"nolink\">',\n "..., 8192) = 81927750 read(11, "e) {\n $exists = in_ar"..., 8192) = 40857750 read(11, "", 8192) = 07750 read(11, "", 8192) = 07750 mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f423d4490007750 close(11) = 07750 lstat("/var/www/html/moodle/lib/ajax/ajaxlib.php", {st_mode=S_IFREG|0755, st_size=2825, ...}) = 07750 lstat("/var/www/html/moodle/lib/ajax", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 07750 open("/var/www/html/moodle/lib/ajax/ajaxlib.php", O_RDONLY) = 117750 fstat(11, {st_mode=S_IFREG|0755, st_size=2825, ...}) = 07750 fstat(11, {st_mode=S_IFREG|0755, st_size=2825, ...}) = 07750 fstat(11, {st_mode=S_IFREG|0755, st_size=2825, ...}) = 07750 mmap(NULL, 2825, PROT_READ, MAP_SHARED, 11, 0) = 0x7f425bb6f0007750 munmap(0x7f425bb6f000, 2825) = 07750 close(11) = 07750 lstat("/var/www/html/moodle/lib/weblib.php", {st_mode=S_IFREG|0755, st_size=115888, ...}) = 07750 open("/var/www/html/moodle/lib/weblib.php", O_RDONLY) = 117750 fstat(11, {st_mode=S_IFREG|0755, st_size=115888, ...}) = 07750 fstat(11, {st_mode=S_IFREG|0755, st_size=115888, ...}) = 07750 fstat(11, {st_mode=S_IFREG|0755, st_size=115888, ...}) = 07750 mmap(NULL, 115888, PROT_READ, MAP_SHARED, 11, 0) = 0x7f423d42c0007750 mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f423d3eb0007750 munmap(0x7f423d42c000, 115888) = 07750 close(11) = 07750 lstat("/var/www/html/moodle/lib/outputlib.php", {st_mode=S_IFREG|0755, st_size=63911, ...}) = 07750 open("/var/www/html/moodle/lib/outputlib.php", O_RDONLY) = 117750 fstat(11, {st_mode=S_IFREG|0755, st_size=63911, ...}) = 07750 fstat(11, {st_mode=S_IFREG|0755, st_size=63911, ...}) = 07750 fstat(11, {st_mode=S_IFREG|0755, st_size=63911, ...}) = 07750 mmap(NULL, 63911, PROT_READ, MAP_SHARED, 11, 0) = 0x7f423d4390007750 mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f423d3aa0007750 munmap(0x7f423d439000, 63911) = 07750 close(11) = 07750 lstat("/var/www/html/moodle/lib/outputcomponents.php", {st_mode=S_IFREG|0755, st_size=99763, ...}) = 07750 open("/var/www/html/moodle/lib/outputcomponents.php", O_RDONLY) = 117750 fstat(11, {st_mode=S_IFREG|0755, st_size=99763, ...}) = 07750 fstat(11, {st_mode=S_IFREG|0755, st_size=99763, ...}) = 07750 fstat(11, {st_mode=S_IFREG|0755, st_size=99763, ...}) = 07750 mmap(NULL, 99763, PROT_READ, MAP_SHARED, 11, 0) = 0x7f423d4300007750 mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f423d3690007750 mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f423d3280007750 munmap(0x7f423d430000, 99763) = 07750 close(11) = 07750 lstat("/var/www/html/moodle/lib/outputactions.php", {st_mode=S_IFREG|0755, st_size=6511, ...}) = 07750 open("/var/www/html/moodle/lib/outputactions.php", O_RDONLY) = 117750 fstat(11, {st_mode=S_IFREG|0755, st_size=6511, ...}) = 07750 fstat(11, {st_mode=S_IFREG|0755, st_size=6511, ...}) = 07750 fstat(11, {st_mode=S_IFREG|0755, st_size=6511, ...}) = 07750 mmap(NULL, 6511, PROT_READ, MAP_SHARED, 11, 0) = 0x7f425bb6e0007750 munmap(0x7f425bb6e000, 6511) = 07750 close(11) = 07750 lstat("/var/www/html/moodle/lib/outputfactories.php", {st_mode=S_IFREG|0755, st_size=12302, ...}) = 07750 open("/var/www/html/moodle/lib/outputfactories.php", O_RDONLY) = 117750 fstat(11, {st_mode=S_IFREG|0755, st_size=12302, ...}) = 07750 fstat(11, {st_mode=S_IFREG|0755, st_size=12302, ...}) = 07750 fstat(11, {st_mode=S_IFREG|0755, st_size=12302, ...}) = 07750 mmap(NULL, 12302, PROT_READ, MAP_SHARED, 11, 0) = 0x7f425bb6c0007750 munmap(0x7f425bb6c000, 12302) = 07750 close(11) = 07750 lstat("/var/www/html/moodle/lib/outputrenderers.php", {st_mode=S_IFREG|0755, st_size=142656, ...}) = 07750 open("/var/www/html/moodle/lib/outputrenderers.php", O_RDONLY) = 117750 fstat(11, {st_mode=S_IFREG|0755, st_size=142656, ...}) = 07750 fstat(11, {st_mode=S_IFREG|0755, st_size=142656, ...}) = 07750 fstat(11, {st_mode=S_IFREG|0755, st_size=142656, ...}) = 07750 mmap(NULL, 142656, PROT_READ, MAP_SHARED, 11, 0) = 0x7f423d3050007750 mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f423d2c40007750 mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f423d2830007750 munmap(0x7f423d305000, 142656) = 07750 close(11) = 07750 lstat("/var/www/html/moodle/lib/outputrequirementslib.php", {st_mode=S_IFREG|0755, st_size=72250, ...}) = 07750 open("/var/www/html/moodle/lib/outputrequirementslib.php", O_RDONLY) = 117750 fstat(11, {st_mode=S_IFREG|0755, st_size=72250, ...}) = 07750 fstat(11, {st_mode=S_IFREG|0755, st_size=72250, ...}) = 07750 fstat(11, {st_mode=S_IFREG|0755, st_size=72250, ...}) = 07750 mmap(NULL, 72250, PROT_READ, MAP_SHARED, 11, 0) = 0x7f423d4370007750 mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f423d2420007750 munmap(0x7f423d437000, 72250) = 07750 close(11) = 07750 lstat("/var/www/html/moodle/lib/navigationlib.php", {st_mode=S_IFREG|0755, st_size=204750, ...}) = 07750 open("/var/www/html/moodle/lib/navigationlib.php", O_RDONLY) = 117750 fstat(11, {st_mode=S_IFREG|0755, st_size=204750, ...}) = 07750 fstat(11, {st_mode=S_IFREG|0755, st_size=204750, ...}) = 07750 fstat(11, {st_mode=S_IFREG|0755, st_size=204750, ...}) = 07750 mmap(NULL, 204750, PROT_READ, MAP_SHARED, 11, 0) = 0x7f423d2100007750 mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f423d1cf0007750 mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f423d18e0007750 mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f423d14d0007750 mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f423d10c0007750 mmap(NULL, 135168, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f423d3070007750 munmap(0x7f423d210000, 204750) = 07750 close(11) = 0
Re: [users@httpd] Permission Still Denied with Moodle
Posted by Eric Covener <co...@gmail.com>.
On Wed, Oct 9, 2013 at 4:19 AM, Timothy Curchod <ti...@hotmail.com> wrote:
>
> 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
You could start the server under strace and see exactly which
underlying call fails, and what its arguments were.
stop Apache
strace -f o /tmp/strace.out apachectl -X
recreate
interrupt with control C
Look for EACCES towards the botom of /tmp/strace.out and share some of
the surrounding context here
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: [users@httpd] Permission Still Denied with Moodle
Posted by Timothy Curchod <ti...@hotmail.com>.
Hi again.
Stormy, I don't know if it's set to use DHCP. I believe so, but I will check when I can this evening. How would that affect my situation? Tomcat is running fine behind the router on a different box... And the 'strange behavior' was because I had set the wrong ip during moodle installation. I fixed that, but still, localhost and the ip are denied with the details listed below.
Eric, I don't know what ITK MPM
is. I don't use it intentionally at least. It says "(Multi-Processing
Module) for the Apache web server. mpm-itk allows you to run each of
your vhost under a separate uid and gid". When I installed php, I also
added these modules, when really I only needed mysql, as far as I know
for moodle. After seeing all those magickwand statements in the strace,
I'm thinking I should uninstall that if it's not needed. Here was the
list:
yum install php-mysqlnd php-gd php-imap
php-ldap php-odbc php-pear php-xml php-xmlrpc php-magickwand
php-mbstring php-mcrypt php-mssql php-shout php-snmp php-soap php-tidy
In
your second email, I assume you’re talking about the
/etc/httpd/logs/error_log message "access to /moodle/ denied (filesystem
path '/var/www/html/moodle') because search permissions are missing on a
component of the path" message? That was in the Apache error log.
Here is exactly what I did:
# service httpd stop# strace -f -o /tmp/strace.out apachectl -XGo to localhost/moodle.See
the “Incorrect access detected, this server may be accessed only
through "http://*.*.*.50:80/moodle" address, sorry. Please notify
server administrator. This page should automatically redirect. If
nothing is happening please use the continue link below.”Get redirected to that address. See the Chrome “Oops “message.Here is the httpd is the end of the /etc/httpd/logs/error_log
http://pastebin.com/0HuwTVRE
Here is the /tmp/strace.out file with all the mentions of "moodle" pasted (there was no "EACCES" string this time).
http://pastebin.com/3F9nhyTG
> Date: Thu, 10 Oct 2013 19:11:17 -0400
> To: users@httpd.apache.org
> From: stormy22@stormy.ca
> 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@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
RE: [users@httpd] Permission Still Denied with Moodle
Posted by Timothy Curchod <ti...@hotmail.com>.
Hi,
Just thought I'd give an update in case anyone else is having server problems on Fedora 19 now that it uses FirewallD and sees this thread later. A permanent solution is to copy the zone file you want from /usr/lib/firewalld/zones/ to /etc/firewalld/zones/ then edit that file to add a service and a port:<service name="http"/><port port="80" protocol="tcp|udp"/>Reboot and the site is served. A zone is a settings profile. The one active by default on my system was public.xml, which is described as "For use in public areas. You do not trust the other computers on networks to not harm your computer. Only selected incoming connections are accepted." I'm not sure how secure this is, as many people still use iptables and consider FirewallD too new for their security, so if anyone has any ideas about safer settings, I'd be willing to listen.I didn't try Paul's advice to set my "residential" router to a static IP as I connect to the internet through a cable modem that changes the IP if it gets turned off, and since the router works for other boxes and I found a solution with FirewallD, I went with that.
Thanks again for all the help,
Timothy Curchod.
Date: Tue, 15 Oct 2013 12:32:39 -0400
To: users@httpd.apache.org
From: stormy22@stormy.ca
Subject: Re: [users@httpd] Permission Still Denied with Moodle
At 10:00 PM 10/14/2013 -0400, Yehuda Katz wrote:
On Mon, Oct 14, 2013 at 6:06 AM,
Timothy Curchod
<ti...@hotmail.com>
wrote:
The bad news is that in the error log there is nothing when going to
http://192.186.1.100/info.php
or http://*my*.*ip*.*goes*.*here*/info.php. Localhost works fine.
So if there is no error in the httpd error_log, then I am on the wrong mailing list now, right? It's not an Apache problem, it's a network setup/hardware issue.
To recap, the problem now is that requests through localhost work properly and other requests time out. Is that correct?
To me this really indicates that either Apache is not listening on other IPs (which we went through already) or (not sure why I did not mention this sooner) you might have a firewall in the way. Can you check if you have a firewall (like iptables) running on the system?
I *could* be way off track, but, as I wrote previously, this user has a "Linksys WRT54C router using Automatic Configuration DHCP" -- this is quite an old residential item, and istr that these were problematic. I can't even remember if it's a modem as well as a router. In any case, try setting it to static IP (or particularly if it's a modem, set to "straight through", disable any IP intervention and rely on your server set up for routing and firewall.)
Best - Paul
Re: [users@httpd] Permission Still Denied with Moodle
Posted by Stormy <st...@stormy.ca>.
At 10:00 PM 10/14/2013 -0400, Yehuda Katz wrote:
>On Mon, Oct 14, 2013 at 6:06 AM, Timothy Curchod
><<m...@hotmail.com> wrote:
>The bad news is that in the error log there is nothing when going to
><http://192.186.1.100/info.php>http://192.186.1.100/info.php or
>http://*my*.*ip*.*goes*.*here*/info.php. Localhost works fine.
> So if there is no error in the httpd error_log, then I am on the wrong
> mailing list now, right? It's not an Apache problem, it's a network
> setup/hardware issue.
>
>To recap, the problem now is that requests through localhost work properly
>and other requests time out. Is that correct?
>
>To me this really indicates that either Apache is not listening on other
>IPs (which we went through already) or (not sure why I did not mention
>this sooner) you might have a firewall in the way. Can you check if you
>have a firewall (like iptables) running on the system?
I *could* be way off track, but, as I wrote previously, this user has a
"Linksys WRT54C router using Automatic Configuration DHCP" -- this is quite
an old residential item, and istr that these were problematic. I can't even
remember if it's a modem as well as a router. In any case, try setting it
to static IP (or particularly if it's a modem, set to "straight through",
disable any IP intervention and rely on your server set up for routing and
firewall.)
Best - Paul
Re: [users@httpd] Permission Still Denied with Moodle
Posted by Yehuda Katz <ye...@ymkatz.net>.
Good to hear.
I also discovered that the netstat output not showing an IPv4 listener was
(at least in Debian) a design decision. They considered changing it to be
type 'tcp46' instead of just 'tcp6', but it is not clear why that was not
changed. I believe it also depends on the kernel and I have never seen that
before on any other system.
- Y
On Tue, Oct 15, 2013 at 9:18 AM, Timothy Curchod <ti...@hotmail.com>wrote:
> Hi again Yehuda,
>
> Where is the iptables firewall configuration? Oh, that's no longer the
> default firewall in Fedora. Let me introduce you to FirewallD:
> #firewall-cmd --state
> running
> #firewall-cmd get-default-zone
> public
> #systemctl stop firewalld.service
> Webservice on port 80 restored.
> Success. Now all ip addresses are accessible!
> The two boxes here, one running Fedora 10, and this one running Fedora 19
> can't be more different. The desktop, Gnome, screensavers, etc, and now
> the firewall are completely different. Thankfully the terminal and gedit
> are still the same.
> Yehuda, Eric, Stormy, and anyone who read my e-mails, thanks for the help.
> Now it's time to read the huge document at
> http://fedoraproject.org/wiki/FirewallD to figure out how to work this
> thing.
>
> Timothy.
>
> ------------------------------
> From: yehuda@ymkatz.net
> Date: Mon, 14 Oct 2013 22:00:43 -0400
>
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Permission Still Denied with Moodle
>
> On Mon, Oct 14, 2013 at 6:06 AM, Timothy Curchod <ti...@hotmail.com>wrote:
>
> The bad news is that in the error log there is nothing when going to
> http://192.186.1.100/info.php or http://*my*.*ip*.*goes*.*here*/info.php.
> Localhost works fine.
>
>
>
> So if there is no error in the httpd error_log, then I am on the wrong
> mailing list now, right? It's not an Apache problem, it's a network
> setup/hardware issue.
>
>
> To recap, the problem now is that requests through localhost work properly
> and other requests time out. Is that correct?
>
> To me this really indicates that either Apache is not listening on other
> IPs (which we went through already) or (not sure why I did not mention this
> sooner) you might have a firewall in the way. Can you check if you have a
> firewall (like iptables) running on the system?
>
RE: [users@httpd] Permission Still Denied with Moodle
Posted by Timothy Curchod <ti...@hotmail.com>.
Hi again Yehuda,
Where is the iptables firewall configuration? Oh, that's no longer the default firewall in Fedora. Let me introduce you to FirewallD:#firewall-cmd --staterunning#firewall-cmd get-default-zonepublic#systemctl stop firewalld.service Webservice on port 80 restored. Success. Now all ip addresses are accessible!The two boxes here, one running Fedora 10, and this one running Fedora 19 can't be more different. The desktop, Gnome, screensavers, etc, and now the firewall are completely different. Thankfully the terminal and gedit are still the same.Yehuda, Eric, Stormy, and anyone who read my e-mails, thanks for the help.Now it's time to read the huge document at http://fedoraproject.org/wiki/FirewallD to figure out how to work this thing.
Timothy.
From: yehuda@ymkatz.net
Date: Mon, 14 Oct 2013 22:00:43 -0400
To: users@httpd.apache.org
Subject: Re: [users@httpd] Permission Still Denied with Moodle
On Mon, Oct 14, 2013 at 6:06 AM, Timothy Curchod <ti...@hotmail.com> wrote:
The bad news is that in the error log there is nothing when going to http://192.186.1.100/info.php or http://*my*.*ip*.*goes*.*here*/info.php. Localhost works fine.
So if there is no error in the httpd error_log, then I am on the wrong mailing list now, right? It's not an Apache problem, it's a network setup/hardware issue.
To recap, the problem now is that requests through localhost work properly and other requests time out. Is that correct?
To me this really indicates that either Apache is not listening on other IPs (which we went through already) or (not sure why I did not mention this sooner) you might have a firewall in the way. Can you check if you have a firewall (like iptables) running on the system?
Re: [users@httpd] Permission Still Denied with Moodle
Posted by Yehuda Katz <ye...@ymkatz.net>.
On Mon, Oct 14, 2013 at 6:06 AM, Timothy Curchod <ti...@hotmail.com>wrote:
> The bad news is that in the error log there is nothing when going to
> http://192.186.1.100/info.php or http://*my*.*ip*.*goes*.*here*/info.php.
> Localhost works fine.
>
> So if there is no error in the httpd error_log, then I am on the wrong
> mailing list now, right? It's not an Apache problem, it's a network
> setup/hardware issue.
>
To recap, the problem now is that requests through localhost work properly
and other requests time out. Is that correct?
To me this really indicates that either Apache is not listening on other
IPs (which we went through already) or (not sure why I did not mention this
sooner) you might have a firewall in the way. Can you check if you have a
firewall (like iptables) running on the system?
RE: [users@httpd] Permission Still Denied with Moodle
Posted by Timothy Curchod <ti...@hotmail.com>.
Hi Yehuda and all,
I set the timezone correctly, that's the good news. The bad news is that in the error log there is nothing when going to http://192.186.1.100/info.php or http://*my*.*ip*.*goes*.*here*/info.php. Localhost works fine. The network card I have nforce or marvell. That's what the computer guy said. Since it's not actually a 'card' I have no idea. There are two jacks in the motherboard, but only one appears to work. So if there is no error in the httpd error_log, then I am on the wrong mailing list now, right? It's not an Apache problem, it's a network setup/hardware issue.Here is the clean error log:[Mon Oct 14 18:11:02.104234 2013] [suexec:notice] [pid 2597] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)[Mon Oct 14 18:11:02.145561 2013] [auth_digest:notice] [pid 2597] AH01757: generating secret for digest authentication ...[Mon Oct 14 18:11:02.146653 2013] [lbmethod_heartbeat:notice] [pid 2597] AH02282: No slotmem from mod_heartmonitor[Mon Oct 14 18:11:02.266021 2013] [mpm_prefork:notice] [pid 2597] AH00163: Apache/2.4.6 (Fedora) PHP/5.5.4 configured -- resuming normal operations[Mon Oct 14 18:11:02.266092 2013] [core:notice] [pid 2597] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'[Mon Oct 14 18:32:16.913085 2013] [mpm_prefork:notice] [pid 2597] AH00170: caught SIGWINCH, shutting down gracefully[Mon Oct 14 18:37:21.337310 2013] [suexec:notice] [pid 899] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)[Mon Oct 14 18:37:21.568712 2013] [auth_digest:notice] [pid 899] AH01757: generating secret for digest authentication ...[Mon Oct 14 18:37:21.574499 2013] [lbmethod_heartbeat:notice] [pid 899] AH02282: No slotmem from mod_heartmonitor[Mon Oct 14 18:37:34.205132 2013] [mpm_prefork:notice] [pid 899] AH00163: Apache/2.4.6 (Fedora) PHP/5.5.4 configured -- resuming normal operations[Mon Oct 14 18:37:34.205218 2013] [core:notice] [pid 899] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'Any hints about how to debug this problem, or where I should ask?
Timothy.
From: yehuda@ymkatz.net
Date: Sun, 13 Oct 2013 13:36:26 -0400
To: users@httpd.apache.org
Subject: Re: [users@httpd] Permission Still Denied with Moodle
On Sun, Oct 13, 2013 at 10:37 AM, Timothy Curchod <ti...@hotmail.com> wrote:
Hi again Yehuda,
I pasted that "Listen 192.0.2.100:80" number from some code example and didn't notice that it wasn't localhost. I'm getting tired here.
However, that using 192.168.1.100:80 didn't work. And, if that value is in the config file, the localhost option wont work either! Also, I forgot to say that I tried to access 192.186.1.100/info.php from the other box and it failed.
Do you have the exact error? Does it say the port is in use or some other error?
I got an "Invalid date.timezone value 'KST'" error for Korean Standard Time! I will have to find the right setting.See the PHP timezone list: http://php.net/manual/en/timezones.php: I am guessing you want Asia/Seoul.
- Y
Re: [users@httpd] Permission Still Denied with Moodle
Posted by Yehuda Katz <ye...@ymkatz.net>.
On Sun, Oct 13, 2013 at 10:37 AM, Timothy Curchod <ti...@hotmail.com>wrote:
> Hi again Yehuda,
>
> I pasted that "Listen 192.0.2.100:80" number from some code example and
> didn't notice that it wasn't localhost. I'm getting tired here.
> However, that using 192.168.1.100:80 didn't work. And, if that value is
> in the config file, the localhost option wont work either! Also, I forgot
> to say that I tried to access 192.186.1.100/info.php from the other box
> and it failed.
>
Do you have the exact error? Does it say the port is in use or some other
error?
> I got an "Invalid date.timezone value 'KST'" error for Korean Standard
> Time! I will have to find the right setting.
>
See the PHP timezone list: http://php.net/manual/en/timezones.php: I am
guessing you want Asia/Seoul.
- Y
RE: [users@httpd] Permission Still Denied with Moodle
Posted by Timothy Curchod <ti...@hotmail.com>.
Hi again Yehuda,
I pasted that "Listen 192.0.2.100:80" number from some code example and didn't notice that it wasn't localhost. I'm getting tired here.However, that using 192.168.1.100:80 didn't work. And, if that value is in the config file, the localhost option wont work either! Also, I forgot to say that I tried to access 192.186.1.100/info.php from the other box and it failed. I got an "Invalid date.timezone value 'KST'" error for Korean Standard Time! I will have to find the right setting. Speaking of timezones, it's time to switch off here.I definitely won't be building Apache from source tonight! I will pick up with this problem tomorrow.
Timothy.
From: yehuda@ymkatz.net
Date: Sun, 13 Oct 2013 10:20:58 -0400
To: users@httpd.apache.org
Subject: Re: [users@httpd] Permission Still Denied with Moodle
On Sun, Oct 13, 2013 at 10:10 AM, Timothy Curchod <ti...@hotmail.com> wrote:
SO I tried:
#Listen 80Listen 192.0.2.100:80
But got this error and Apache failed to start.
Active: failed (Result: exit-code) since Sun 2013-10-13 22:42:53 KST; 1min 4s ago Process: 12488 ExecStop=/usr/sbin/httpd $OPTIONS -k graceful-stop (code=exited, status=0/SUCCESS) Process: 3893 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
Process: 12487 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE) Status: "Total requests: 1; Current requests/sec: 0; Current traffic: 0 B/sec"Oct 13 22:42:53 localhost.localdomain httpd[12487]: (99)Cannot assign requested address: AH00072: make_sock: could not bind to address 192.0.2.100:80
Why did you choose 192.0.2.100? You need to use an address that is already bound to your network card.
I'm not sure how to use that configure option '--disable-v4-mapped'. Where does that go? It seems like a start up script flag, but I use systemctl to start httpd. I couldn't find an example of how to use that. Will that add IPv4 address listening?
You need to do that is you build the server from source. It does not apply to you if you are using a packaged version.
- Y
Re: [users@httpd] Permission Still Denied with Moodle
Posted by Yehuda Katz <ye...@ymkatz.net>.
On Sun, Oct 13, 2013 at 10:10 AM, Timothy Curchod <ti...@hotmail.com>wrote:
> SO I tried:
> #Listen 80
> Listen 192.0.2.100:80
>
> But got this error and Apache failed to start.
> Active: failed (Result: exit-code) since Sun 2013-10-13 22:42:53 KST;
> 1min 4s ago
> Process: 12488 ExecStop=/usr/sbin/httpd $OPTIONS -k graceful-stop
> (code=exited, status=0/SUCCESS)
> Process: 3893 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful
> (code=exited, status=0/SUCCESS)
> Process: 12487 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND
> (code=exited, status=1/FAILURE)
> Status: "Total requests: 1; Current requests/sec: 0; Current traffic:
> 0 B/sec"
> Oct 13 22:42:53 localhost.localdomain httpd[12487]: (99)Cannot assign
> requested address: AH00072: make_sock: could not bind to address
> 192.0.2.100:80
>
Why did you choose 192.0.2.100? You need to use an address that is already
bound to your network card.
> I'm not sure how to use that configure option '--disable-v4-mapped'.
> Where does that go? It seems like a start up script flag, but I use
> systemctl to start httpd. I couldn't find an example of how to use that.
> Will that add IPv4 address listening?
>
You need to do that is you build the server from source. It does not apply
to you if you are using a packaged version.
- Y
RE: [users@httpd] Permission Still Denied with Moodle
Posted by Timothy Curchod <ti...@hotmail.com>.
Yehuda,
Thanks for you replies. I will set the timezone as you suggest. I also disabled mod_autoindex by commenting out the "Options Indexes FollowSymLinks" line in the httpd.conf file. However, it doesn't help the situation.
You may be right about the IP4 & IPv6 idea. I have a strange network card that has two ports with cables leading to the motherboard, the likes of which I've never used before. I ran nestat on the two boxes behind my router and got this.On my other box running Fedoa 11, the netstat command says TCP 0 0 :::8080 :::* LISTEN 5418:javaOn the Fedora 19 box:tcp6 0 0 :::80 :::* LISTEN 11739/httpd
Does that tcp6 mean IPv6? I'm not sure. Then I read this on Apache about IPv4 and IPv6:
If you want Apache to handle IPv4 connections only, regardless of what your platform and APR will support, specify an IPv4 address on all Listen directives, as in the following examples:Listen 0.0.0.0:80Listen 192.0.2.1:80If your platform supports it and you want Apache to handle IPv4 and IPv6 connections on separate sockets (i.e., to disable IPv4-mapped addresses), specify the --disable-v4-mapped configure option.(http://httpd.apache.org/docs/2.2/en/bind.html)
SO I tried:#Listen 80Listen 192.0.2.100:80
But got this error and Apache failed to start. Active: failed (Result: exit-code) since Sun 2013-10-13 22:42:53 KST; 1min 4s ago Process: 12488 ExecStop=/usr/sbin/httpd $OPTIONS -k graceful-stop (code=exited, status=0/SUCCESS) Process: 3893 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS) Process: 12487 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE) Status: "Total requests: 1; Current requests/sec: 0; Current traffic: 0 B/sec"Oct 13 22:42:53 localhost.localdomain httpd[12487]: (99)Cannot assign requested address: AH00072: make_sock: could not bind to address 192.0.2.100:80
I'm not sure how to use that configure option '--disable-v4-mapped'. Where does that go? It seems like a start up script flag, but I use systemctl to start httpd. I couldn't find an example of how to use that. Will that add IPv4 address listening?
Timothy Curchod.
From: yehuda@ymkatz.net
Date: Sun, 13 Oct 2013 09:47:30 -0400
To: users@httpd.apache.org
Subject: Re: [users@httpd] Permission Still Denied with Moodle
Now that I am at the computer, a more in-depth reply.
On Sun, Oct 13, 2013 at 8:17 AM, Timothy Curchod <ti...@hotmail.com> wrote:
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)
Because the :80 is redundant according to Chrome because 80 is the "well-known" port for http.
and it takes almost a minute to come back with the "Oops!" message, as if the server is not on.
That is because the request is not rejected or accepted, it just times out.
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
Server generated directory index is talking about mod_autoindex and for a production system, it should be disabled unless you specifically need it.You need to see why the login page is redirecting you to the wrong place. I imagine that after login, you should be redirected to /moodle, not / as the error log indicated is happening.
Also, I recommend you set your timezone in php.ini as mentioned in the error log. It will save you from some odd situations where date functions don't work properly.
Why is it then forbidden to serve something to the web that is OK for localhost?
The error log does not indicate that this is the case. To the contrary, every entry in the log that references a client says the source is 127.0.0.1 (a.k.a. localhost).
The Linksys WRT54C router using Automatic Configuration DHCP is set as follows:
Port RangeApplication 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)
Can you take the linksys out of the picture by accessing 192.168.1.100 from another computer inside your network?
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.
Since this thread has mentioned several different errors (permissions, DirectoryIndex, timeout) which one are you referring to?
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
As I mentioned, your IPv4 address is not listed here...
- Y
Re: [users@httpd] Permission Still Denied with Moodle
Posted by Yehuda Katz <ye...@ymkatz.net>.
Now that I am at the computer, a more in-depth reply.
On Sun, Oct 13, 2013 at 8:17 AM, Timothy Curchod <ti...@hotmail.com>wrote:
> 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)
>
Because the :80 is redundant according to Chrome because 80 is the
"well-known" port for http.
> and it takes almost a minute to come back with the "Oops!" message, as if
> the server is not on.
>
That is because the request is not rejected or accepted, it just times out.
> 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
>
Server generated directory index is talking about mod_autoindex and for a
production system, it should be disabled unless you specifically need it.
You need to see why the login page is redirecting you to the wrong place. I
imagine that after login, you should be redirected to /moodle, not / as the
error log indicated is happening.
Also, I recommend you set your timezone in php.ini as mentioned in the
error log. It will save you from some odd situations where date functions
don't work properly.
Why is it then forbidden to serve something to the web that is OK for
> localhost?
>
The error log does not indicate that this is the case. To the contrary,
every entry in the log that references a client says the source is
127.0.0.1 (a.k.a. localhost).
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)
>
Can you take the linksys out of the picture by accessing 192.168.1.100 from
another computer inside your network?
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.
>
Since this thread has mentioned several different errors (permissions,
DirectoryIndex, timeout) which one are you referring to?
> 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
>
As I mentioned, your IPv4 address is not listed here...
- Y
Re: [users@httpd] Permission Still Denied with Moodle
Posted by Yehuda Katz <ye...@ymkatz.net>.
On Sunday, October 13, 2013, Timothy Curchod wrote:
>
> 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
>
I am not sure if I mentioned this before (can't look on my iPad), but it
seems from netstat that Apache is only listening on IPv6, not IPv4.
localhost probably resolves to IPv6 first, so it works. I have no idea what
would be causing that error, but with just IPv6 bound to port 80, it would
explain why it does not respond over another IP.
- Y
--
Sent from a gizmo with a very small keyboard and hyper-active auto-correct.
RE: [users@httpd] Permission Still Denied with Moodle
Posted by Timothy Curchod <ti...@hotmail.com>.
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/WuF1xsD3The 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 RangeApplication Start End Protocol IP Address EnableApache 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 80tcp6 0 0 :::80 :::* LISTEN unix 2 [ ACC ] STREAM LISTENING 18068 @/tmp/.ICE-unix/1205unix 2 [ ACC ] STREAM LISTENING 18069 /tmp/.ICE-unix/1205
httpd -SVirtualHost configuration:ServerRoot: "/etc/httpd"Main DocumentRoot: "/var/www/html"Main ErrorLog: "/etc/httpd/logs/error_log"Mutex proxy: using_defaultsMutex authn-socache: using_defaultsMutex default: dir="/run/httpd/" mechanism=default Mutex mpm-accept: using_defaultsMutex authdigest-opaque: using_defaultsMutex proxy-balancer-shm: using_defaultsMutex rewrite-map: using_defaultsMutex authdigest-client: using_defaultsPidFile: "/run/httpd/httpd.pid"Define: DUMP_VHOSTSDefine: DUMP_RUN_CFGUser: name="apache" id=48Group: name="apache" id=48
> Date: Thu, 10 Oct 2013 19:11:17 -0400
> To: users@httpd.apache.org
> From: stormy22@stormy.ca
> 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@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
RE: [users@httpd] Permission Still Denied with Moodle
Posted by Stormy <st...@stormy.ca>.
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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: [users@httpd] Permission Still Denied with Moodle
Posted by Timothy Curchod <ti...@hotmail.com>.
Hi again,
Here is the result of the command you suggested Yehuda:
netstat -ln | grep 80tcp6 0 0 :::80 :::* LISTEN udp6 0 0 :::22880 :::* unix 2 [ ACC ] STREAM LISTENING 15965 @/tmp/.ICE-unix/806unix 2 [ ACC ] STREAM LISTENING 15966 /tmp/.ICE-unix/806
And some more info:
/sbin/ifconfigem1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.1.100 netmask 255.255.255.0 broadcast 192.168.1.255 inet6 fe80::211:d8ff:fe26:a1ca prefixlen 64 scopeid 0x20<link> ether 00:11:d8:26:a1:ca txqueuelen 1000 (Ethernet) RX packets 3127 bytes 2155230 (2.0 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 3300 bytes 639943 (624.9 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 17
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 0 (Local Loopback) RX packets 4 bytes 340 (340.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 4 bytes 340 (340.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
By the way, in the first e-mail, you might have seen the 'all' in the <Directory "/var/www/html">When I restarted the server, it complained about that, so I commented it out, despite the notes about it in the file.<Directory "/var/www/html"> Options Indexes FollowSymLinks # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit #AllowOverride None #all Require all granted</Directory>
Regarding the SELinux suspicion, I tried the suggestions in that wiki before my first post. That's where I learned the "ls -alZ" command. I should have put these in that e-mail. Here are the results on the pertinent folders:
drwxrwxr-x. apache apache system_u:object_r:httpd_sys_content_t:s0 www
drwxrwxr-x. apache apache system_u:object_r:httpd_sys_content_t:s0 .drwxr-xr-x. root root system_u:object_r:var_t:s0 ..drwxrwxr-x. apache apache system_u:object_r:httpd_sys_script_exec_t:s0 cgi-bindrwxrwxr-x. apache apache system_u:object_r:httpd_sys_content_t:s0 html
-rwxr-xr-x. apache timothy unconfined_u:object_r:user_home_t:s0 index.php
Actually I don't know how to use the "change file SELinux security context" command. But as you can see, the html file setting is "httpd_sys_content_t", but the index.php file is not. I did try these commands:cp /etc/selinux/config /etc/selinux/config.bakDisable SELinuxsed -i s/SELINUX=enforcing/SELINUX=disabled/g /etc/selinux/configI thought that would disable SELinux to rule that out as a problem but it didn't appear to do anything. Reading a little bit more about the chcon command I tried it out:
chcon -R --reference=info.php moodle
Then files like the index all have that same httpd_sys_content_t label which is what Yehuda suggested. Still, there was no change in the Permission Denied situation.
-rwxr-xr-x. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 index.php
One thing I haven't looked at because I don't understand is the comment at the end of the http://wiki.apache.org/httpd/13PermissionDenied article. Maybe someone could translate this into some concrete steps I could try:"In rare cases, this can be caused by other issues, such as a file permissions problem elsewhere in your apache2.conf file. For example, a WSGIScriptAlias directive not mapping to an actual file. The error message may not be accurate about which file was unreadable."
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. Please notify server administrator. This page should automatically redirect. If nothing is happening please use the continue link below." The funny part is that the ip address does not end with a 30, but a 50, as Linksys shows, and Tomcat, working on port 8080 on another box shows. So why does that message point to ...30:80/moodle? Strange.
Any other suggestions would really help,
Thanks in advance,
Timothy.
From: yehuda@ymkatz.net
Date: Wed, 9 Oct 2013 20:03:45 -0400
To: users@httpd.apache.org
Subject: Re: [users@httpd] Permission Still Denied with Moodle
1. For the "http://*my ip*/moodle" problem:
It appears that there are no vhosts at all, so that should not get in the way.I should have listed this before too: Can you check if apache is listening on all ips?
netstat -ln | grep 80
2. For the localhost problem: I can't shake the feeling that this is SELinux related, since your permissions look OK.Did you look at this wiki article? I don't want to suggest anything you already tried.
Did you try changing the SELinux context (I think the correct one should be httpd_sys_content_t)?
- Y
On Wed, Oct 9, 2013 at 7:34 PM, Timothy Curchod <ti...@hotmail.com> wrote:
Thanks for the reply Yehuda. Here is the info you asked about.
ls -l
lrwxrwxrwx. 1 root root 7 Oct 8 17:13 bin -> usr/bin
dr-xr-xr-x. 5 root root 1024 Oct 8 17:31 boot
drwxr-xr-x 19 root root 3440 Oct 10 07:02 dev
drwxr-xr-x. 144 root root 12288 Oct 10 07:02 etc
drwxr-xr-x. 4 root root 4096 Jul 8 17:56 home
lrwxrwxrwx. 1 root root 7 Oct 8 17:13 lib -> usr/lib
lrwxrwxrwx. 1 root root 9 Oct 8 17:13 lib64 -> usr/lib64
drwx------. 2 root root 16384 Jun 28 02:09 lost+found
drwxr-xr-x. 2 root root 4096 Jul 8 17:56 media
drwxr-xr-x. 3 root root 4096 Jul 8 17:56 mnt
drwxr-xr-x. 3 root root 4096 Oct 8 18:42 opt
dr-xr-xr-x 166 root root 0 Oct 10 07:02 proc
dr-xr-x---. 5 root root 4096 Oct 9 22:42 root
drwxr-xr-x 39 root root 1180 Oct 10 07:02 run
lrwxrwxrwx. 1 root root 8 Oct 8 17:13 sbin -> usr/sbin
drwxr-xr-x. 2 root root 4096 Jul 8 17:56 srv
dr-xr-xr-x 13 root root 0 Oct 10 07:02 sys
drwxrwxrwt 13 root root 280 Oct 10 07:03 tmp
drwxr-xr-x. 13 root root 4096 Oct 8 17:13 usr
drwxr-xr-x. 23 root root 4096 Oct 9 12:21 var
Also, moodle requires a data folder which I put in var with 777 permissions:
drwxrwxrwx. 6 root root 4096 Oct 9 12:55 moodledata
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 not_used
Group: name="apache" id=48 not_used
I have a Linksys router which has settings as such:
Start End Protocol IP Address
80 80 both 192.168.1.100
8080 8080 both 192.168.1.126 <-- used with Tomcat which runs fine on another box.
This is in the httpd.config file:
#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80
What am I doing wrong? Notice that info.php is in the documents directory and I can access it fine.
-rw-r--r--. 1 apache root 20 Oct 9 11:32 info.php
I tried to create the page as my regular user, but was unable to save in that directory, so I ended up creating it as root. How am I going to be able to work on Moodle development if I can’t modify files in the www/html folder as a regular user? This is a development server with one user, myself. Should I make all the files match the permissions on info.php and do all my work as root?
Thanks for any help,
Timothy.
From: yehuda@ymkatz.net
Date: Wed, 9 Oct 2013 12:18:56 -0400
To: users@httpd.apache.org
Subject: Re: [users@httpd] Permission Still Denied with Moodle
"AH00035: access to /moodle/ denied (filesystem path '/var/www/html/moodle') because search permissions are missing on a component of the path"
This implies that the x permission is missing. You posted for every directory except /var . What are its permissions?I have no idea if selinux could get in the way or if setenforce 0 really gets rid of it.
Incorrect access detected, this server may be accessed only through "http://*my ip*/moodle" address, sorry. Please notify server administrator.
Does Moodle modify the default 403 error page? That is probably what this is.
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*Is apache set to listen to an IP besides 127.0.0.1?Run httpd -S for the list of active vhosts.
- Y
On Wed, Oct 9, 2013 at 4:19 AM, Timothy Curchod <ti...@hotmail.com> wrote:
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 apacheGroup 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.phpdrwxr-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.txtdrwxr-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 enroldrwxr-xr-x. 2 apache timothy 4096 Oct 9 14:06 error-rwxr-xr-x. 1 apache timothy 3923 Oct 4 11:43 file.phpdrwxr-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.phpdrwxr-xr-x. 8 apache timothy 4096 Oct 9 14:06 gradedrwxr-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 19Apache 2.4.6PHP 5.5.4moodle 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.
Re: [users@httpd] Permission Still Denied with Moodle
Posted by Yehuda Katz <ye...@ymkatz.net>.
1. For the "http://*my ip*/moodle" problem:
It appears that there are no vhosts at all, so that should not get in the
way.
I should have listed this before too: Can you check if apache is listening
on all ips?
netstat -ln | grep 80
2. For the localhost problem:
I can't shake the feeling that this is SELinux related, since your
permissions look OK.
Did you look at this wiki
article<http://wiki.apache.org/httpd/13PermissionDenied>?
I don't want to suggest anything you already tried.
Did you try changing the SELinux context (I think the correct one should
be httpd_sys_content_t)?
- Y
On Wed, Oct 9, 2013 at 7:34 PM, Timothy Curchod <ti...@hotmail.com>wrote:
> Thanks for the reply Yehuda. Here is the info you asked about.
>
> ls -l
>
> lrwxrwxrwx. 1 root root 7 Oct 8 17:13 bin -> usr/bin
>
> dr-xr-xr-x. 5 root root 1024 Oct 8 17:31 boot
>
> drwxr-xr-x 19 root root 3440 Oct 10 07:02 dev
>
> drwxr-xr-x. 144 root root 12288 Oct 10 07:02 etc
>
> drwxr-xr-x. 4 root root 4096 Jul 8 17:56 home
>
> lrwxrwxrwx. 1 root root 7 Oct 8 17:13 lib -> usr/lib
>
> lrwxrwxrwx. 1 root root 9 Oct 8 17:13 lib64 -> usr/lib64
>
> drwx------. 2 root root 16384 Jun 28 02:09 lost+found
>
> drwxr-xr-x. 2 root root 4096 Jul 8 17:56 media
>
> drwxr-xr-x. 3 root root 4096 Jul 8 17:56 mnt
>
> drwxr-xr-x. 3 root root 4096 Oct 8 18:42 opt
>
> dr-xr-xr-x 166 root root 0 Oct 10 07:02 proc
>
> dr-xr-x---. 5 root root 4096 Oct 9 22:42 root
>
> drwxr-xr-x 39 root root 1180 Oct 10 07:02 run
>
> lrwxrwxrwx. 1 root root 8 Oct 8 17:13 sbin -> usr/sbin
>
> drwxr-xr-x. 2 root root 4096 Jul 8 17:56 srv
>
> dr-xr-xr-x 13 root root 0 Oct 10 07:02 sys
>
> drwxrwxrwt 13 root root 280 Oct 10 07:03 tmp
>
> drwxr-xr-x. 13 root root 4096 Oct 8 17:13 usr
>
> drwxr-xr-x. 23 root root 4096 Oct 9 12:21 var
>
> Also, moodle requires a data folder which I put in var with 777
> permissions:
>
> drwxrwxrwx. 6 root root 4096 Oct 9 12:55 moodledata
>
> 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 not_used
>
> Group: name="apache" id=48 not_used
>
> I have a Linksys router which has settings as such:
>
> Start End Protocol IP Address
>
> 80 80 both 192.168.1.100
>
> 8080 8080 both 192.168.1.126 <-- used with Tomcat which
> runs fine on another box.
>
> This is in the httpd.config file:
>
> #
>
> # Listen: Allows you to bind Apache to specific IP addresses and/or
>
> # ports, instead of the default. See also the <VirtualHost>
>
> # directive.
>
> #
>
> # Change this to Listen on specific IP addresses as shown below to
>
> # prevent Apache from glomming onto all bound IP addresses.
>
> #
>
> #Listen 12.34.56.78:80
>
> Listen 80
>
> What am I doing wrong? Notice that info.php is in the documents directory
> and I can access it fine.
>
> -rw-r--r--. 1 apache root 20 Oct 9 11:32 info.php
>
> I tried to create the page as my regular user, but was unable to save in
> that directory, so I ended up creating it as root. How am I going to be
> able to work on Moodle development if I can’t modify files in the www/html
> folder as a regular user? This is a development server with one user,
> myself. Should I make all the files match the permissions on info.php and
> do all my work as root?
>
>
> Thanks for any help,
>
> Timothy.
>
> ------------------------------
> From: yehuda@ymkatz.net
> Date: Wed, 9 Oct 2013 12:18:56 -0400
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Permission Still Denied with Moodle
>
>
> "AH00035: access to /moodle/ denied (filesystem path
> '/var/www/html/moodle') because search permissions are missing on a
> component of the path"
>
> This implies that the x permission is missing. You posted for every
> directory except /var . What are its permissions?
> I have no idea if selinux could get in the way or if setenforce 0 really
> gets rid of it.
>
> Incorrect access detected, this server may be accessed only through
> "http://*my ip*/moodle" address, sorry. Please notify server
> administrator.
>
> Does Moodle modify the default 403 error page? That is probably what this
> is.
>
> 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*
>
> Is apache set to listen to an IP besides 127.0.0.1?
> Run httpd -S for the list of active vhosts.
>
> - Y
>
>
> On Wed, Oct 9, 2013 at 4:19 AM, Timothy Curchod <ti...@hotmail.com>wrote:
>
>
> 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.
>
>
>
RE: [users@httpd] Permission Still Denied with Moodle
Posted by Timothy Curchod <ti...@hotmail.com>.
Thanks for the reply Yehuda. Here is the info you asked about.
ls -llrwxrwxrwx. 1 root root 7 Oct 8 17:13 bin -> usr/bindr-xr-xr-x. 5 root root 1024 Oct 8 17:31 bootdrwxr-xr-x 19 root root 3440 Oct 10 07:02 devdrwxr-xr-x. 144 root root 12288 Oct 10 07:02 etcdrwxr-xr-x. 4 root root 4096 Jul 8 17:56 homelrwxrwxrwx. 1 root root 7 Oct 8 17:13 lib -> usr/liblrwxrwxrwx. 1 root root 9 Oct 8 17:13 lib64 -> usr/lib64drwx------. 2 root root 16384 Jun 28 02:09 lost+founddrwxr-xr-x. 2 root root 4096 Jul 8 17:56 mediadrwxr-xr-x. 3 root root 4096 Jul 8 17:56 mntdrwxr-xr-x. 3 root root 4096 Oct 8 18:42 optdr-xr-xr-x 166 root root 0 Oct 10 07:02 procdr-xr-x---. 5 root root 4096 Oct 9 22:42 rootdrwxr-xr-x 39 root root 1180 Oct 10 07:02 runlrwxrwxrwx. 1 root root 8 Oct 8 17:13 sbin -> usr/sbindrwxr-xr-x. 2 root root 4096 Jul 8 17:56 srvdr-xr-xr-x 13 root root 0 Oct 10 07:02 sysdrwxrwxrwt 13 root root 280 Oct 10 07:03 tmpdrwxr-xr-x. 13 root root 4096 Oct 8 17:13 usrdrwxr-xr-x. 23 root root 4096 Oct 9 12:21 var
Also, moodle requires a data folder which I put in var with 777 permissions:drwxrwxrwx. 6 root root 4096 Oct 9 12:55 moodledata
httpd -SVirtualHost configuration:ServerRoot: "/etc/httpd"Main DocumentRoot: "/var/www/html"Main ErrorLog: "/etc/httpd/logs/error_log"Mutex proxy: using_defaultsMutex authn-socache: using_defaultsMutex default: dir="/run/httpd/" mechanism=default Mutex mpm-accept: using_defaultsMutex authdigest-opaque: using_defaultsMutex proxy-balancer-shm: using_defaultsMutex rewrite-map: using_defaultsMutex authdigest-client: using_defaultsPidFile: "/run/httpd/httpd.pid"Define: DUMP_VHOSTSDefine: DUMP_RUN_CFGUser: name="apache" id=48 not_usedGroup: name="apache" id=48 not_used
I have a Linksys router which has settings as such:Start End Protocol IP Address80 80 both 192.168.1.1008080 8080 both 192.168.1.126 <-- used with Tomcat which runs fine on another box.
This is in the httpd.config file:
## Listen: Allows you to bind Apache to specific IP addresses and/or# ports, instead of the default. See also the <VirtualHost># directive.## Change this to Listen on specific IP addresses as shown below to # prevent Apache from glomming onto all bound IP addresses.##Listen 12.34.56.78:80Listen 80
What am I doing wrong? Notice that info.php is in the documents directory and I can access it fine.-rw-r--r--. 1 apache root 20 Oct 9 11:32 info.phpI tried to create the page as my regular user, but was unable to save in that directory, so I ended up creating it as root. How am I going to be able to work on Moodle development if I can’t modify files in the www/html folder as a regular user? This is a development server with one user, myself. Should I make all the files match the permissions on info.php and do all my work as root?
Thanks for any help,
Timothy.
From: yehuda@ymkatz.net
Date: Wed, 9 Oct 2013 12:18:56 -0400
To: users@httpd.apache.org
Subject: Re: [users@httpd] Permission Still Denied with Moodle
"AH00035: access to /moodle/ denied (filesystem path '/var/www/html/moodle') because search permissions are missing on a component of the path"
This implies that the x permission is missing. You posted for every directory except /var . What are its permissions?I have no idea if selinux could get in the way or if setenforce 0 really gets rid of it.
Incorrect access detected, this server may be accessed only through "http://*my ip*/moodle" address, sorry. Please notify server administrator.
Does Moodle modify the default 403 error page? That is probably what this is.
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*Is apache set to listen to an IP besides 127.0.0.1?Run httpd -S for the list of active vhosts.
- Y
On Wed, Oct 9, 2013 at 4:19 AM, Timothy Curchod <ti...@hotmail.com> wrote:
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 apacheGroup 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.phpdrwxr-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.txtdrwxr-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 enroldrwxr-xr-x. 2 apache timothy 4096 Oct 9 14:06 error-rwxr-xr-x. 1 apache timothy 3923 Oct 4 11:43 file.phpdrwxr-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.phpdrwxr-xr-x. 8 apache timothy 4096 Oct 9 14:06 gradedrwxr-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 19Apache 2.4.6PHP 5.5.4moodle 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.
Re: [users@httpd] Permission Still Denied with Moodle
Posted by Yehuda Katz <ye...@ymkatz.net>.
>
> "AH00035: access to /moodle/ denied (filesystem path
> '/var/www/html/moodle') because search permissions are missing on a
> component of the path"
This implies that the x permission is missing. You posted for every
directory except /var . What are its permissions?
I have no idea if selinux could get in the way or if setenforce 0 really
gets rid of it.
Incorrect access detected, this server may be accessed only through "http://*my
> ip*/moodle" address, sorry. Please notify server administrator.
Does Moodle modify the default 403 error page? That is probably what this
is.
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*
Is apache set to listen to an IP besides 127.0.0.1?
Run httpd -S for the list of active vhosts.
- Y
On Wed, Oct 9, 2013 at 4:19 AM, Timothy Curchod <ti...@hotmail.com>wrote:
>
> 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.
>