Let's Encrypt Mess

Joined
Sep 12, 2016
Messages
28
Likes
4
Degree
0
Hello builders

I'm facing an issue right now
I'm using Vultr VPS Ubuntu 16.04 x64 along with ServerPilot free plan
Then I tried to install Let's Encrypt using this: https://github.com/lesaff/serverpilot-letsencrypt
I had no issues during installation process.
But when i was done, I couldn't access my site/wp-admin by any means
(I had a previous working site using serverpilot free+digital ocean -I think ubuntu 14.04 w/ Let's Encrypt on it and didn't face this issue)
Help would be much appreciated, I already contacted Vultr but they can't help me as it is self managed.
PS: My wordpress site runed fine before attempt, it is new with nothing on it and I didn't change the settings from http to https before installing-I really don't think thats the issue-
Thanks in advance!!
 
On the Settings > General > Wordpress Address & Site Address, did you change those to HTTPS?

If you didn't, that's likely the issue. I realize you can't login to do it. Here's a "hack" you can do from the server in your browser or with an FTP client:

Edit your wp-config.php file to add the following at the bottom:

Code:
// Custom Site Addresses
define('WP_HOME','https://yourdomain.com');
define('WP_SITEURL','https://yourdomain.com');

Of course use www if needed. That should get you back in. If your internal pages aren't loading, save them as default permalinks then switch back to your current scheme.

I'm going to set up Let's Encrypt soon too, not looking forward to the nightmare.
 
Personally not a ton of experience. I've done it a ton but couldn't do anything serious without help, such as what you've provided. The 90 day renewal sucks but if that chron job gets it done then rock on. I'll be looking into that more deeply. Thanks.
 
90 days is a blessing in disguise - it forces you to automate renewal.

I know I'm not the most organized person in the world - the number of near-misses and hurried renewals I've either had to do myself or witnessed other people also screwing up... being forced to prevent that from happening is no bad thing in my eyes :smile:
 
On the Settings > General > Wordpress Address & Site Address, did you change those to HTTPS?

Code:
// Custom Site Addresses
define('WP_HOME','https://yourdomain.com');
define('WP_SITEURL','https://yourdomain.com');

Thanks Ryu, yea I didn't change those to HTTPS previously.
Sadly the code didn't work
I don't know if reinstalling everything again from zero and changing to HTTPS previously will do the work
Or maybe I should ditch serverpilot I had this issue yesterday and I followed this two guides: (I'm copying the msg to vultr from yesterday)
"First thing i configured vultr to work using serverpilot
I faced a couple of issues trying to get to work LetsEncrypt certificate,
After hours i finally got it to work using this guide https://www.digitalocean.com/commun...cure-nginx-with-let-s-encrypt-on-ubuntu-16-04
(sorry for the competition link, i couldnt get anything else to work)
After that i couldn't install wordpress (nginx was appearing in my homepage and no signs of the wordpress installation after i copied the files to mysite/public -it would normally install before i installed letsencrypt(i had to delete the server previously like 3 times))
So I used this guide https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lamp-on-ubuntu-16-04
and i finally installed wordpress, along with mysql and others that both tutorial required me to do.
BUT when i went into serverpilot sftp I realized there was nothing. So I have no idea where my files are and how to get them and If i'm or not connected with ServerPilot- I guess i don't need it now?"

It was a mess (but it worked) so bc I didn't know if bigger issues would appear due to this mess I tried to install everything again as stated on my first post.

Any idea? Thanks again!
 
Back