Accès
- URL de la boutique :
https://<SERVER_IP> - URL d'administration :
https://<SERVER_IP>/<ADMIN_FOLDER>/(stored in/root/.cloudzy-creds) - Un certificat SSL auto-signé est configuré. Votre navigateur peut afficher un avertissement de certificat : poursuivez pour accéder au site.
- Les identifiants de connexion sont stockés dans :
/root/.cloudzy-creds
Fichiers et répertoires importants
- Répertoire du site :
/var/www/litecart - Configuration de LiteCart :
/var/www/litecart/includes/config.inc.php - Configuration d'Apache :
/etc/apache2/sites-available/litecart.conf - Certificat SSL :
/etc/apache2/ssl/litecart.crt - Clé privée SSL :
/etc/apache2/ssl/litecart.key - Identifiants de la base de données :
/root/.cloudzy-creds
Gérer Apache
Vérifier l'état :
systemctl status apache2
Redémarrer Apache :
systemctl restart apache2
Consulter les journaux d'Apache :
journalctl -u apache2 -f
Validez la configuration :
apache2ctl configtest
Activation de HTTPS avec un domaine
1. Faites pointer votre domaine vers l'IP du serveur.
2. Modifiez /etc/apache2/sites-available/litecart.conf et remplacez les deux ServerName <SERVER_IP> directives par votre domaine (par ex. ServerName yourdomain.com;).
3. Installez Certbot :
apt install -y certbot python3-certbot-apache
4. Obtenez un certificat Let's Encrypt :
certbot certonly --apache --non-interactive --agree-tos --email [email protected] -d yourdomain.com
5. Modifiez /etc/apache2/sites-available/litecart.conf and replace the SSL certificate paths.
Before:
SSLCertificateFile /etc/apache2/ssl/litecart.crt
SSLCertificateKeyFile /etc/apache2/ssl/litecart.key
After:
SSLCertificateFile /etc/letsencrypt/live/yourdomain.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/yourdomain.com/privkey.pem
6. Rechargez Apache pour appliquer les modifications :
systemctl reload apache2
7. Ouvrez votre navigateur et allez sur : https://yourdomain.com