Not logged in. · Lost password · Register
Forum: General Help and Support Installation and Configuration RSS
Can't launch dokuwiki install
The datadir ('pages') at ./data/pages is not found, isn't accessible or writable. You should check your config and permission settings. Or maybe you w
Avatar
stevenbea #1
Member for a week · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: Can't launch dokuwiki install
Hi gurus,
I have tried this for several times, but it always fail as these error:
1. From web page:

DokuWiki Setup Error
The datadir ('pages') at ./data/pages is not found, isn't accessible or writable. You should check your config and permission settings. Or maybe you want to run the installer?

2. This is permission on Linux:

#ls -ld dowiki/
drwxrwxr-x. 8 apache apache 4096 Aug 24  2017 dowiki/

# ls -lr dowiki/
total 104
-rw-rw-r--.  1 apache apache    33 Aug 24  2017 VERSION
drwxrwxr-x.  8 apache apache  4096 Aug 24  2017 vendor
-rw-rw-r--.  1 apache apache   306 Aug 24  2017 README
drwxrwxr-x.  8 apache apache  4096 Aug 24  2017 lib
-rw-rw-r--.  1 apache apache 20700 Aug 24  2017 install.php
-rw-rw-r--.  1 apache apache  2097 Aug 24  2017 index.php
drwxrwxr-x.  6 apache apache  4096 Aug 24  2017 inc
-rw-rw-r--.  1 apache apache 19374 Aug 24  2017 feed.php
-rw-rw-r--.  1 apache apache  3692 Aug 24  2017 doku.php
drwxrwxr-x. 12 apache apache  4096 Aug 24  2017 data
-rw-rw-r--.  1 apache apache 18092 Aug 24  2017 COPYING
drwxrwxr-x.  2 apache apache  4096 Aug 24  2017 conf
drwxrwxr-x.  2 apache apache  4096 Aug 24  2017 bin
 
3. My httpd  is running as apache user:

# ps -ef|grep apache
apache   10539 10538  0 09:50 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache   10540 10538  0 09:50 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache   10541 10538  0 09:50 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache   10542 10538  0 09:50 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache   10543 10538  0 09:50 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache   10544 10538  0 09:50 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache   10547 10538  0 09:50 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache   10665 10538  0 09:58 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache   10702 10538  0 10:00 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND

PHP is also working fine as I can see from web page of index.php:

Apache Version    Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 PHP/5.4.16 mod_wsgi/3.4 Python/2.7.5
Apache API Version    20120211
Server Administrator    root@localhost
Hostname:Port    test.test.com:0
User/Group    apache(48)/48
Max Requests    Per Child: 0 - Keep Alive: on - Max Per Connection: 100
Timeouts    Connection: 60 - Keep-Alive: 5


4. This is httpd.conf:

<Directory />
    AllowOverride none
    Require all denied
</Directory>


DocumentRoot "/var/www/html"

<Directory "/var/www">
    AllowOverride None
    Require all granted
</Directory>

<Directory "/var/www/html">
    directoryIndex index.php index.html
    Options Indexes FollowSymLinks

    AllowOverride All
    Order allow,deny
    Allow from all

    Require all granted
</Directory>


<IfModule dir_module>
    DirectoryIndex index.html
</IfModule>
<IfModule alias_module>


    ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

</IfModule>

<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Require all granted
</Directory>

<IfModule mime_module>
    TypesConfig /etc/mime.types

    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz

    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps


    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
</IfModule>

AddDefaultCharset UTF-8

<IfModule mime_magic_module>
    MIMEMagicFile conf/magic
</IfModule>


EnableSendfile on

IncludeOptional conf.d/*.conf

5. There was this error reported before I remove data/.htaccess:

[Thu Jul 12 10:21:25.502853 2018] [access_compat:error] [pid 11074] [client 10.32.198.75:61414] AH01797: client denied by server configuration: /var/www/html/dowiki/data

And after I remove .ht.. file, I can even list /data/pages dir from web.

==========================================
And now it just stopped in here:

DokuWiki Setup Error
The datadir ('pages') at ./data/pages is not found, isn't accessible or writable. You should check your config and permission settings. Or maybe you want to run the installer?

Anyone can help on it I would appreciate!!
Avatar
turnermm (Moderator) #2
Member since Oct 2009 · 4161 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
Have you  made any changes to the .htaccess file in /data?
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
schplurtz (Moderator) #3
Member since Nov 2009 · 242 posts · Location: France, Finistère
Group memberships: Global Moderators, Members
Show profile · Link to this post
hi.
Apparently, permissions are good. So, there is probably something else...
#ls -ld dowiki/
drwxrwxr-x. 8 apache apache 4096 Aug 24  2017 dowiki/
----------^ this dot indicates selinux context

selinux could be preventing your web server from writing in those directories.

You might want to relabel your dowiki hierarchy (or (temporarily) disable selinux)

https://access.redhat.com/documentation/en-us/red_hat_ente…
https://www.centos.org/docs/5/html/5.2/Deployment_Guide/se…
https://www.dokuwiki.org/install:centos
https://www.centos.org/docs/5/html/5.2/Deployment_Guide/se…
http://schplurtz.free.fr/wiki/
Avatar
turnermm (Moderator) #4
Member since Oct 2009 · 4161 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
And after I remove .ht.. file, I can even list /data/pages dir from web


Would this would be independent of selinux, the presence of lack of an .htaccess file?  If the presence or not of an .htaccess file is affecting access to his files, then what is in his .htaccess?
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
stevenbea #5
Member for a week · 3 posts
Group memberships: Members
Show profile · Link to this post
In reply to post #3
Thank you! After I setenforce 0, it works fine!
Thank you all!
Avatar
stevenbea #6
Member for a week · 3 posts
Group memberships: Members
Show profile · Link to this post
In reply to post #4
I did not change .htaccess file, just tried to move it out of /data.
Anyway it has been resolved by disable selinux :)
Thank you!
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2018-07-18, 08:47:44 (UTC +02:00)