RADIUSdesk

logo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
getting_started:20_install_ubuntu_nginx [2022/09/02 11:19]
admin [Performance tune Nginx]
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://www.cloudbooklet.com/how-to-install-or-upgrade-php-8-1-on-ubuntu-20-04/
 +  * 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.** 
 +</WRAP>
 +
 ===== Skills Required to Install ===== ===== Skills Required to Install =====
  
Line 251: Line 259:
 } }
  
-###-------------------------------------------------------------------------------- +</code> 
-###===Add below only if you require backward compatibility=== +  Add below **only** if you require backward compatibility (MESHdesk and APdesk). 
-###-------------------------------------------------------------------------------- +<code bash>
 location ~ ^/cake3/.+\.(jpg|jpeg|gif|png|ico|js|css)$ { location ~ ^/cake3/.+\.(jpg|jpeg|gif|png|ico|js|css)$ {
     rewrite ^/cake3/rd_cake/webroot/(.*)$ /cake3/rd_cake/webroot/$1 break;     rewrite ^/cake3/rd_cake/webroot/(.*)$ /cake3/rd_cake/webroot/$1 break;
Line 262: Line 269:
     add_header Cache-Control public;     add_header Cache-Control public;
 } }
- 
 </code> </code>
   * Reload Nginx:   * Reload Nginx:
Line 356: Line 362:
 server_name _; server_name _;
 location /cake4/rd_cake/node-reports/submit_report.json { location /cake4/rd_cake/node-reports/submit_report.json {
 +    try_files $uri $uri/ /reporting/reporting.php;
 +}
 +</code>
 +  * If you need backward compatibility support (MESHdesk and APdesk) also add this section:
 +<code bash>
 +location /cake3/rd_cake/node-reports/submit_report.json {
     try_files $uri $uri/ /reporting/reporting.php;     try_files $uri $uri/ /reporting/reporting.php;
 } }
Line 364: Line 376:
    rewrite ^/cake4/rd_cake(.+)$ /cake4/rd_cake/webroot$1 break;    rewrite ^/cake4/rd_cake(.+)$ /cake4/rd_cake/webroot$1 break;
    try_files $uri $uri/ /cake4/rd_cake/index.php$is_args$args;    try_files $uri $uri/ /cake4/rd_cake/index.php$is_args$args;
 +}
 +</code>
 +  * If you need backward compatibility support (MESHdesk and APdesk) also add this section:
 +<code bash>
 +location /cake3/rd_cake {
 +   rewrite ^/cake3/rd_cake(.+)$ /cake3/rd_cake/webroot$1 break;
 +   try_files $uri $uri/ /cake3/rd_cake/index.php$is_args$args;
 } }
 </code> </code>