Existing SSL certificate conflicts with a new one


I just started to learn Linux server and tried to make a web site using WP. So I installed a LAMP on VPS and WP on it using Digital Ocean tutorials. Got my Let’s Encrypt SSL certificate for

To avoid problems I decided to make a dev. one web for Made a copy of existing config:

$cp -p /etc/apache2/sites-available/ /etc/apach2/sites-available/

Made another wp dir. using the same command:

$cp -p /var/www/ /var/www/

And also I got a new SSL certificate for So before I did this, worked very well, but now, when I want to go to it says:


You don’t have permission to access this resource.

So the question is how I can get rid of the existing certificate to get a new one?

Tell me if you need more information


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

did you verify the new folder contained all files of the old folder? “You don’t have permission to access this resource” is not an ssl cert error, more like a filesystem or apache config error