# Setup SSL for your www domain

**URL:** <https://forum.ghost.org/t/setup-ssl-for-your-www-domain/20337>\
**Category:** Developer help\
**Created:** [February 22, 2021, 9:52pm UTC](https://forum.ghost.org/t/setup-ssl-for-your-www-domain/20337 "2021-02-22T21:52:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Faizal\_mulla](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/faizal_mulla/32/11739_2.png) [@Faizal\_mulla](https://forum.ghost.org/u/Faizal_mulla)\
**Post date:** [February 22, 2021, 9:52pm UTC](https://forum.ghost.org/t/setup-ssl-for-your-www-domain/20337/1 "2021-02-22T21:52:17Z")

</div>

Hello There,

I am trying to setup an SSL certificate for my domain.

This is my domain name: [thevaluehive.com](http://thevaluehive.com)

After I entered ghost setup nginx ssl into the command line terminal, it gives me the following message:

1. ProcessError

_Message: EACCES: permission denied, open ‘/tmp/thevaluehive-com/www.thevaluehive.com.conf’_

_Exit code: EACCES_

I have been told that what this means is that whenever you get an eacces error you have to give your user permissions to that folder. I have tried this using the following command:

sudo chown user:user pathtofolder, but then get a message saying cannot access that folder.

I’m really desperate for help in trying to resolve this error.

Here is my terminal environment:  
OS: Ubuntu, v18.04.4 LTS  
Node Version: v12.18.0  
Ghost Version: 3.41.7  
Ghost-CLI Version: 1.15.3  
Environment: production  
Command: ‘ghost setup nginx ssl’

---

<div class="post-metadata">

**Author:** ![mattcam](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mattcam/32/5890_2.png) [@mattcam](https://forum.ghost.org/u/mattcam)\
**Post date:** [February 23, 2021, 4:58am UTC](https://forum.ghost.org/t/setup-ssl-for-your-www-domain/20337/2 "2021-02-23T04:58:27Z")

</div>

Not sure how helpful this is, but if you are considering doing it yourself then have put what I have found are some helpful links here including how I manage SSL certificates [https://www.influencer.tips/how-to-organise-and-get-a-bitnami-ghost-instance-started-on-amazon-ec2/](https://www.influencer.tips/how-to-organise-and-get-a-bitnami-ghost-instance-started-on-amazon-ec2/)

---

<div class="post-metadata">

**Author:** ![Faizal\_mulla](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/faizal_mulla/32/11739_2.png) [@Faizal\_mulla](https://forum.ghost.org/u/Faizal_mulla)\
**Post date:** [February 23, 2021, 1:33pm UTC](https://forum.ghost.org/t/setup-ssl-for-your-www-domain/20337/3 "2021-02-23T13:33:21Z")

</div>

Hi Matt and thanks for the reply and help,

I don’t bitnami applies in my case, but i feel i have messed up my permissions when configuring ghost.

Here goes my afternoon…

---

<div class="post-metadata">

**Author:** ![adventgineering](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/adventgineering/32/18252_2.png) [@adventgineering](https://forum.ghost.org/u/adventgineering)\
**Post date:** [May 12, 2021, 3:00pm UTC](https://forum.ghost.org/t/setup-ssl-for-your-www-domain/20337/4 "2021-05-12T15:00:39Z")

</div>

> [@Faizal\_mulla](#):
>
> I have been told that what this means is that whenever you get an eacces error you have to give your user permissions to that folder. I have tried this using the following command:
> 
> sudo chown user:user pathtofolder, but then get a message saying cannot access that folder.

Did you try `sudo chown user:user /tmp/thevaluehive-com/` , replacing `user:user` with what you named your user, eg `user2:user2` or `admin:admin`? this worked to resolve the nginx issue for me. I tried the path to the `.conf` file first, but an `ls` when I was in my equivalent of the `tmp/thevaluehive-com` folder showed that the file did not exist. Maybe that’s why it couldn’t be accessed?
