简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM