« FeministWiki:Server setup » : différence entre les versions

Ligne 91 : Ligne 91 :
=== Initialize LetsEncrypt ===
=== Initialize LetsEncrypt ===


The first run of Certbot has to be interactive, so we will do that now.  Since the DNS entries still point to the old server, we can't get a cert for the real domains.  For now, make '''feministwiki.dev''' point to the IP address of the new server, then proceed with the instructions below.
The first run of Certbot has to be interactive, so we will do that now.  Since the DNS entries still point to the old server, we can't get a cert for the real domains.  For now, make '''feministwiki.dev''' point to the IP address of the new server, then proceed with the commands below.


Stop Apache (<code>systemctl stop apache2</code>), run <code>certbot certonly --cert-name feministwiki.org</code> (yes, the name should be <code>.org</code> even though the domain will be just <code>.dev</code> for now), then follow the on-screen instructions.  Use the "standalone" authentication method when asked and enter feministwiki.dev as the sole domain.
systemctl stop apache2
certbot certonly --cert-name feministwiki.org # Yes, it should be .org and not .dev
 
Then follow the on-screen instructions of certbot.  Use the "standalone" authentication method when asked, and enter feministwiki.dev as the sole domain.


=== Stop services on old server ===
=== Stop services on old server ===