title: SSL certificate installation using letsencrypt in XAMPP server
body: <p>I'm using command:</p>
  <pre><code>sudo certbot --apache-ctl /opt/lampp/bin/apachectl
  </code></pre>
  <p>to install the certificate in XAMPP server. However the certificate is installing in the /etc/apache2 location.
  How can I repoint to the XAMPP Apache server? The logs is below:</p>
  <pre><code>ubuntu@ip-172-31-33-70:~$ sudo certbot --apache-ctl /opt/lampp/bin/apachectl
  Saving debug log to /var/log/letsencrypt/letsencrypt.log
  Plugins selected: Authenticator apache, Installer apache
  No names were found in your configuration files. Please enter in your domain
  name(s) (comma and/or space separated)  (Enter 'c' to cancel): ploshop.co.in
  Cert not yet due for renewal
  
  You have an existing certificate that has exactly the same domains or certificate name you requested and isn't close to expiry.
  (ref: /etc/letsencrypt/renewal/ploshop.co.in.conf)
  
  What would you like to do?
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  1: Attempt to reinstall this existing certificate
  2: Renew &amp; replace the cert (limit ~5 per 7 days)
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
  Renewing an existing certificate
  Created an SSL vhost at /etc/apache2/sites-available/000-default-le-ssl.conf
  Deploying Certificate to VirtualHost /etc/apache2/sites-available/000-default-le-ssl.conf
  Enabling available site: /etc/apache2/sites-available/000-default-le-ssl.conf
  
  Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  1: No redirect - Make no further changes to the webserver configuration.
  2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
  new sites, or if you're confident your site works on HTTPS. You can undo this
  change by editing your web server's configuration.
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
  Redirecting vhost in /etc/apache2/sites-enabled/000-default.conf to ssl vhost in /etc/apache2/sites-available/000-default-le-ssl.conf
  
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  Your existing certificate has been successfully renewed, and the new certificate
  has been installed.
  
  The new certificate covers the following domains: https://ploshop.co.in
  
  You should test your configuration at:
  https://www.ssllabs.com/ssltest/analyze.html?d=ploshop.co.in
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  
  
  IMPORTANT NOTES:
   - Congratulations! Your certificate and chain have been saved at:
     /etc/letsencrypt/live/ploshop.co.in/fullchain.pem
     Your key file has been saved at:
     /etc/letsencrypt/live/ploshop.co.in/privkey.pem
     Your cert will expire on 2021-11-17. To obtain a new or tweaked
     version of this certificate in the future, simply run certbot again
     with the &quot;certonly&quot; option. To non-interactively renew *all* of
     your certificates, run &quot;certbot renew&quot;
   - If you like Certbot, please consider supporting our work by:
  
     Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
     Donating to EFF:                    https://eff.org/donate-le
  
  ubuntu@ip-172-31-33-70:~$
  </code></pre>