Failing to request Let's encrypt certificate, permission denied

Virtualmin cannot create new or renew certificate. I tried deleting .well-known directory, but nothing changed. Also I tried to create .well-known and .well-known/acme-challenge manually with owner rights of root or actual user, but none of that worked.

Requesting a certificate for y.x.com from Let's Encrypt ..
.. request failed : mkdir failed : mkdir: cannot create directory ‘/home/x/public_html/public/.well-known/acme-challenge’: Permission denied
Status: 
Closed (fixed)

Comments

Howdy -- what is the output of these commands:

ls -ld /home/x
ls -ld /home/x/public_html
ls -ld /home/x/public_html/public

Changed 'x' to 'website'... Output for commands down below:

drwxr-x--- 14 website website 4096 Sau  2 09:09 /home/website/

drwxr-x--- 12 website website 4096 Sau  2 09:15 /home/website/public_html/

drwxr-xr-x 7 website website 4096 Bal  6  2016 /home/website/public_html/public

I just realised that webmin version wasn't newest and had to do manual refresh on packages available for an update to show up. After update, deleted .well-known folder and requested new certificate - it worked without problems.

THANKS andreychek. ;)

That's fantastic, I'm glad that's working for you now.. thanks for letting us know what fixed it!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.