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:
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
Solution: (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
(104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
Set up:
- Plesk Obsidian 18.0.28
- Centos 7
Like any error that pops up, the real check is how do you react?
Apache version
Using a Centos 6 or 7 server, how to check the current version of Apache?
httpd -v
This command will return a string that is similar to the following:
Server version: Apache/2.4.6 (CentOS) Server built: Nov 16 2020 16:18:20
If you want to find where the httpd binaries are located use the following:
whereis httpd
This command will return something like:
Composer PHP version part 2
As outlined in an earlier article composer php version, when installing the latest version of Drupal the Plesk version and the server version can be different. In plesk, the version of PHP is 7.3.18, whereas, on the Centos server a check through Terminal (php -v) shows PHP 7.1.33 (cli).
When attempting to install Drupal 9 through composer, the following errors will be shown:
Centos server restart
I'm receiving a server not found when logging in to Plesk from shell or Terminal. Specifically the error message I'm receiving is
Can't connect to the server
My first reference for this fix is to run the command
sudo service httpd restart
Running this command you will see the following in Terminal