This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
getting_started:20_install_ubuntu_nginx [2022/08/31 21:54] admin |
getting_started:20_install_ubuntu_nginx [2023/01/12 21:37] (current) admin [Installing RADIUSdesk on Ubuntu 20.04 using Nginx] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Installing RADIUSdesk on Ubuntu 20.04 using Nginx ====== | ====== Installing RADIUSdesk on Ubuntu 20.04 using Nginx ====== | ||
+ | <WRAP center round important 100%> | ||
+ | * As from January 2023 we encourage you to run the latest RADIUSdesk code on Ubuntu 22.04 or higher. | ||
+ | * If you however are not able to do for whatever reason, use the URL below for **reference** instructions to replace PHP v7.4 with PHP v8.1 on Ubuntu 20.04. | ||
+ | * https:// | ||
+ | * The latest RADIUSdesk code requires a minimum of PHP v8.1. | ||
+ | * **The instructions on this page will not work with the latest RADIUSdesk code since they are for Ubuntu 20.04 and NOT 22.04.** | ||
+ | </ | ||
+ | |||
===== Skills Required to Install ===== | ===== Skills Required to Install ===== | ||
Line 15: | Line 23: | ||
* This section will cover the steps you have to go through to get RADIUSdesk working with a **LEMP** stack on Ubuntu 20.04 | * This section will cover the steps you have to go through to get RADIUSdesk working with a **LEMP** stack on Ubuntu 20.04 | ||
* * A LEMP stack is one of those acronyms you can impress your friends with. It stands for Linux NginX MySQL and PHP. | * * A LEMP stack is one of those acronyms you can impress your friends with. It stands for Linux NginX MySQL and PHP. | ||
+ | |||
+ | <WRAP center round tip 100%> | ||
+ | * We moved recently from CakePHPv3 to CakePHPv4. | ||
+ | * If you manage devices using MESHdesk and APdesk be sure to also execute the instructions that include cake3 in order for your system to have backwards compatibility. | ||
+ | * The firmware on these devices might still point to the **cake3** directory thus we need to include support for it | ||
+ | </ | ||
+ | |||
----------- | ----------- | ||
Line 239: | Line 254: | ||
rewrite ^/ | rewrite ^/ | ||
rewrite ^/ | rewrite ^/ | ||
+ | access_log off; | ||
+ | expires max; | ||
+ | add_header Cache-Control public; | ||
+ | } | ||
+ | |||
+ | </ | ||
+ | * Add below **only** if you require backward compatibility (MESHdesk and APdesk). | ||
+ | <code bash> | ||
+ | location ~ ^/ | ||
+ | rewrite ^/ | ||
+ | rewrite ^/ | ||
access_log off; | access_log off; | ||
expires max; | expires max; | ||
Line 262: | Line 288: | ||
* Make sure the following packages are installed: | * Make sure the following packages are installed: | ||
<code bash> | <code bash> | ||
- | sudo apt-get -y install php-cli php-mysql php-gd php-curl php-xml php-mbstring php-intl git wget | + | sudo apt-get -y install php-cli php-mysql php-gd php-curl php-xml php-mbstring php-intl |
sudo systemctl restart php7.4-fpm | sudo systemctl restart php7.4-fpm | ||
</ | </ | ||
Line 336: | Line 362: | ||
server_name _; | server_name _; | ||
location / | location / | ||
+ | try_files $uri $uri/ / | ||
+ | } | ||
+ | </ | ||
+ | * If you need backward compatibility support (MESHdesk and APdesk) also add this section: | ||
+ | <code bash> | ||
+ | location / | ||
try_files $uri $uri/ / | try_files $uri $uri/ / | ||
} | } | ||
Line 344: | Line 376: | ||
| | ||
| | ||
+ | } | ||
+ | </ | ||
+ | * If you need backward compatibility support (MESHdesk and APdesk) also add this section: | ||
+ | <code bash> | ||
+ | location / | ||
+ | | ||
+ | | ||
} | } | ||
</ | </ |