CertSage Warning: mkdir(): Permission denied

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: u3a.org.za

I ran this command: http://u3a.org.za/certsage.php

It produced this output:
Warning : mkdir(): Permission denied certstage.php on line 33
Warning : file_put_contents(../CertSage/responses.txt): Failed to open stream: No such file or directory on line 54

Trouble...

could not write file: ../CertSage/responses.txt

My web server is (include version): some Windows webserver on a shared VM

The operating system my web server runs on is (include version): Windows

My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don't know): I login via Plesk, no root access

I'm using a control panel to manage my site (no, or provide the name and version of the control panel): PLESK

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): nope

CLearly I have checked and changed and given full control permission to the .php file

1 Like

Welcome to the Let's Encrypt Community! :slightly_smiling_face:

I'm the author of CertSage.

It appears that CertSage was unable to create its CertSage data directory in the parent directory of where you put certsage.php. There is a $dataDirectory line near the top of certsage.php where you can change the path of the data directory from ../CertSage to another path where certsage.php has permission to create its data directory. As a probably simpler alternative, you could instead manually create the CertSage data directory (somewhere inaccessible from the internet) and set that directory's permissions such that CertSage can read and write in that directory.

5 Likes

Many thanks for your response. If I create the directories manually, will that circumvent CertSage from trying to create them?

2 Likes

Yes. If certsage.php determines that the CertSage data directory already exists, certsage.php will not attempt to create or modify the permissions of the CertSage data directory. CertSage will simply use the existing directory with its existing permissions to create/modify files in that directory.

4 Likes