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.12.3 available

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

Install fails due to dbconfig.inc.php permissions

I have installed ocsinventory-ng and cannot get past the configuration.

There are no errors (checked logs).

I goto localhost/ocsreports, fill in db user, pasword, ensure db is correct and proceed to next step

I get ERROR: can't write in directory (on dbconfig.inc.php), please set the required rights in order to install ocsinventory (you should remove the write mode after the installation is successfull)

I googled and found a full file / folder permissions listing at:

http://wiki.ocsinventory-ng.org/index.php/Documentation:Errors#upload_max_filesize_and_post_max_size.

I manually verified permissions of each file and folder listed.

I restarted mysqld and httpd, went back to localhost/ocsreports, filled sql user and password, and it errors again staing file permissions are incorrect.

How do I move past t his?

I am using Centos 6.5 x64 , php5.6 and apache2

 

 

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

2 Answers

+2 votes
You just discover selinux et why there is RPM package :)

Your problem is normal. I think you php 5.6 is from Remi Collet repository, then use this repository to install OCS Inventory NG with yum.

Another thing : PHP 5.6 was release one month ago. We never try if ocsreports work on it. Then use the standard version of PHP that give OCS and not other version.
by (22k points)
kapouik-

Thanks so much for the assistance.  After a bit more reading, and ensuring the remi repository would not mess up my Centos server, I was able to install and access OCSinventory fine.
+1 vote

Hi,

I have had the same problem. For solve my problem, I disabled SElinux with the commands :

# vim etc/selinux/config
 
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.

SELINUX= disabled

# shutdown -r now
 
I am using Centos 7, php5.4 and httpd
 
by (1.1k points)
 
Powered by Question2Answer
...