Nothing works to give write permissions to a folder (LAMP Lightsail)

0

The error log that kicked off all this:

PHP message: PHP Fatal error:  Uncaught UnexpectedValueException: The stream or file "/opt/bitnami/apache/htdocs/storage/logs/lumen-2023-06-30.log" could not be opened in append mode: Failed to open stream: Permission denied\nThe exception occurred while attempting to log: The stream or file "/opt/bitnami/apache/htdocs/storage/logs/lumen-2023-06-30.log" could not be opened in append mode

Here is what I tried:

  1. sudo chmod +777 /opt/bitnami/apache/htdocs
  2. sudo chmod +rwx /opt/bitnami/apache/htdocs

It did not solve the problem though. What should I try?

Artem
질문됨 일 년 전290회 조회
1개 답변
0

Try the following command.
I think the error is probably that the file "/opt/bitnami/apache/htdocs/storage/logs/" is not authorized and cannot be opened or written to.

sudo chmod -R 775 /opt/bitnami/apache/htdocs/
sudo chown -R bitnami:root /opt/bitnami/apache/htdocs/
profile picture
전문가
답변함 일 년 전
profile picture
전문가
검토됨 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