Installing Multiple Versions of Node.js on Ubuntu Using NVM
Let's look at the nvm tool for ubuntu and its basic commands for switching between node versions.
If you encounter restrictions in the console when running a php script or with a restriction when setting a php task on cron, you will most likely look for the ability to change the settings of the php.ini file with your host. The probability that such settings will be in the hosting panel is very low.
Task:
Let's say you need to run a script that is in the path /var/www/script.php and it needs 1 GB of RAM to process some information. It is not possible to launch it from the browser due to long processing or you need to put the script in the scheduler.
cron (cli):
php /var/www/script.php
When running the script, we have:
Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 20480 bytes) in /var/www/script.php on line NUMBER_LINE
Solution:
If the hosting allows, then the cli or cron task can be run with its own configurations.
1. Let's create a php.ini file (for example, in the /var/www/ directory next to our script.php)
2. Let's add the parameters we need to it (in this case, 1 GB memory_limit)

3. Run from console or put on cron
php -c /var/www/php.ini -f /var/www/script.php
-c - key after which the path to php.ini with our parameters is set
-f - key after which the path to the script to be run is set
Tested on hosting:
Let's look at the nvm tool for ubuntu and its basic commands for switching between node versions.
Consider setting up swap if there is enough RAM available. The effect of the swappiness parameter on the aggressiveness of swap file usage.
Configuring Apache for high volume Cookies. Let's analyze the error "Bad Request. Your browser sent a request that this server could not understand. Size of a request header field exceeds server limit." and options to configure the server.
Let's try to cure the black screen when booting Ubuntu after installing proprietary nvidia-340 driver on Nvidia 630M laptop.
When USB 2.0-3.0 stopped working after updating Ubuntu on a laptop.