Install PostgreSQL in Ubuntu

Copy from https://linuxhint.com/install-and-setup-postgresql-database-ubuntu-22-04/ https://hassanannajjar.medium.com/how-to-fix-error-password-authentication-failed-for-the-user-in-postgresql-896e1fd880dc if maybe someone like me overlook the filename that must be edit in my case the conf file located at /etc/postgresql/14/main’ if you type cd /etc/postgresql/14/main so just sudo nano  add these 2 filenames listen_addresses = ‘*’ uncomment this line and change localhost to * host all all 0.0.0.0/0 trust change the 127.0.0.1/32Continue reading “Install PostgreSQL in Ubuntu”

How To Install Node.js on Ubuntu 20.04

Copy from: https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-20-04 Option 3 — Installing Node Using the Node Version Manager Another way of installing Node.js that is particularly flexible is to use nvm, the Node Version Manager. This piece of software allows you to install and maintain many different independent versions of Node.js, and their associated Node packages, at the same time.Continue reading “How To Install Node.js on Ubuntu 20.04”

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”

proc_open(): fork failed – Cannot allocate memory

As composer troubleshooting guide here This could be happening because the VPS runs out of memory and has no Swap space enabled. free -m To enable the swap you can use for example: sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024 sudo /sbin/mkswap /var/swap.1 sudo /sbin/swapon /var/swap.1       https://stackoverflow.com/questions/18116261/php-composer-update-cannot-allocate-memory-error-using-laravel-4

Can’t Connect to MySQL Server Remotely on Ubuntu

by: devanswers.co MySQL by default will not allow incoming remote connections for security reasons. In this article we will edit the MySQL config file mysqld.cnf to allow remote connections. Testing a Remote MySQL Connection To test a remote MySQL connection in Linux terminal, simply replace username and hostname_or_ip with your own. mysql -u username -h hostname_or_ip -p Or via Command LineContinue reading “Can’t Connect to MySQL Server Remotely on Ubuntu”

How To Install and Use Docker on Ubuntu 16.04

By: $ sudo apt-get install apt-transport-https ca-certificates curl software-properties-common $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add – $ sudo add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable” $ sudo apt-get update $ apt-cache search docker-ce $ sudo apt-get install docker-ce

How to install and configure Solr 6 on Ubuntu 16.04

By: www.howtoforge.com What is Apache Solr? Apache Solr is an open source enterprise-class search platform written in Java which enables you to create custom search engines that index databases, files, and websites. It has back end support for Apache Lucene. It can e.g. be used to search in multiple websites and can show recommendations for the searched content.Continue reading “How to install and configure Solr 6 on Ubuntu 16.04”

Auto Mount NTFS after reboot

By Ubuntu First, you need to find the device locations of the partition(s) you wish to mount. Open a terminal and run: sudo blkid For illustration purposes, an example output from a computer setup with a Vista/Ubuntu dual-boot and shared NTFS data partition is shown here: /dev/sda1: LABEL=”Recovery” UUID=”B23613F43613B875″ TYPE=”ntfs” /dev/sda2: LABEL=”Windows” UUID=”38CE9483CE943AD8″ TYPE=”ntfs” /dev/sda3:Continue reading “Auto Mount NTFS after reboot”