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

Bug: chmod 777 writable/cache fixed codeignitor install for me #4598

Closed
davidbuzz opened this issue Apr 22, 2021 · 2 comments
Closed

Bug: chmod 777 writable/cache fixed codeignitor install for me #4598

davidbuzz opened this issue Apr 22, 2021 · 2 comments

Comments

@davidbuzz
Copy link

Describe the bug
brand new to codeignitor 4, just installed it with composer:
composer create-project codeigniter4/appstarter composerstarter

visited composerstarter/public/ page in browser on localhost and got a 'whoops' page, this fixed the 'whoops' immediately:
chmod 777 /blahblah/composerstarter/writable/cache/

CodeIgniter 4 version
whatever composer installed, today.

Expected behavior, and steps to reproduce if appropriate
'whoops' was not expected. after chmod 777 of the writable/cache folder the 'whoops' went away. composer should have been able to get this right.

Context

  • OS: x86_64 GNU/Linux ubuntu 20.10 / groovy
  • Web server: standard apache2
  • PHP version : php --version = PHP 7.4.9
@davidbuzz davidbuzz added the bug Verified issues on the current code behavior or pull requests that will fix them label Apr 22, 2021
@paulbalandan paulbalandan removed the bug Verified issues on the current code behavior or pull requests that will fix them label Apr 22, 2021
@paulbalandan
Copy link
Member

This is not a framework issue. It has been documented that you must have the proper permissions to write on the writable folder. For composer, I know this doesn't change the permissions of directories. If you think otherwise, then please open a bug report in their repo.

@davidbuzz
Copy link
Author

Well... if composer can't be made to do this automatically, afaict, then whatever doco I read that told me the composer command to run didn't also tell me to 'chmod 777 ' the folder , so was unclear as far as I'm concerned. I'd suggest that at the very least doc needs to be clearer. I am a smart person, and I didn't raise this issue for fun., I really was surprised by it, and it really did stop me proceeding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants