跳至主要内容
五折优惠 全部方案,限时优惠。起价 $2.48/mo
LiteCart

LiteCart

LiteCart 是一款面向在线商家的轻量级电商平台,基于 PHP、HTML 5 和 CSS 3 构建。无需庞大框架的额外开销即可运行店面。GitHub 星标 230+。

快速概览

236

GitHub star 数

10

页面浏览量

许可 CC-BY-ND-4.0 版本 Latest OS Ubuntu 24.04 LTS Min RAM 1 GB IP IPV4

访问

  • 商店网址: https://<SERVER_IP>
  • 管理后台网址: https://<SERVER_IP>/<ADMIN_FOLDER>/ (stored in /root/.cloudzy-creds)
  • 系统配置了自签名 SSL 证书。浏览器可能会显示证书警告,继续操作即可访问站点。
  • 登录凭据存储在: /root/.cloudzy-creds

重要文件与目录

  • 站点目录: /var/www/litecart
  • LiteCart 配置: /var/www/litecart/includes/config.inc.php
  • Apache 配置: /etc/apache2/sites-available/litecart.conf
  • SSL 证书: /etc/apache2/ssl/litecart.crt
  • SSL 私钥: /etc/apache2/ssl/litecart.key
  • 数据库凭据: /root/.cloudzy-creds

管理 Apache

查看状态:

systemctl status apache2

重启 Apache:

systemctl restart apache2

查看 Apache 日志:

journalctl -u apache2 -f

验证配置:

apache2ctl configtest

使用域名启用 HTTPS

1. 将域名解析到服务器 IP。

2. 编辑 /etc/apache2/sites-available/litecart.conf 并替换两处 ServerName <SERVER_IP> 指令为你的域名(例如 ServerName yourdomain.com;).

3. 安装 Certbot:

apt install -y certbot python3-certbot-apache

4. 获取 Let's Encrypt 证书:

certbot certonly --apache --non-interactive --agree-tos --email [email protected] -d yourdomain.com

5. 编辑 /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. 重新加载 Apache 以应用更改:

systemctl reload apache2

7. 打开浏览器,访问: https://yourdomain.com

更多自托管内容

相关应用。

Deploy LiteCart now. 起价 $2.48/月。