Access
- Store URL:
https://<SERVER_IP> - Admin URL:
https://<SERVER_IP>/<ADMIN_FOLDER>/(stored in/root/.cloudzy-creds) - A self-signed SSL certificate is configured. Your browser may show a certificate warning; proceed to access the site.
- Login credentials are stored in:
/root/.cloudzy-creds
Important Files & Directories
- Site Directory:
/var/www/litecart - LiteCart Configuration:
/var/www/litecart/includes/config.inc.php - Apache Configuration:
/etc/apache2/sites-available/litecart.conf - SSL Certificate:
/etc/apache2/ssl/litecart.crt - SSL Private Key:
/etc/apache2/ssl/litecart.key - Database Credentials:
/root/.cloudzy-creds
Managing Apache
Check status:
systemctl status apache2
Restart Apache:
systemctl restart apache2
View Apache logs:
journalctl -u apache2 -f
Validate the configuration:
apache2ctl configtest
Enabling HTTPS with a Domain
1. Point your domain to the server IP.
2. Edit /etc/apache2/sites-available/litecart.conf and replace both ServerName <SERVER_IP> directives with your domain (e.g. ServerName yourdomain.com;).
3. Install Certbot:
apt install -y certbot python3-certbot-apache
4. Obtain a Let's Encrypt certificate:
certbot certonly --apache --non-interactive --agree-tos --email [email protected] -d yourdomain.com
5. Edit /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. Reload Apache to apply the changes:
systemctl reload apache2
7. Open your browser and visit: https://yourdomain.com