mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-02-05 21:18:03 +00:00
Updated Manual install (markdown)
parent
9e2bea111a
commit
090959aa75
|
@ -13,9 +13,12 @@ apt install php-gd
|
||||||
```
|
```
|
||||||
|
|
||||||
# PHP and Nginx
|
# 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
|
# Add index.php to the list if you are using PHP
|
||||||
index index.php index.html index.htm index.nginx-debian.html;
|
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`.
|
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
|
# 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].
|
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].
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue