Copy from: https://tecadmin.net/how-to-install-nvm-on-ubuntu-22-04/ Installing NVM on Ubuntu sudo apt install curl curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
Category Archives: Application Server
Downgrade PHP 8.0 to 7.4 on Ubuntu
Copy from https://hostappraiser.com/downgrade-php-8-0-to-7-4-on-ubuntu/ Use update-alternatives –config php The first way to accomplish this is by issuing the following command This will give you a listing as shown below As you can see I entered the number 1 to select version 7.4. Then did a quick check to validate the change. Let’s restart apache2 s ourContinue reading “Downgrade PHP 8.0 to 7.4 on Ubuntu”
How To Set Up Nginx Server Blocks
By Justin Ellingwood Introduction When using the Nginx web server, server blocks (similar to the virtual hosts in Apache) can be used to encapsulate configuration details and host more than one domain off of a single server. In this guide, we’ll discuss how to configure server blocks in Nginx on an Ubuntu 16.04 server. Prerequisites We’re going toContinue reading “How To Set Up Nginx Server Blocks”
SSL in DigitalOcean
Goto your server and openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr Generate Key and CSR file for request certificate in hosting by using command sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/example.com.key -out /etc/ssl/certs/example.com.crt Go to control panel which hosting provide SSL and download Now you willContinue reading “SSL in DigitalOcean”
Install npm packages without sudo
By Tim Kamanin 1) Set yourself as an owner of ~/.npm directory, like this: sudo chown -R $(whoami) ~/.npm and if error persists, set yourself as an owner /usr/local/lib/node_modules directory too, like this: sudo chown -R $(whoami) /usr/local/lib/node_modules Now you can install npm packages without sudo. Copy from https://timonweb.com/posts/install-npm-packages-without-sudo/
Install Parse Server
Prerequisites Mongodb Nodejs $ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash – $ sudo apt-get install -y nodejs Settup Parse Server Setup Parse Dashboard var dashboard = new ParseDashboard({ “apps”: [ { “serverURL”: “http://192.168.92.128:1337/parse”, “appId”: “ChindaKey”, “masterKey”: “MchindaKey”, “appName”:Continue reading “Install Parse Server”
Auto start pm2 when reboot Windows
install pm2: $ npm install pm2 -g install mp2 start for windows $ npm install pm2-windows-startup -g install pm2 window service $ npm i pm2-windows-service -g $ pm2-service-install [-n <service name>] and go to this install path: C:\Users\Administrator\AppData\Roaming\npm\node_modules\pm2-windows-service\src\daemon\ and find file is called “mp2node” and edit at <argument>[js file].js</argument> to path of your javascript file and save and reboot service in “Service.msc” Continue reading “Auto start pm2 when reboot Windows”
Install RabbitMQ on Windows
Download rabbitmq at: https://github.com/rabbitmq/rabbitmq-server/releases/download/rabbitmq_v3_6_6/rabbitmq-server-3.6.6.exe http://erlang.org/download/otp_win64_19.2.exe Install Config Manangement Open cmd go to this path: C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.3.4\sbin input rabbitmq-plugins.bat enable rabbitmq_management and press enter key rabbitmq-service.bat stop rabbitmq-service.bat install rabbitmq-service.bat start Start use: http://localhost:15672 User: guest Password: guest Crate User: Add a new/fresh user, say user ‘test’ and password ‘test’ rabbitmqctl add_user test testContinue reading “Install RabbitMQ on Windows”
Get started with RabbitMQ on Android (Android Studio)
By: LOVISA JOHANSSON (cloudamqp) This guide explains how to create a simple chat application in Android using Android Studio and RabbitMQ. Everyone that has the application will be able to send and receive messages from all other users that are using the same application. If you are using Eclipse, check out this blog post instead. InContinue reading “Get started with RabbitMQ on Android (Android Studio)”
How to enable GZip compression in XAMPP server
By: TarranJones When we test our webiste by tools.pingdom.com and we get error: The following publicly cacheable, compressible resources should have a “Vary: Accept-Encoding” header Find apache\conf\httpd.conf uncomment the following line(remove #) LoadModule headers_module modules/mod_deflate.so some versions may require you to comment out the following lines instead. LoadModule headers_module modules/mod_headers.so LoadModule deflate_module modules/mod_deflate.so finally addContinue reading “How to enable GZip compression in XAMPP server”