31,014
edits
| Line 115: | Line 115: | ||
$ mv dolibarr-x.y.z dolibarr | $ mv dolibarr-x.y.z dolibarr | ||
</source> | </source> | ||
* | * Change permission and owner of the 'dolibarr' directory to that of the group under which the web server runs (assumed to be 'www-data' for debian, 'apache' for redhat, mandriva, fedora) | ||
<source lang="bash"> | <source lang="bash"> | ||
$ chmod -R 755 /var/www/dolibarr | |||
$ chown -R www-data.www-data /var/www/dolibarr | |||
or | |||
$ chmod -R 755 /var/www/html/dolibarr | |||
$ chown -R apache.apache /var/www/html/dolibarr | |||
</source> | </source> | ||
* For Fedora, since SELinux is usually enabled, it is also advisable to run the following commands to make the 'dolibarr' directory compliant with the SELinux requirement (else you are likely to get quite a few alerts) : | * For Fedora, since SELinux is usually enabled, it is also advisable to run the following commands to make the 'dolibarr' directory compliant with the SELinux requirement (else you are likely to get quite a few alerts) : | ||
<source lang="bash"> | <source lang="bash"> | ||
$ chown semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/dolibarr(/.*)?' | |||
$ restorecon -R -v '/var/www/html/dolibarr' | |||
</source> | </source> | ||
* As a root user, create, into directory dolibarr/htdocs/conf, an empty configuration file called conf.php and set, as owner, the web server user (example www-data on Debian, nobody on old RedHat, apache on Mandriva, recent RedHat or other distributions ...). This is required because the web server will have to write into this file during install process. | * As a root user, create, into directory dolibarr/htdocs/conf, an empty configuration file called conf.php and set, as owner, the web server user (example www-data on Debian, nobody on old RedHat, apache on Mandriva, recent RedHat or other distributions ...). This is required because the web server will have to write into this file during install process. | ||
<source lang="bash"> | <source lang="bash"> | ||