banner
moeyy

moeyy

一条有远大理想的咸鱼。
github
mastodon
email

One-click installation of Typecho/WordPress/Zblog/Kodexplorer and full site backup for low memory VPS.

Note: A script has just been written by a senior expert for low memory VPS, which can be used to install many blogging programs, Rinetdbbr, etc. It has been tested on a minimum of 64MB memory, and I will share it here. If you have a low memory VPS or want to try it out, you can give it a try.

Script Features#

  • One-click installation of Caddy, PHP7, and Sqlite3 environment for low memory VPS (supports a minimum of 64MB memory).
  • One-click binding of domain name to automatically generate SSL certificate and enable HTTPS (SSL automatic renewal).
  • Supports IPv6 (AAAA record). If the local network does not support IPv6, it can be converted to IP4 through Cloudflare CDN.
  • One-click installation of Typecho, WordPress, Zblog, Kodexplorer, Laverna, and one-click full site backup.
  • One-click installation of V2ra* and Rinetdbbr.

Update#

【19.5.20】
Since the script does not have pseudo-static settings, it is prone to problems during use. Here are some 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 the mini system. Also, please resolve the domain name in advance before using it, otherwise the SSL issuance will fail.

Use the following 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 installing the environment, use the following command to install the required programs.

# One-click installation of Typecho blog
bash c.sh -t

# One-click installation of WordPress blog
bash c.sh -w

# One-click installation of Zblog blog
bash c.sh -z

# One-click installation of Kodexplorer
bash c.sh -k

# One-click installation of Laverna note-taking app
bash c.sh -l

# One-click full site backup (including /www website directory and database)
bash c.sh -a

# One-click installation of V2ra*
bash c.sh -v

# One-click installation of rinetd bbr port acceleration
bash c.sh -b

After installation, some programs may require setting up pseudo-static.

Pseudo-static Setting#

Note: Currently, only Typecho and WordPress will be discussed. If you find that other programs also have 404 errors, 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
Start: systemctl start caddy
Stop: systemctl stop caddy
Restart: systemctl restart caddy

Caddy configuration file location: /etc/dylanbai8

Website directory: /www
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.