chiro-canto/INSTALL.md

47 lines
776 B
Markdown
Raw Normal View History

2021-03-28 20:40:17 +02:00
# Install Chiro - Canto
## Setup Database
```bash
sudo mysql
```
```sql
CREATE DATABASE chirocanto;
GRANT ALL ON chirocanto.* TO 'chirocanto'@'localhost' IDENTIFIED BY 'strongpassword';
FLUSH PRIVILEGES;
```
## Setup php
```bash
sudo apt install php-fpm
sudo vim /etc/php/7.3/fpm/php.ini
```
```textile
upload_max_filesize = 20M
```
## Setup nginx
2021-04-15 12:29:53 +02:00
```bash
sudo apt install nginx
sudo cp /var/Www/chiro-canto/chiro-canto.conf /etc/nginx/sites-available/chiro-canto.conf
```
Adapt parameter to configuration.
2021-04-15 12:29:53 +02:00
## Create self-signed certifcates
```bash
sudo dnf install openssl
cd /etc/nginx/ssl/
openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout privkey.pem -out cert.pem
```
## Install PhpMyAdmin
```bash
sudo dnf -y install phpMyAdmin
sudo mv
```