gamelaster / opensupports-docker

Docker container for OpenSupports
14 stars 6 forks source link

/api/config.php not writable #3

Closed Askek23 closed 1 year ago

Askek23 commented 2 years ago

Hi,

I tried to install the software as you mentioned but I recive the error intalling it. It says that /api/config is not writable. I've tried changing the mode of the folder to 777 but, it didn't worked.

Attach you a pic.

Thank you!!

failure

klenzel commented 2 years ago

Try to open a console:

docker exec -it YOUR_CONTAINER bash

and then:

touch /config/config.php chown www-data: /config/config.php

gamelaster commented 2 years ago

I will try to fix it ASAP, also upgrade to latest version.

Askek23 commented 2 years ago

Finally its working!!

As @klenzel said, all I had to do is open a bash to the container and then change give write permissions over the file.

1) docker exec -it YOUR_CONTAINER bash 2) cd /var/www/html/api 3) chmod 777 config.php

imagen

Thanks and happy new year! :D

Alex.

mtlimon commented 2 years ago

No luck with docker exec -it YOUR_CONTAINER bash

and then:

touch /config/config.php chown www-data: /config/config.php

I get "touch: setting times of 'config.php': No such file or directory" exists?

ls -l shows lrwxrwxrwx 1 root root 18 Feb 17 23:35 config.php -> /config/config.php

I also tried chmod 777 config.php but continue to get chmod: cannot operate on dangling symlink 'config.php' error

Saplyng commented 1 year ago

I'm also getting this issue and am unable to chmod config.php getting the dangling symlink error. This was tried in a new ubuntu vm with docker freshly installed - if that helps at all.

gamelaster commented 1 year ago

I can't reproduce this, it works just fine for me. :frowning_face: If anyone still have the issue, please add comment here. Until that, let's close the issue.