55 lines
1.3 KiB
Markdown
55 lines
1.3 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
|
|
```
|
|
|
|
### Installation
|
|
|
|
_Below is an example of how you can instruct your audience on installing and setting up your app. This template doesn't rely on any external dependencies or services._
|
|
|
|
1. Get a free API Key at [https://example.com](https://example.com)
|
|
|
|
## Database configuration
|
|
optimize MariaDB configuration through this path .
|
|
```sh
|
|
/etc/mysql/mariadb.conf.d/50-server.cnf
|
|
```
|
|
set this values
|
|
```sh
|
|
innodb_buffer_pool_instances = 8
|
|
innodb_buffer_pool_size = 8G
|
|
innodb_file_per_table = ON
|
|
innodb_log_file_size = 768M
|
|
innodb_log_files_in_group = 4
|
|
innodb_log_buffer_size = 256M
|
|
innodb_thread_concurrency = 32 #in case of a 4-core system
|
|
innodb_stats_on_metadata = OFF
|
|
#innodb_flush_method = O_DIRECT
|
|
```
|