Environment construction

sys: Ubuntu 20.04.5 LTS

PHP

sudo apt update && sudo apt upgrade 
sudo apt install -y software-properties-common ca-certificates lsb-release apt-transport-https
LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
sudo LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php
sudo apt update
sudo apt install -y php7.4
sudo apt install -y php7.4-pgsql
sudo apt-get install -y php7.4-mbstring
sudo /etc/init.d/apache2 restart
  • Why 7.4 but not 8.1 ?

    • typecho support php7.2 or higher, but I not sure whether it can support 8.0+

MySQL

sudo apt update
sudo apt install mysql-server
sudo systemctl start mysql.service
  • Why MySQL ?

    • This website use Mirages, which doesn't support psql.

Apache2

See this website

Web Build

I will use typecho and Mirages to build this website

Last modification:November 6, 2022
If you think my article is useful to you, please feel free to appreciate