Updated Manual install (markdown)

Michal 2022-09-29 15:49:11 +01:00
parent 9e2bea111a
commit 090959aa75

@ -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].