Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.6 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

About permissions in ocsreport folder

Hello

Im very newbie with this.

Just installed ocs inventory and im in the step of type the address in the browser but i received a message like this:

"Document root should be writable : /usr/share/ocsinventory-reports/ocsreports" 

I don't find anything about this and i don't know what to do.

The permissions i have are:

drwxr-xr-x.   3 root root    55 Nov 24 17:17 ocsinventory-reports

drwxr-xr-x. 14 root apache    4096 Nov 24 16:57 ocsreports

[root@**** ocsreports]# ll
total 480
-rwxr-xr-x.  1 root   apache   1156 Nov 24 16:57 ajax.php
drwxr-xr-x.  6 root   apache     67 Nov 24 16:57 backend
-rwxr-xr-x.  1 root   apache  21440 Nov 24 16:57 Changes
drwxr-xr-x.  4 apache apache    103 Nov 24 16:57 config
-rw-r--r--.  1 root   apache    364 Nov 24 16:57 Contributors
drwxr-xr-x.  2 root   apache    261 Nov 24 16:57 css
-rw-rw-r--.  1 root   apache    109 Nov 24 16:57 dbconfig.inc.php
drwxr-xr-x.  2 apache apache     20 Nov 24 16:57 download
-rw-r--r--.  1 root   apache 370070 Nov 24 16:57 favicon.ico
drwxr-xr-x.  3 root   apache     77 Nov 24 16:57 files
drwxr-xr-x.  2 root   apache   4096 Nov 24 16:57 image
-rwxr-xr-x.  1 root   apache   1273 Nov 24 16:57 index.php
-rwxr-xr-x.  1 root   apache   9010 Nov 24 16:57 install.php
-rwxr-xr-x.  1 root   apache  20892 Nov 24 16:57 ipdiscover-util.pl
drwxr-xr-x.  2 root   apache    279 Nov 24 16:57 js
drwxr-xr-x. 11 root   apache    174 Nov 24 16:57 libraries
-rw-r--r--.  1 root   apache  18046 Nov 24 16:57 LICENSE
drwxr-xr-x.  7 root   apache    107 Nov 24 16:57 plugins
-rw-r--r--.  1 root   apache     13 Nov 24 16:57 README.md
drwxr-xr-x.  8 root   apache   4096 Nov 24 16:57 require
drwxr-xr-x.  2 root   apache     34 Nov 24 16:57 tools
-rwxr-xr-x.  1 root   apache   3732 Nov 24 16:57 update.php
drwxr-xr-x.  2 apache apache     20 Nov 24 16:57 upload
-rw-r--r--.  1 root   apache   4019 Nov 24 16:57 var.php

/var/www

[root@**** ocsreports]# ll /var/www/
total 4
drwxr-xr-x. 2 root root   6 Jul 18 17:47 cgi-bin
drwxr-xr-x. 2 root root  22 Nov 22 12:31 html

Please help me!!

Edit:

I forget say im using fedora24 and apache 2.4 !!

in OCS Inventory NG server for Unix by (160 points)

2 Answers

0 votes

Hi,

install.php code :

        if (!file_exists(DOCUMENT_REAL_ROOT."/download")) {
                mkdir(DOCUMENT_REAL_ROOT."/download");
        }
        if (!file_exists(DOCUMENT_REAL_ROOT."/logs")) {
                mkdir(DOCUMENT_REAL_ROOT."/logs");
        }
        if (!file_exists(DOCUMENT_REAL_ROOT."/scripts")) {
                mkdir(DOCUMENT_REAL_ROOT."/scripts");
        }
}else{
        $msg_lbl['warning'][]="Document root should be writable : ".DOCUMENT_REAL_ROOT;
}

Checks the rights of /usr/share/ocsinventory-reports/ocsreports/download directory.

Regards,

by (6.2k points)
0 votes
Hello,

Thanks for answer

At last my solution was:

# chown -R apache:apache /usr/share/ocsinventory-reports/

# service httpd restart

but i dont know if i did well giving that permissions...
by (160 points)
 
Powered by Question2Answer
...