# SSL Failed: Unable to create .well-known Permission Denied

**URL:** <https://forum.virtualmin.com/t/ssl-failed-unable-to-create-well-known-permission-denied/135340>\
**Category:** Help! (Home for newbies)\
**Created:** [September 30, 2025, 6:57pm UTC](https://forum.virtualmin.com/t/ssl-failed-unable-to-create-well-known-permission-denied/135340 "2025-09-30T18:57:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ASM2](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/a/b782af/32.png) [@ASM2](https://forum.virtualmin.com/u/ASM2)\
**Post date:** [September 30, 2025, 6:57pm UTC](https://forum.virtualmin.com/t/ssl-failed-unable-to-create-well-known-permission-denied/135340/1 "2025-09-30T18:57:02Z")

</div>

| SYSTEM INFORMATION | |
| --- | --- |
| OS type and version | AlmaLinux 9.6 |
| Usermin version | 2.400 |
| Virtualmin version | 7.40.1 |
| Theme version | 25.10 |
| Apache version | 2.4.62 |
| Package updates | All installed packages are up to date |

I have renewed SSL with Lets Encrypt and had no problems before  
all of a sudden this wordpress website on my server trying to get SSL with Lets Encrypt says as below

Renewal failed due to  
Web-based validation failed : mkdir failed : mkdir: cannot create directory ‘/home/domainname/public\_html/.well-known’: Permission denied

I have not changed any permissions etc since last year (I actually have never changed anything except kept all the server updated and rebooted when required)

I don’t really want to do anything from chat GPT etc.. as the last time I did I had more problems and so on this server I don’t want to try that

Can any of the staff help please?  
Thanks  
ASM

---

<div class="post-metadata">

**Author:** ![stefan1959](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@stefan1959](https://forum.virtualmin.com/u/stefan1959)\
**Post date:** [September 30, 2025, 9:54pm UTC](https://forum.virtualmin.com/t/ssl-failed-unable-to-create-well-known-permission-denied/135340/2 "2025-09-30T21:54:30Z")

</div>

Maybe recheck config and does all the permission look ok.

 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/3X/b/a/ba2e1bbac049707c247c31a0bda902660805ea81.png)

---

<div class="post-metadata">

**Author:** ![ASM2](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/a/b782af/32.png) [@ASM2](https://forum.virtualmin.com/u/ASM2)\
**Post date:** [October 3, 2025, 3:29pm UTC](https://forum.virtualmin.com/t/ssl-failed-unable-to-create-well-known-permission-denied/135340/3 "2025-10-03T15:29:28Z")

</div>

Hi Stefan  
Thanks for your help and reply

the public\_html owner is the same as all others domainname:domainname The Mode is 0555  
The properties show as below

**File:** /home/domianname/public\_html  
**Type:** directory  
**Size:** 316.17 MiB (4096 bytes) **Blocks:** 8 **IO Block:** 4096 directory  
**Device:** 803h/2051d **Inode:** 17830534 **Links:** 7  
**Attrs:** --------------e-------  
**Access:** (0555/dr-xr-xr-x) **Uid:** (1020/domianname) **Gid:** (1018/domianname)

I get the feeling that permissions need to be changed? but I don’t know how

I went to “Validate Virtual Servers” and Clicked on the “Fix Permissions” tab and chose the domainname and asked it to fixthe selected server  
Then tried the lets encrypt to get SSL again but it still says  
Requesting a certificate for [domainname.com](http://domainname.com), [www.domainname.com](http://www.domainname.com) from Let’s Encrypt ..  
.. request failed : Web-based validation failed : mkdir failed : mkdir: cannot create directory ‘/home/domainname/public\_html/.well-known’: Permission denied

Module for File manager looks ok to me please see below and tell me

 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/3X/5/b/5bbf3188952dd20d97aa8ee56ed4c18f57ec7ec3.png)

I thought I’d change the password and see if that helps - made things a bit worse now after changing the password it says as below

Modifying administration user ..  
.. done  
Updating log file path in Logrotate configuration ..  
.. done  
Changing MariaDB password ..  
.. done  
Updating MariaDB password for installed web apps ..

```
WordPress ..
.. MariaDB database failed : Failed to open /home/domainname/public_html/wp-config.php.webmintmp.312640.5 : Permission denied
Saving server details ..
.. done

```

and the website says Database Error and: Error establishing a database connection

OK I had a backup and so have restored it all back to what it was 15 days ago - but still have the SSL problem

Please help  
Thanks again  
ASM

---

<div class="post-metadata">

**Author:** ![stefan1959](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@stefan1959](https://forum.virtualmin.com/u/stefan1959)\
**Post date:** [October 3, 2025, 8:48pm UTC](https://forum.virtualmin.com/t/ssl-failed-unable-to-create-well-known-permission-denied/135340/4 "2025-10-03T20:48:46Z")

</div>

> [@ASM2](#):
>
> the public\_html owner is the same as all others domainname:domainname The Mode is 0555  
> The properties show as below

Yeah that would cause the issue, 555 would block writing and only allow reading and executing.

By default that not normal. Check the template.

 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/3X/2/5/25d76eec57fdea2e42dd1688ae248103fabee435.png)

---

<div class="post-metadata">

**Author:** ![ASM2](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/a/b782af/32.png) [@ASM2](https://forum.virtualmin.com/u/ASM2)\
**Post date:** [October 3, 2025, 11:44pm UTC](https://forum.virtualmin.com/t/ssl-failed-unable-to-create-well-known-permission-denied/135340/5 "2025-10-03T23:44:38Z")

</div>

Hi Stefan

This is Website for Domain

 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/3X/6/e/6e80f057ac8d0813de7be5cb2f5f84eb6ed21684.png)

* * *

and this is the SSL WEBSITE FOR DOMAIN

 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/3X/8/7/871b7f04971d97ffeae3918ddc7c4d87ebdda876.png)

---

<div class="post-metadata">

**Author:** ![stefan1959](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@stefan1959](https://forum.virtualmin.com/u/stefan1959)\
**Post date:** [October 4, 2025, 4:07am UTC](https://forum.virtualmin.com/t/ssl-failed-unable-to-create-well-known-permission-denied/135340/6 "2025-10-04T04:07:53Z")

</div>

You can manually edit permission in file manage.

 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/3X/e/8/e86d452c6ef77aa8d5fc22b002b4974be74d89f8.png)

 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/3X/4/0/40fe83dafc381a4b465504d4b425dd50b4e8f4e3.png)

---

<div class="post-metadata">

**Author:** ![ASM2](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/a/b782af/32.png) [@ASM2](https://forum.virtualmin.com/u/ASM2)\
**Post date:** [October 6, 2025, 6:25pm UTC](https://forum.virtualmin.com/t/ssl-failed-unable-to-create-well-known-permission-denied/135340/7 "2025-10-06T18:25:17Z")

</div>

Superb - Thank you so much Stefan  
You have been a great help  
✅

Regards  
ASM

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [December 5, 2025, 6:26pm UTC](https://forum.virtualmin.com/t/ssl-failed-unable-to-create-well-known-permission-denied/135340/8 "2025-12-05T18:26:06Z")

</div>

Closed on December 5, 2025, 6:26pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
