Skip to main content

Installing Varnish

Installing Varnish to increase the speed of the page load.

Install varnish using the command below

yum install varnish

Your response should look something like

Adding Solr authentication to your server

Adding basic security to your server, requires altering the security.json file.  For me this file was located

/var/solr/data/

 

Add a User or Edit a Password

The set-user command allows you to add users and change their passwords. For example, the following defines two users and their passwords:

Is your Linux computer running slow?

Well for me it is very slow.  Recently, I upgraded from CentOS 6 to Centos 7.  CentOS 6 was lightening fast.  Since the upgrade CentOS 7 has been so slow in comparison.  But when I say slow, it has been appallingly slow.  It just was unable to reach anywhere the performance of 6.  Which seems odd, given high transmission speed and powerful hardware.   It still takes forever in executing or processing services or applications.

Installing Node and npm on CentOS 7

Working on a new CentOS 7 server, Node wasn't installed.  You can quickly this through using the prompt node -v

node not found

In Plesk, the extension had been installed, however this doesn't mean correctly.  So I needed to install Node and npm on the CentOS 7 server.

 

Allegedly a server upgrade to CentOS 7

I had been running a few Centos 6 servers just past their EOL (30th November 2020) and it was time to kick in to action a plan I had been working on when I realised EOL was on my doorstep.

npm error config/core.js missing

I started out with a simple task... install Tailwindcss.  What unfolded is something that many of us have experienced time and time again.

For anyone that has completed this task before knows that through shell the command is

shell command to know who is the current user

For what reason would you need to find the identity of the current user? You are the current user!  However, if you are like me and run multiple user accounts for different domains, then having the ability to quickly check is important.

who

The output from who gives you the name of the current user (denoted below as {username}), the terminal they are logged in at, the date and time when they logged in and the IP address:

yum command for clearing cache and make

Whilst updating nodejs and npm on a Centos 6 or 7 server running Apache, I hit a few walls and as a matter of process found some commands that are handy to run before doing a deep dive in Google.

 

Cleaning the cache

sudo yum clean all
rm -rf /var/cache/yum/*

To make the cache

sudo yum clean all; sudo yum makecache

If you want to run several commands use semi-colon as noted above.

 

ls commands in Apache / Linux

This page shows a growing list of common commands for viewing and managing your Centos server.

ls syntax
$ ls [options] [file|dir]

ls command main options:

Subscribe to Centos 7