49 lines
2.1 KiB
Markdown
49 lines
2.1 KiB
Markdown
|
|
|
|
### Dependencies
|
|
<details>
|
|
<summary>Server</summary>
|
|
<ul>
|
|
<li><a href="https://www.php.net/downloads">php8.1</a></li>
|
|
</ul>
|
|
</details>
|
|
|
|
<details>
|
|
<summary>Database</summary>
|
|
<ul>
|
|
<li><a href="https://www.mysql.com">Mysql-15.1</a></li>
|
|
<li><a href="https://mariadb.org">MariaDB-10.11.8</a></li>
|
|
</ul>
|
|
</details>
|
|
|
|
<!-- GETTING STARTED -->
|
|
## Getting Started
|
|
|
|
setting up the project on prod.
|
|
|
|
### Prerequisites
|
|
|
|
This is an example of how to list things you need to use the software and how to install them.
|
|
* npm
|
|
```sh
|
|
npm install npm@latest -g
|
|
```
|
|
|
|
### Database configuration
|
|
optimize MariaDB configuration through this path .
|
|
```sh
|
|
/etc/mysql/mariadb.conf.d/50-server.cnf
|
|
```
|
|
set this values
|
|
|
|
| Variable | Value | Hardware Condition | MaraiDB version |
|
|
|:---------------------------------:|:--------:|:------------------------------------------------------------------:| :-----------------:|
|
|
|innodb_buffer_pool_instances | `8` | no condition | `>=10.11` |
|
|
|innodb_buffer_pool_size | `8G` | no condition | `>=10.11` |
|
|
|innodb_file_per_table | `ON` | no condition | `>=10.11` |
|
|
|innodb_log_file_size | `768M` | no condition | `>=10.11` |
|
|
|innodb_log_files_in_group | `4` | in case of a 4-core system | `>=10.11` |
|
|
|innodb_log_buffer_size | `256M` | no condition | `>=10.11` |
|
|
|innodb_thread_concurrency | `32` | no condition | `>=10.11` |
|
|
|innodb_stats_on_metadata | `OFF` | no condition | `>=10.11` |
|