Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conf.php permissions are blocking installation #22077

Closed
MedLabs opened this issue Sep 4, 2022 · 5 comments
Closed

conf.php permissions are blocking installation #22077

MedLabs opened this issue Sep 4, 2022 · 5 comments
Labels
Works for me / Can't reproduce It seems not possible to reproduce the bug.

Comments

@MedLabs
Copy link

MedLabs commented Sep 4, 2022

Bug

Setup is not allowed by conf.php permissions
I get this message everytime I try to install Dolibarr.
I tried :
chmod -R 755 and even 777 for the whole dolibarr folder
chown apache.apache and nginx.nginx and my own user:group
and the check step is frozen in the same error message
I cleaned the cache and retried again, but Dolibarr install script can't write conf.php file
Tried with 15.0 15.0.3 and 16.0 same thing

Environment Version

15.0.3, 16.0

Environment OS

fedora linux

Environment Web server

ngin

Environment PHP

8.1.9

Environment Database

mysql

Environment URL(s)

No response

Expected and actual behavior

Expected, I get a start install button instead of the permission error message

Steps to reproduce the behavior

git clone https://github.com/dolibarr/dolibarr -b 15.0
touch dolibarr/htdocs/conf/conf.php
sudo chmod -R 755 dolibarr
sudo chown -R apache.apache dolibarr
BONUS: sudo chmod 777 dolibarr/htdocs/conf/conf.php

Attached files

No response

@MedLabs MedLabs added the Bug This is a bug (something does not work as expected) label Sep 4, 2022
@ksar-ksar
Copy link
Contributor

Hello,

I have just tried, and I can't reproduce the issue.
Most probably something in your environment, prevent Dolibarr to access to this file.

@ksar-ksar ksar-ksar added Works for me / Can't reproduce It seems not possible to reproduce the bug. and removed Bug This is a bug (something does not work as expected) labels Sep 5, 2022
@dolibit-ut
Copy link
Contributor

Hello,
are you sure with your 'chown -R apache.apache' ???
Because you wrote in your Environment you are using nginx?

Usually one you should take 'www-data.www-data' by chown.

@github-actions
Copy link

github-actions bot commented Sep 8, 2023

This issue is stale because it has been open 1 year with no activity. If this is a bug, please comment to confirm it is still present on latest stable version. if this is a feature request, please comment to notify the request is still relevant and not yet covered by latest stable version. This issue may be closed automatically by stale bot in 10 days (you should still be able to re-open it if required).

@github-actions github-actions bot added the Issue Stale (automatic label) This issue is stale because it has been open 1 year with no activity. Remove this label to keep open label Sep 8, 2023
@h3ssan
Copy link

h3ssan commented Oct 4, 2024

Same issue in my Fedora 40,

and yes: even 777 for the whole dolibarr folder still says Setup not allowed by conf.php permissions

@github-actions github-actions bot removed the Issue Stale (automatic label) This issue is stale because it has been open 1 year with no activity. Remove this label to keep open label Oct 4, 2024
@h3ssan
Copy link

h3ssan commented Oct 4, 2024

Just find out the solution.

The problem was occurred because of SELinux was enabled. Disable your SElinux and try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Works for me / Can't reproduce It seems not possible to reproduce the bug.
Projects
None yet
Development

No branches or pull requests

4 participants