You are not logged in.

#1 2014-04-25 01:03:01

DrMag
Member
Registered: 2013-03-27
Posts: 24

Apache Not Displaying Everything in the Directory

I recently updated my system, which included an upgrade to apache that required a new httpd.conf. I went through carefully to be certain that the modifications I had made were also made to the .pacnew file, then replaced the old with the new. Everything worked as planned, except one thing: I can't see one of the directories that is in /srv/http.

I have a separate partition mounted to /srv/http/dokuwiki for a wiki-journal I keep. Prior to the update, everything worked fine. The directory is owned by http:http. When I point my browser to the server, I see the directory listing of /srv/http, and it shows everything except the dokuwiki directory. If I manually point the browser to /dokuwiki/dokuwiki.php, it says I either don't have permission, or the directory is not readable by the server. Thinking perhaps it was a directory permissions issue in http.conf, I added the following lines:

<Directory "/srv/http/dokuwiki">
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
</Directory>

Still no love. If I copy everything to a new directory, I can access the wiki in the new directory; but I'd really like to have everything on the separate partition. Even dismounting the partition, the directory itself doesn't appear. I've searched both the forums and the internet for something similar with no luck; I suspect I'm missing something obvious. Any ideas?

Offline

#2 2014-04-25 01:12:37

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Apache Not Displaying Everything in the Directory

I stink at this stuff but I'll take a stab at it...

Does the "/srv/http/dokuwiki" directory have a ".htaccess" file? If it does, then I think you need to set "AllowOverride" to "All".

...did I get it?

Offline

#3 2014-04-25 01:20:12

DrMag
Member
Registered: 2013-03-27
Posts: 24

Re: Apache Not Displaying Everything in the Directory

It turns out it did have one.. I don't think I had that enable before though. In any case, I gave it a try and no change. I suspect you're correct though, and will keep that change for the time being.

Offline

#4 2014-04-25 17:59:28

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Apache Not Displaying Everything in the Directory

Silly me, I forgot. The first thing you should check is the Apache log files. tongue

What do they say the problem is?

Offline

#5 2014-04-26 16:39:06

DrMag
Member
Registered: 2013-03-27
Posts: 24

Re: Apache Not Displaying Everything in the Directory

From /var/log/httpd/error_log:

[Sat Apr 26 12:20:33.140937 2014] [authz_core:error] [pid 4986] [client 69.140.179.243:61982] AH01630: client denied by server configuration: /usr/share/webapps/dokuwiki/index.html
[Sat Apr 26 12:20:33.141042 2014] [authz_core:error] [pid 4986] [client 69.140.179.243:61982] AH01630: client denied by server configuration: /usr/share/webapps/dokuwiki/index.php
[Sat Apr 26 12:20:33.141126 2014] [authz_core:error] [pid 4986] [client 69.140.179.243:61982] AH01630: client denied by server configuration: /usr/share/webapps/dokuwiki/index.html
[Sat Apr 26 12:20:38.675397 2014] [authz_core:error] [pid 4980] [client 69.140.179.243:61985] AH01630: client denied by server configuration: /usr/share/webapps/dokuwiki

Selection from /etc/httpd/conf/httpd.conf:

...

DocumentRoot "/srv/http"
<Directory "/srv/http">
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
</Directory>

...

Include conf/extra/dokuwiki.conf

Which, I believe, is essentially the default configuration with the added portions for dokuwiki according to what is found in the Arch wiki..

/etc/httpd/conf/extra/dokuwiki.conf:

Alias /dokuwiki /usr/share/webapps/dokuwiki
<Directory /usr/share/webapps/dokuwiki/>
    Options +FollowSymLinks
    AllowOverride All
    order allow,deny
    allow from all
    php_admin_value open_basedir "/srv/http/:/home/:/tmp/:/usr/share/webapps/dokuwiki/:/etc/webapps/dokuwiki/:/var/lib/dokuwiki/"
</Directory>

Again, straight from the wiki. This all worked before the update of Apache/dokuwiki/etc.

On a hunch, I commented out the Alias. That seems to fix the problem. But I've changed nothing in /usr/share/webapps/dokuwiki from how it installs, and the identical .htaccess is present in the local copy I made in /srv/http/dokuwiki. So either the Arch wiki gives a bad example for conf/extra/dokuwiki.conf for the most recent versions, or dokuwiki installs with a problem in its default configuration. If that's the case, all I can think is something in .htaccess, but I suspect the fault lies in the Arch wiki configuration.

Anyone with some knowledge about this have eyes on this thread?

I think it could be valuable to put a section into the Arch wiki about creating local copies of dokuwiki rather than setting it up to run off of the default installation. (Which essentially entailed copying /usr/share/webapps/dokuwiki to wherever it is being used. This facilitates having multiple wikis on the same server. I'm just not certain about all the details, so I'm hoping this catches the eye of someone who is familiar with setting these things up.)

Offline

Board footer

Powered by FluxBB