This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| computing:selfhostedwp [2025/06/01 19:39] – oemb1905 | computing:selfhostedwp [2025/10/29 22:38] (current) – oemb1905 | ||
|---|---|---|---|
| Line 13: | Line 13: | ||
| This tutorial is for setting up a self-hosted WordPress instance on Debian GNU/Linux. This tutorial assumes you have some familiarity setting up a LAMP stack. If you need help with that, check out [[https:// | This tutorial is for setting up a self-hosted WordPress instance on Debian GNU/Linux. This tutorial assumes you have some familiarity setting up a LAMP stack. If you need help with that, check out [[https:// | ||
| - | sudo apt install apache2 mariadb-server php8.2 php-common php-cgi php-cli php-zip php-mysql php-mbstring php-intl php-fpm php-curl php-gd php-imagick php-xml php-xmlrpc php-soap php-opcache php-apcu php-bcmath memcached wget unzip | + | sudo apt install apache2 mariadb-server php8.4 php-common php-cgi php-cli php-zip php-mysql php-mbstring php-intl php-fpm php-curl php-gd php-imagick php-xml php-xmlrpc php-soap php-opcache php-apcu php-bcmath memcached wget unzip |
| | | ||
| Sometimes dpkg can choose which version of php you want and it's not always the version you want. In those cases, you can explicitly specify the version you need. Some packages are only available as '' | Sometimes dpkg can choose which version of php you want and it's not always the version you want. In those cases, you can explicitly specify the version you need. Some packages are only available as '' | ||
| | | ||
| - | sudo apt-get install php8.2-{common, | + | sudo apt-get install php8.4-{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: | 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: | ||
| Line 29: | Line 29: | ||
| | | ||
| sudo apt remove libapache2-mod-php* --purge | sudo apt remove libapache2-mod-php* --purge | ||
| - | sudo apt install php8.3-fpm php8.3-cgi | + | sudo apt install php8.4-fpm php8.4-cgi |
| sudo a2enmod ssl | sudo a2enmod ssl | ||
| sudo a2enmod headers | sudo a2enmod headers | ||
| Line 42: | Line 42: | ||
| sudo a2enmod proxy | sudo a2enmod proxy | ||
| sudo a2enmod proxy_fcgi | sudo a2enmod proxy_fcgi | ||
| - | sudo a2enconf php8.3-fpm | + | sudo a2enconf php8.4-fpm |
| - | sudo a2enconf php8.3-cgi | + | sudo a2enconf php8.4-cgi |
| sudo apache2ctl configtest | sudo apache2ctl configtest | ||
| sudo systemctl restart apache2 | sudo systemctl restart apache2 | ||
| - | sudo systemctl restart php8.3-fpm | + | sudo systemctl restart php8.4-fpm |
| There are two standard ways to configure php-fpm. One of those is to use ProxyPassReverse, | There are two standard ways to configure php-fpm. One of those is to use ProxyPassReverse, | ||
| < | < | ||
| - | SetHandler " | + | SetHandler " |
| </ | </ | ||
| Line 226: | Line 226: | ||
| Refresh WordPress and it should see the sftp server and allow you to make changes that way. Note: The sftp server is public and anyone can access this with proper credentials even if it not for WordPress so use a proper password and make sure your TLS configuration is working. Your instance should now be pretty solid. The only other thing you might want is more than one WordPress site subdomain, for example, site1.cooldomain.com, | Refresh WordPress and it should see the sftp server and allow you to make changes that way. Note: The sftp server is public and anyone can access this with proper credentials even if it not for WordPress so use a proper password and make sure your TLS configuration is working. Your instance should now be pretty solid. The only other thing you might want is more than one WordPress site subdomain, for example, site1.cooldomain.com, | ||
| - | --- // | + | --- // |