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 [2023/06/29 04:29] – oemb1905 | computing:selfhostedwp [2023/06/29 04:36] – oemb1905 | ||
---|---|---|---|
Line 18: | Line 18: | ||
| | ||
sudo apt-get install php8.2-{common, | sudo apt-get install php8.2-{common, | ||
+ | | ||
+ | Apache2 will set up a 000-default.conf automatically and your host should now resolve. Be sure to set up TLS with certbot. Here's my preferred method: | ||
+ | |||
+ | *** | ||
| | ||
In this particular configuration, | In this particular configuration, | ||
Line 37: | Line 41: | ||
sudo systemctl restart apache2 | sudo systemctl restart apache2 | ||
sudo systemctl restart php8.2-fpm | sudo systemctl restart php8.2-fpm | ||
- | | + | |
- | Move index.php to the top priority as follows: | + | There are two standard ways to configure php-fpm. One of those is to use ProxyPassReverse, |
+ | |||
+ | < | ||
+ | SetHandler " | ||
+ | </ | ||
+ | |||
+ | That takes care of configuring php-fpm and mpm_event. Before proceeding, navigate to your tld.domain in a web browser and make sure that your site resolves properly. Now, to make sure that your WordPress index.php file resolves properly to display your home page, make sure to move index.php to the top priority as follows: | ||
| | ||
sudo nano / | sudo nano / | ||
< | < | ||
- | | + | |
+ | *** | ||
Optionally, we can install phpmyadmin, and if you do, you should secure as follows: | Optionally, we can install phpmyadmin, and if you do, you should secure as follows: | ||
Line 201: | Line 213: | ||
</ | </ | ||
- | --- // | + | --- // |