Skip to content
Advertisement

Warning mkdir() Permission Denied on Google APP Engine PHP Application

I am running CodeIgniter PHP Framework on Google APP Engine using flex environment. Everything is going well except for one small issue, I unable to create folder and upload files because of mkdir file permission issue. How can we give permissions when uploading files and create folders?

Your help can save me a lot of time.

Advertisement

Answer

You can configure your runtime_config by adding the skip_lockdown_document_root in app.yaml.

By default, the runtime will set a strict read-only permission on all the files and directories under the document_root directory. When set to true, the runtime will skip changing the permission.

runtime_config:
  document_root: .
  skip_lockdown_document_root: true

I still recommended to use Cloud Storage for storing or serving file on a serverless platform.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement