diff options
| author | Livreware.org <eunaoconfigurei@umemail.com> | 2023-08-29 10:12:45 -0400 |
|---|---|---|
| committer | Livreware.org <eunaoconfigurei@umemail.com> | 2023-08-29 10:12:45 -0400 |
| commit | 55a56b85a41aa3e2b4e3d530c7fc91691f3a11ca (patch) | |
| tree | 0f49dac075cb531ff27823e8e5d0295085590401 /content/nextcloud.md | |
| parent | 569b637e0f5103aa4da2546bc638ee9e2381584f (diff) | |
updated php, fixed typo, added firewall and docs
This commit updates the PHP version on several articles, which is currently 8.2 on Debian
It also uses symbolic links (such as `php-fpm.sock`) on nginx config files and dependency
packages (such as `php-mbstring`) that will always point to the most recent version of
PHP, so there is no need to change those once PHP is updated.
On places where the PHP version must be specified, such as the
`/etc/php/8.2/` directory and the `php8.2-fpm` systemd service, I have
changed the version accordingly.
I believe I have covered every instance of PHP usage on the website, and
programs should work fine. If I missed something or made a change that
broke the configuration of some program, please let me know.
Additionally, I have fixed a typo on mumble.md, which called the command
`scp` as `spc`, added a command to open the mumble port on your firewall
and added documentation links for further configuration of the server.
Diffstat (limited to 'content/nextcloud.md')
| -rw-r--r-- | content/nextcloud.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/content/nextcloud.md b/content/nextcloud.md index dd73d2d..a752dec 100644 --- a/content/nextcloud.md +++ b/content/nextcloud.md @@ -22,10 +22,10 @@ cloud experience (in the likes of Google Services, anyways). First, we install the dependencies: ```sh -apt install -y nginx python3-certbot-nginx mariadb-server php7.4 php7.4-{fpm,bcmath,bz2,intl,gd,mbstring,mysql,zip,xml,curl} +apt install -y nginx python3-certbot-nginx mariadb-server php php-{fpm,bcmath,bz2,intl,gd,mbstring,mysql,zip,xml,curl} ``` -*Optionally*, you can improve the performance of your Nextcloud server by adjusting the child processes that are used to execute PHP scripts. That way, more PHP scripts can be executed at once. Make the following adjustments to `/etc/php/7.4/fpm/pool.d/www.conf`: +*Optionally*, you can improve the performance of your Nextcloud server by adjusting the child processes that are used to execute PHP scripts. That way, more PHP scripts can be executed at once. Make the following adjustments to `/etc/php/8.2/fpm/pool.d/www.conf`: ```systemd pm = dynamic @@ -98,7 +98,7 @@ Add the following content [based of Nextcloud's recommendations](https://docs.ne ```nginx upstream php-handler { - server unix:/var/run/php/php7.4-fpm.sock; + server unix:/var/run/php/php-fpm.sock; server 127.0.0.1:9000; } map $arg_v $asset_immutable { @@ -216,7 +216,7 @@ chmod -R 755 /var/www/nextcloud Start and enable php-fpm and reload nginx: ```sh -systemctl enable php7.4-fpm --now +systemctl enable php8.2-fpm --now systemctl reload nginx ``` |
