Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
install_22_4 [2024/02/08 17:28] – [Install RADIUSdesk] system | install_22_4 [2024/09/19 10:20] (current) – [Install MariaDB] system | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <nav type=" | ||
+ | * [[: | ||
+ | * [[: | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
====== Installation of RADIUSdesk on Ubuntu 22.04 with Nginx ====== | ====== Installation of RADIUSdesk on Ubuntu 22.04 with Nginx ====== | ||
===== Skills required for the installation ===== | ===== Skills required for the installation ===== | ||
Line 242: | Line 249: | ||
sql_mode=IGNORE_SPACE, | sql_mode=IGNORE_SPACE, | ||
</ | </ | ||
- | | + | === Enable the Event Scheduler === |
+ | * MariaDB and MySQL has a built in Event Scheduler (like CRON for a database) which is disabled by default. | ||
+ | * We make use of this feature to automatically optimize some of the database tables. | ||
+ | * We will enable the Event Scheduler in MariaDB by creating a new file / | ||
+ | <code bash> | ||
+ | sudo vi / | ||
+ | </ | ||
+ | * Enter these two lines: | ||
+ | <code bash> | ||
+ | [mysqld] | ||
+ | event_scheduler=on | ||
+ | </ | ||
+ | | ||
+ | * Restart | ||
<code bash> | <code bash> | ||
sudo systemctl restart mariadb | sudo systemctl restart mariadb | ||
+ | </ | ||
+ | * You can confirm that it is now enabled by checking the following from the SQL terminal: | ||
+ | <code bash> | ||
+ | sudo mysql -u root | ||
+ | MariaDB [(none)]> | ||
+ | +-----------------+-------+ | ||
+ | | Variable_name | ||
+ | +-----------------+-------+ | ||
+ | | event_scheduler | ON | | ||
+ | +-----------------+-------+ | ||
+ | 1 row in set (0.001 sec) | ||
</ | </ | ||
Line 370: | Line 401: | ||
<code bash> | <code bash> | ||
sudo mysql -u root rd < / | sudo mysql -u root rd < / | ||
+ | </ | ||
+ | * Some of these patches may add new columns to existing database tables. In this case, it is recommended to clear the CakePHP models (tables) cache to ensure that the latest changes are also applied there: | ||
+ | <code bash> | ||
+ | sudo su | ||
+ | cd / | ||
+ | rm * | ||
+ | exit | ||
</ | </ | ||
</ | </ | ||
Line 436: | Line 474: | ||
===== Add LETSENCRYPT certificate ===== | ===== Add LETSENCRYPT certificate ===== | ||
- | * Instead of repeating the existing documentation, | + | * Instead of repeating the existing documentation, |
- | * You may want to do the following first before following | + | * Before you follow |
<code bash> | <code bash> | ||
sudo apt-get update | sudo apt-get update | ||
Line 445: | Line 482: | ||
* https:// | * https:// | ||
===== Next steps ===== | ===== Next steps ===== | ||
- | * Be sure to also install **FreeRADIUS** | + | * Make sure that you also install **FreeRADIUS**. |
* [[install_22_4_freeradius|Install FreeRADIUS]] | * [[install_22_4_freeradius|Install FreeRADIUS]] |