This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
computing:selfhostedwp [2019/08/18 15:41] – oemb1905 | computing:selfhostedwp [2022/02/02 19:49] – oemb1905 | ||
---|---|---|---|
Line 11: | Line 11: | ||
------------------------------------------- | ------------------------------------------- | ||
- | This tutorial is for setting up a self-hosted WordPress instance on Debian GNU/ | + | This tutorial is for setting up a self-hosted WordPress instance on Debian GNU/ |
- | sudo apt install php-cgi php-cli php-zip php-mysql php-mbstring php-intl php-fpm php-curl php-gd php-mbstring php-imagick php-xml php-xmlrpc wget unzip php-gd php-zip | + | sudo apt install php-cgi php-cli php-zip php-mysql php-mbstring php-intl php-fpm php-curl php-gd php-mbstring php-imagick php-xml php-xmlrpc wget unzip php-gd php-zip |
+ | |||
+ | Or ... | ||
+ | |||
+ | sudo apt-get install php7.4-{cgi, | ||
| | ||
Okay, let's now enable fast cgi and rewrite php modules and then check your config. | Okay, let's now enable fast cgi and rewrite php modules and then check your config. | ||
Line 42: | Line 46: | ||
sudo mysql -u root -p | sudo mysql -u root -p | ||
- | | + | CREATE DATABASE databasename DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; |
- | | + | GRANT ALL ON databasename.* TO ' |
- | | + | FLUSH PRIVILEGES; |
- | | + | EXIT; |
Next up, it is time to allow overrides in your primary apache configuration: | Next up, it is time to allow overrides in your primary apache configuration: | ||
Line 61: | Line 65: | ||
tar xzvf latest.tar.gz | tar xzvf latest.tar.gz | ||
touch ~/ | touch ~/ | ||
- | sudo chmod 660 ~/ | + | sudo chmod 640 ~/ |
cp ~/ | cp ~/ | ||
mkdir ~/ | mkdir ~/ |