I have a site running on an Elastic Beanstalk single instance server and want to add automated SSL certificate generation from LetsEncrypt using the AcmePHP library.

The library tries to store the certificates in ~/.acmephp, which the server responds to with an error

Failed to create "/home/webapp/.acmephp": mkdir(): Permission denied.

The acmephp library doesn't have an option to change the path built in, and rather than fork and recompile the script, I'd like to be able to store the files in the default directory.

Does anyone know how I can give the app permission to create this directory, outside of the web root, or how I can make the server create it automatically and have it be available to the app?

0 Answers