This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
getting_started:install_ubuntu_nginx [2016/12/27 09:59] – [Performance tune Nginx] admin | getting_started:install_ubuntu_nginx [2017/07/06 21:17] (current) – [Install RADIUSdesk] admin | ||
---|---|---|---|
Line 195: | Line 195: | ||
* RADIUSdesk consists of three components. | * RADIUSdesk consists of three components. | ||
* **rd** directory with its contents contains all the HTML and JavaScript code and is used as the presentation layer. | * **rd** directory with its contents contains all the HTML and JavaScript code and is used as the presentation layer. | ||
- | * **rd_cake** is a CakePHP application and can be considered the engine room. Here the data is processed before being presented by the presentation layer. (We currently use one CakePHP v2 and one CakePHP v3 application in order to migrate from CakePHP v2 to CakePHP v3) | + | * **rd_cake** is a CakePHP application and can be considered the engine room. Here the data is processed before being presented by the presentation layer. |
* **rd_login** is a directory with various login pages which are centrally managed through the RADIUSdesk **Dynamic Login Pages** applet. Although this is optional, it is used by most installs. | * **rd_login** is a directory with various login pages which are centrally managed through the RADIUSdesk **Dynamic Login Pages** applet. Although this is optional, it is used by most installs. | ||
Line 201: | Line 201: | ||
=== Install CakePHP === | === Install CakePHP === | ||
- | <WRAP center round info 90%> | + | <WRAP center round info 100%> |
* As from December 2016 we started a migration process of migrating from CakePHP v2 to CakePHP v3. | * As from December 2016 we started a migration process of migrating from CakePHP v2 to CakePHP v3. | ||
* The ORM component of CakePHP v3 is completely new and different which makes the migration fairly involved. | * The ORM component of CakePHP v3 is completely new and different which makes the migration fairly involved. | ||
Line 217: | Line 217: | ||
== Install CakePHP v2 == | == Install CakePHP v2 == | ||
- | + | | |
- | | + | |
* There are two formats to choose from when selecting to download, Zip or Tar.gz. Select Tar.gz. | * There are two formats to choose from when selecting to download, Zip or Tar.gz. Select Tar.gz. | ||
* Copy and extract it inside the directory that Nginx is serving its content from (/ | * Copy and extract it inside the directory that Nginx is serving its content from (/ | ||
<code bash> | <code bash> | ||
- | sudo cp 2.9.4.tar.gz / | + | sudo cp 2.9.7.tar.gz / |
cd / | cd / | ||
- | sudo tar -xzvf 2.9.4.tar.gz | + | sudo tar -xzvf 2.9.7.tar.gz |
- | sudo ln -s ./ | + | sudo ln -s ./ |
</ | </ | ||
* Reload php7.0-fpm | * Reload php7.0-fpm | ||
Line 233: | Line 232: | ||
== Install the RADIUSdesk CakePHP v2 Application == | == Install the RADIUSdesk CakePHP v2 Application == | ||
+ | |||
* Install subversion in order for you to check out the latest source for RADIUSdesk. | * Install subversion in order for you to check out the latest source for RADIUSdesk. | ||
<code bash> | <code bash> | ||
Line 257: | Line 257: | ||
== Install the RADIUSdesk CakePHP v3 Application == | == Install the RADIUSdesk CakePHP v3 Application == | ||
- | * Check out the cake3 branch from trunk to / | + | |
<code bash> | <code bash> | ||
cd / | cd / | ||
Line 267: | Line 267: | ||
sudo chown -R www-data. / | sudo chown -R www-data. / | ||
sudo chown -R www-data. / | sudo chown -R www-data. / | ||
+ | sudo chown -R www-data. / | ||
+ | sudo chown -R www-data. / | ||
+ | sudo chown -R www-data. / | ||
+ | sudo chown -R www-data. / | ||
+ | sudo chown -R www-data. / | ||
</ | </ | ||
Line 281: | Line 286: | ||
* Populate the database (trunk): | * Populate the database (trunk): | ||
<code bash> | <code bash> | ||
- | mysql -u root rd < / | + | |
</ | </ | ||
Line 316: | Line 321: | ||
</ | </ | ||
- | === Test things out === | ||
- | * RADIUSdesk supports multiple languages which are sourced during loading. To confirm that the CakePHP application is working as intended, go to this URL: | ||
- | http:// | ||
- | * Your browser should show a JSON encrypted string: | ||
- | <code bash> | ||
- | {" | ||
- | </ | ||
* Congratulations you are almost there. Next we will install the viewer component | * Congratulations you are almost there. Next we will install the viewer component | ||
+ | |||
----- | ----- | ||
Line 358: | Line 357: | ||
* Be sure to also install **FreeRADIUS** and **Node.js**, | * Be sure to also install **FreeRADIUS** and **Node.js**, | ||
* [[Getting Started: | * [[Getting Started: | ||
- | * [[Getting Started:Install Ubuntu Node.js|Install node.js]] | + | * [[getting_started:install_ubuntu_node_js|Install node.js]] |