From 090959aa759854286e8a13c8ca1281aa8486444a Mon Sep 17 00:00:00 2001 From: Michal <86935712+Fluffy-Bean@users.noreply.github.com> Date: Thu, 29 Sep 2022 15:49:11 +0100 Subject: [PATCH] Updated Manual install (markdown) --- Manual-install.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Manual-install.md b/Manual-install.md index ef5e6a1..ac501ec 100644 --- a/Manual-install.md +++ b/Manual-install.md @@ -13,9 +13,12 @@ apt install php-gd ``` # PHP and Nginx -This project also requires PHP 8.1 and was made with Ubuntu 22.04 LTS and Nginx in mind, so I recommend running this gallery on such. +This project also requires PHP 8.1 and was made with Ubuntu 22.04 LTS and Nginx in mind, so I recommend running this gallery on such. To install Nginx, ues the following command: +``` +apt install nginx +``` -With Nginx, you may need to configure the `/etc/nginx/sites-available/default.conf` for the new version on PHP. You must find the allowed index list and add index.php as such: +With Nginx, you may need to configure the `/etc/nginx/sites-available/default` or `/etc/nginx/sites-available/default.conf` for the new version on PHP. You must find the allowed index list and add index.php as such: ``` # Add index.php to the list if you are using PHP index index.php index.html index.htm index.nginx-debian.html; @@ -39,6 +42,15 @@ http { Most important of them being `client_max_body_size`. +Now **restart** Nginx with: +``` +systemctl restart nginx +``` +Now check if Nginx is running with: +``` +systemctl status nginx +``` + # Database setup If you made it this far, congrats! We're not even close to done. Next you will need to setup your database. If you're running a separate server for databases, that'll also work[^1].