Advertisement:

Author Topic: [SOLVED] OSClass 3.8.0 installation says folder not writable, but it is  (Read 802 times)

carobell

  • Newbie
  • *
  • Posts: 15
I am trying to install osclass 3.8.0 on a centos7 LEMP but the website keeps saying my folders are not writable.

Before permission changes :
Code: [Select]
drwxr-xr-x.  5 root root   205  3 oct 09:43 .
drwxr-xr-x.  5 root root    48  3 oct 09:43 ..
-rwxr-xr-x.  1 root root 23108 25 jui 03:35 CHANGELOG.txt
-rwxr-xr-x.  1 root root   482 25 jui 03:35 config-sample.php
-rwxr-xr-x.  1 root root  1150 25 jui 03:35 favicon.ico
-rwxr-xr-x.  1 root root  6657 25 jui 03:35 index.php
-rwxr-xr-x.  1 root root 52571 25 jui 03:35 licenses.txt
drwxr-xr-x.  8 root root  4096 25 jui 03:35 oc-admin
drwxr-xr-x.  7 root root   101 25 jui 03:35 oc-content
drwxr-xr-x. 13 root root  4096 25 jui 03:35 oc-includes
-rwxr-xr-x.  1 root root 12706 25 jui 03:35 oc-load.php
-rwxr-xr-x.  1 root root 26156 25 jui 03:35 package-lock.json
Quote
Requirements help:

uploads folder has to be writable, i.e.: chmod 0755 /var/www/osclass/oc-content/uploads/
downloads folder has to be writable, i.e.: chmod 0755 /var/www/osclass/oc-content/downloads/
languages folder has to be writable, i.e.: chmod 0755 /var/www/osclass/oc-content/languages/
Root folder has to be writable, i.e.: chmod 0755 /var/www/osclass/

After ownership change :
Code: [Select]
drwxr-xr-x.  5 nginx nginx   205  3 oct 09:43 .
drwxr-xr-x.  5 root  root     48  3 oct 09:43 ..
-rwxr-xr-x.  1 nginx nginx 23108 25 jui 03:35 CHANGELOG.txt
-rwxr-xr-x.  1 nginx nginx   482 25 jui 03:35 config-sample.php
-rwxr-xr-x.  1 nginx nginx  1150 25 jui 03:35 favicon.ico
-rwxr-xr-x.  1 nginx nginx  6657 25 jui 03:35 index.php
-rwxr-xr-x.  1 nginx nginx 52571 25 jui 03:35 licenses.txt
drwxr-xr-x.  8 nginx nginx  4096 25 jui 03:35 oc-admin
drwxr-xr-x.  7 nginx nginx   101 25 jui 03:35 oc-content
drwxr-xr-x. 13 nginx nginx  4096 25 jui 03:35 oc-includes
-rwxr-xr-x.  1 nginx nginx 12706 25 jui 03:35 oc-load.php
-rwxr-xr-x.  1 nginx nginx 26156 25 jui 03:35 package-lock.json
Quote
Requirements help:

downloads folder has to be writable, i.e.: chmod 0755 /var/www/osclass/oc-content/downloads/
languages folder has to be writable, i.e.: chmod 0755 /var/www/osclass/oc-content/languages/
Root folder has to be writable, i.e.: chmod 0755 /var/www/osclass/

Just to be sure :
Code: [Select]
[admin@t-class ~]$ ls -la /var/www/osclass/
total 144
drwxr-xr-x.  5 nginx nginx   205  3 oct 09:43 .
drwxr-xr-x.  5 root  root     48  3 oct 09:43 ..
-rwxr-xr-x.  1 nginx nginx 23108 25 jui 03:35 CHANGELOG.txt
-rwxr-xr-x.  1 nginx nginx   482 25 jui 03:35 config-sample.php
-rwxr-xr-x.  1 nginx nginx  1150 25 jui 03:35 favicon.ico
-rwxr-xr-x.  1 nginx nginx  6657 25 jui 03:35 index.php
-rwxr-xr-x.  1 nginx nginx 52571 25 jui 03:35 licenses.txt
drwxr-xr-x.  8 nginx nginx  4096 25 jui 03:35 oc-admin
drwxr-xr-x.  7 nginx nginx   101 25 jui 03:35 oc-content
drwxr-xr-x. 13 nginx nginx  4096 25 jui 03:35 oc-includes
-rwxr-xr-x.  1 nginx nginx 12706 25 jui 03:35 oc-load.php
-rwxr-xr-x.  1 nginx nginx 26156 25 jui 03:35 package-lock.json
[admin@t-class ~]$ ^C
[admin@t-class ~]$ ls -la /var/www/osclass/oc-content/
total 4
drwxr-xr-x. 7 nginx nginx 101 25 jui 03:35 .
drwxr-xr-x. 5 nginx nginx 205  3 oct 09:43 ..
drwxr-xr-x. 3 nginx nginx  38 25 jui 03:35 downloads
-rwxr-xr-x. 1 nginx nginx  29 25 jui 03:35 index.php
drwxr-xr-x. 3 nginx nginx  36 25 jui 03:35 languages
drwxr-xr-x. 4 nginx nginx  66 25 jui 03:35 plugins
drwxr-xr-x. 3 nginx nginx  37 25 jui 03:35 themes
drwxr-xr-x. 5 nginx nginx  66  3 oct 09:46 uploads
[admin@t-class ~]$ ls -la /var/www/osclass/oc-content/downloads/
total 4
drwxr-xr-x. 3 nginx nginx  38 25 jui 03:35 .
drwxr-xr-x. 7 nginx nginx 101 25 jui 03:35 ..
-rwxr-xr-x. 1 nginx nginx  29 25 jui 03:35 index.php
drwxr-xr-x. 2 nginx nginx  23 25 jui 03:35 oc-temp

