You are not logged in.
Pages: 1
Topic closed
Hello,
I've installed GLPI before, but I'm trying to install 0.78 again on Scientific LInux 6 64-bit. I am trying to run the install.php script, but the test always fails like this:
Checking write permissions for dump files
The directory could not be created.
Check permissions to the directory:'../files/_dumps'
Checking write permissions for document files
The directory could not be created.
Check permissions to the directory:'../files'
Checking write permissions for setting files
The directory could not be created.
Check permissions to the directory:'../config'
Checking write permissions for session files
The directory could not be created.
Check permissions to the directory:'../files/_sessions'
Check write permissions for automatic actions files
The directory could not be created.
Check permissions to the directory:'../files/_cron'
Checking write permissions for cache files
The directory could not be created.
Check permissions to the directory:'../files/_cache/'
Checking write permissions for graphic files
The directory could not be created.
Check permissions to the directory:'../files/_graphs'
Checking write permissions for log files
The file was created but can't be deleted.
Check permissions to the directory:'../files/_log'.
All the files in /usr/local/glpi are owned by apache:apache which is the user running the webserver. The permissions on all directories are 755, but even if I try to change them to 777, the installation fails with the same errors. I have removed all the .htaccess files from underneath /usr/local/glpi .
Any idea what might be going wrong?
Thank you! Merci!
Offline
chown -R apache:apache glpi/files
Offline
Is SELinux enable ?
Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/
Offline
chown -R apache:apache glpi/files
Thanks, but as I mentioned, I've already done this.
Offline
Is SELinux enable ?
Thank you, that was the issue. setenforce 0 fixed the problem.
We don't use SELinux here, but is there a way to configure SELinux so that GLPI can run?
Offline
P.S. Remi, your mirror list parameter in remi.repo http://rpms.famillecollet.com/enterpris … emi/mirror doesn't work with Scientific Linux, because the $releasever variable expands to "6.0" but your link is at "6"...
Offline
The RPM is designed to work with SELinux enable.
Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/
Offline
The RPM is designed to work with SELinux enable.
I did finally get it working with SELinux. I couldn't use your repo, but I installed the rpm from the epel repo.
I was able to create this module to allow the correct permissions, using audit2allow:
module glpi 1.0;
require {
type usr_t;
type mysqld_port_t;
type cron_var_lib_t;
type httpd_t;
type etc_t;
class tcp_socket name_connect;
class dir { search create write getattr rmdir remove_name add_name };
class file { read lock create write getattr unlink open append };
}
allow httpd_t cron_var_lib_t:dir { write search rmdir remove_name create getattr add_name };
allow httpd_t cron_var_lib_t:file { write getattr read lock create unlink open };
allow httpd_t etc_t:dir { write remove_name create add_name rmdir };
allow httpd_t etc_t:file { write create unlink };
allow httpd_t mysqld_port_t:tcp_socket name_connect;
allow httpd_t usr_t:dir { create rmdir };
allow httpd_t usr_t:file { write create unlink append };
It's probably more permissive than I need, but it is working now.
Last edited by slinx (2011-08-10 18:12:44)
Offline
The RPM is designed to work with SELinux enable.
how?? please help, same error plus:
SELinux boolean configuration for httpd_can_network_connect --> off (Some features may require this to be on) Some features may require this to be on
SELinux boolean configuration for httpd_can_network_connect_db --> off (Some features may require this to be on) Some features may require this to be on
SELinux boolean configuration for httpd_can_sendmail --> off (Some features may require this to be on) Some features may require this to be on
Offline
see the setsebool getsebool commands and man pages.
Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/
Offline
Pages: 1
Topic closed