CentOS installation problem with writable include

346 views
Skip to first unread message

opencreativity

unread,
Mar 15, 2017, 5:44:20 AM3/15/17
to ResourceSpace
Hi all,
I have a blocking situation.

Both via svn and zip, I install on a fresh CentOS 7 in
/var/www/html/
latest RS stable release 8.0.x

when start setup, the error is
Write access to config directory:
(FAIL: '/include' not writable. Only required during setup.)
Write access to storage directory:
(WARNING: /var/www/html/pages/../filestore not writable
Override location in 'Advanced Settings'.)

I change permission recursive in both directories
no changes

I change owner:group apache:apache
no changes

I change first permission, than owner on parent directory
/var/www/html/
than
/var/www

but, no changes, the error persist

I indagate the /var/www/html/pages/setup.php
finding some issue on path, but I don't find nothing

The same research on /var/www/html/include/config.default.php
I try to setup $base_url with the effective http address
nothing happen

Always the same error

Why?

My dir structure

[root@centos ~]# cd /var/www/html/

[root@centos html]# ls -la

totale 64

drwxrwxrwx. 18 apache apache  4096 15 mar 03.35 .

drwxrwxrwx.  4 apache apache    31 15 mar 03.31 ..

drwxr-xr-x.  2 apache apache    40 30 gen 06.24 api

drwxr-xr-x.  3 apache apache    93 30 gen 06.24 batch

drwxr-xr-x.  5 apache apache  4096 30 gen 06.24 css

drwxr-xr-x.  2 apache apache  4096 30 gen 06.24 dbstruct

drwxr-xr-x.  3 apache apache    68 30 gen 06.24 documentation

drwxrwxrwx.  2 apache apache     6 30 gen 06.24 filestore

drwxr-xr-x.  9 apache apache  4096 30 gen 06.24 gfx

drwxr-xr-x.  2 apache apache    92 30 gen 06.24 iccprofiles

drwxrwxrwx.  4 apache apache  4096 15 mar 04.47 include

-rwxr-xr-x.  1 apache apache  2490 27 set 11.02 index.php

drwxr-xr-x.  2 apache apache  4096 30 gen 06.24 languages

drwxr-xr-x. 26 apache apache  4096 30 gen 06.24 lib

-rwxr-xr-x.  1 apache apache    76 11 mar  2016 license.txt

-rwxr-xr-x.  1 apache apache 11547 23 nov 07.14 login.php

drwxr-xr-x.  9 apache apache  4096 15 mar 04.52 pages

drwxr-xr-x. 60 apache apache  4096 30 gen 06.24 plugins

-rwxr-xr-x.  1 apache apache   338 11 mar  2016 robots.txt

drwxr-xr-x.  3 apache apache    26 30 gen 06.24 templates

drwxr-xr-x.  3 apache apache    37 30 gen 06.24 tests

drwxr-xr-x.  3 apache apache    55 30 gen 06.24 upgrade



Any help is appreciated

Maurizio

J. Manuel Velasco Martínez

unread,
Mar 15, 2017, 7:48:11 AM3/15/17
to ResourceSpace
Hello,

I have a similar problem with a Server 2008 RS2 WinOS.

I have:
- defined the proper permissions(*) in IIS for the storage (another drive), and
- created a virtualdirectory in the website definition, and

(*) set write permission for IUSR and IIS_IUSR.

but the setup check seems is not getting the directoy path to check the permissions. To be honest this is a guess, I am not sure the reason.
Imágenes integradas 1


Any thoughts?

Thanks in advance.

--
ResourceSpace: Open Source Digital Asset Management
http://www.resourcespace.com
---
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to resourcespace+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Maarten Eijkhout

unread,
Mar 19, 2017, 11:51:36 AM3/19/17
to ResourceSpace
I was fighting similar issues on CentOS in the past. It seemed to be an issue with the SELinux policy for me that caused the error you indicate. I found some hints for my problem in http://stackoverflow.com/questions/29343809/php-is-writable-function-always-returns-false-for-a-writable-directory.

opencreativity

unread,
Mar 19, 2017, 5:35:31 PM3/19/17
to ResourceSpace
Thak you Maarten!

I read the thread and the instruction on SELinux and the solution for me was
chcon -R -t httpd_sys_rw_content_t /my/webapp/dir

Now it's all ok

Maurizio

Jason Chen

unread,
Mar 20, 2017, 6:40:53 PM3/20/17
to ResourceSpace
I also spent many time on this, I moved the documentroot to another directory, finally I just disablk selinux on the machine.

setenforce 0
turn off

/etc/selinux/config

change selinux to disabled. permanent turn oFF
Reply all
Reply to author
Forward
0 new messages