/etc/php-fpm.d/www.conf :
Code: [Select]
listen = /var/run/php-fpm/php-fpm.sock
listen.owner = nginx
listen.group = nginx
user = nginx
group = nginx

/etc/nginx/conf.d/osclass.conf :
Code: [Select]
server {
listen  80;
server_name 10.172.16.12;

root  /var/www/osclass;
index  index.php index.html index.htm;

location / {
try_files $uri $uri/ =404;
}

error_page 404 /404.html;
error_page  500 502 503 504  /50x.html;
location = /50x.html {
root  /var/www/osclass;
}

location ~ /\. {
deny  all;
}

location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}

Becasue it seems to be everyone's answer I found for now, 777 does not work either.
Code: [Select]
drwxrwxrwx.  5 nginx nginx   205  3 oct 09:43 .
drwxr-xr-x.  5 root  root     48  3 oct 09:43 ..
-rwxrwxrwx.  1 nginx nginx 23108 25 jui 03:35 CHANGELOG.txt
-rwxrwxrwx.  1 nginx nginx   482 25 jui 03:35 config-sample.php
-rwxrwxrwx.  1 nginx nginx  1150 25 jui 03:35 favicon.ico
-rwxrwxrwx.  1 nginx nginx  6657 25 jui 03:35 index.php
-rwxrwxrwx.  1 nginx nginx 52571 25 jui 03:35 licenses.txt
drwxrwxrwx.  8 nginx nginx  4096 25 jui 03:35 oc-admin
drwxrwxrwx.  7 nginx nginx   101 25 jui 03:35 oc-content
drwxrwxrwx. 13 nginx nginx  4096 25 jui 03:35 oc-includes
-rwxrwxrwx.  1 nginx nginx 12706 25 jui 03:35 oc-load.php
-rwxrwxrwx.  1 nginx nginx 26156 25 jui 03:35 package-lock.json
Quote
Requirements help:

downloads folder has to be writable, i.e.: chmod 0755 /var/www/osclass/oc-content/downloads/
languages folder has to be writable, i.e.: chmod 0755 /var/www/osclass/oc-content/languages/
Root folder has to be writable, i.e.: chmod 0755 /var/www/osclass/
« Last Edit: October 05, 2018, 10:30:27 pm by carobell »

Aficionado

  • Guest
Re: OSClass 3.8.0 installation says folder not writable, but it is
« Reply #1 on: October 03, 2018, 07:11:27 pm »
Apparently it is not writable. Or some setup of the server is totally wrong.

Not an Osclass issue.

carobell

  • Newbie
  • *
  • Posts: 15
Re: OSClass 3.8.0 installation says folder not writable, but it is
« Reply #2 on: October 03, 2018, 08:07:43 pm »
If it is not a osclass issue I am looking hard on what it can be and have not yet found.

I switched to apache instead of nginx (complete OS reinstallation) and got the same problem.
I am now testing if I debian or ubuntu instead of centos does the same thing.

Under debian and using apache it worked like a charm!

I would still prefer to use centos and nginx if anyone can help.
« Last Edit: October 03, 2018, 09:28:13 pm by carobell »

carobell

  • Newbie
  • *
  • Posts: 15
Re: OSClass 3.8.0 installation says folder not writable, but it is
« Reply #3 on: October 05, 2018, 10:29:54 pm »
SOLVED!

After searching and looking I finaly found the solution to this problem. After disabling selinux (or making it permissive) everything is green and I can now install osclass.