Skip to main content

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.


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:

PHP version on Apache Centos 7

I need to set the default php-version of a subscription to php7.3.  The current server php version is PHP 7.1.33 (cli) (built: Oct 25 2019 11:33:58) ( NTS ).

Using a shell program (I used Terminal) from the home directory I ran:

export PATH=/opt/plesk/php/7.3/bin:$PATH;

centos 6 use

service httpd restart

centos 7 use

Subscribe to Centos 7