This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
computing:selfhostedwp [2023/06/29 04:40] – oemb1905 | computing:selfhostedwp [2023/06/29 04:58] – oemb1905 | ||
---|---|---|---|
Line 51: | Line 51: | ||
</ | </ | ||
- | 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. | + | 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. |
- | + | ||
- | sudo nano / | + | |
- | < | + | |
- | + | ||
- | *** | + | |
- | + | ||
- | Optionally, we can install | + | |
+ | sudo apt install phpmyadmin | ||
sudo htpasswd -c / | sudo htpasswd -c / | ||
- | sudo nano / | + | sudo nano / |
- | + | ||
- | Enter the following in the file that opens: | + | |
- | + | ||
< | < | ||
< | < | ||
< | < | ||
<Require valid-user> | <Require valid-user> | ||
+ | |||
+ | If you don't need phpmyadmin, you can optionally make a phpinfo page instead: | ||
+ | |||
+ | sudo nano / | ||
+ | sudo htpasswd -c / | ||
+ | sudo nano / | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | <Require valid-user> | ||
+ | |||
+ | 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 / | ||
+ | < | ||
+ | |||
Close and save the file. Let's set up a database now for the WordPress instance: | Close and save the file. Let's set up a database now for the WordPress instance: | ||