Note: Recently, a big shot wrote a script for low memory VPS
, which can install many blogging programs, Rinetdbbr
, etc., tested successfully on a minimum of 64M
memory. Here I share it; if you have a low memory VPS
or want to try it out, you can give it a go.
Script Features#
- One-click installation of
Caddy
,PHP7
, andSqlite3
environment on low memoryVPS
(supports minimum memory of64M
). - One-click domain binding automatically generates
SSL
certificates to enablehttps
(automatic renewal ofssl
). - Supports
IPv6
(AAAA
records); if your local network does not supportIPv6
, it can be converted toIP4
viacloudflare CDN
. - One-click installation of
Typecho
,Wordpress
,Zblog
,Kodexplorer
,Laverna
, and one-click full site backup. - One-click installation of
V2ra*
,Rinetdbbr
.
Update#
【19.5.20】
Due to the script not setting up pseudo-static, there may be issues in use; here are additional Caddy pseudo-static rules.
Installation#
Github Address: https://github.com/dylanbai8/Onekey_Caddy_PHP7_Sqlite3
Supported Systems: Centos 7+
, Debian 8+
. If your memory is too small, it is recommended to use a mini
system. Also, please resolve the domain name in advance; otherwise, issuing SSL
will fail.
Use the command:
wget -N --no-check-certificate git.io/c.sh && chmod +x c.sh && bash c.sh
This will quickly install the Caddy
, PHP7
, and Sqlite3
environment for you.
Program Installation#
After the environment is set up, use the following commands to install the required programs.
# One-click install Typecho blog
bash c.sh -t
# One-click install WordPress blog
bash c.sh -w
# One-click install Zblog blog
bash c.sh -z
# One-click install Kodexplorer
bash c.sh -k
# One-click install Laverna
bash c.sh -l
# One-click full site backup (packages /www website directory, including database)
bash c.sh -a
# One-click install V2ra*
bash c.sh -v
# One-click install Rinetd bbr port acceleration
bash c.sh -b
After installation, some programs may require pseudo-static settings.
Pseudo-static Settings#
Note: Here we only discuss Typecho and WordPress for now. If you find other programs also encountering 404, please provide feedback.
Caddy
configuration file path: /etc/dylanbai8/caddy/Caddyfile
.
Edit the configuration file:
nano /etc/dylanbai8/caddy/Caddyfile
Add the following code above the last }
:
# WordPress pseudo-static
rewrite {
if {path} not_match ^\/wp-admin
to {path} {path}/ /index.php?{query}
}
# Typecho pseudo-static
rewrite {
if {path} not_match ^\/admin
to {path} {path}/ /index.php?{query}
}
Then restart Caddy
:
systemctl restart caddy
Program Uninstallation#
# Uninstall Caddy
bash c.sh -unc
# Uninstall PHP + SQLite
bash c.sh -unp
# Uninstall V2ra*
bash c.sh -unv
# Uninstall Rinetdbbr
bash c.sh -unb
Related Commands/Directories#
Start: systemctl start caddy
Stop: systemctl stop caddy
Restart: systemctl restart caddy
Caddy configuration file location: /etc/dylanbai8
Website directory: /www