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.
This page shows a growing list of common commands for viewing and managing your Centos server.
$ ls [options] [file|dir]
ls command main options:
Installing Laravel on an Apache server was going to be a no fuss process said no developer! Research done. Documentation looks good and easy to follow. Time to load Laravel.
The install notes on Laravel are easy to follow. Beginning with checking that your server is able to install Laravel.
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:
centos 6 use
service httpd restart
centos 7 use
(104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
- Plesk Obsidian 18.0.28
- Centos 7
Like any error that pops up, the real check is how do you react?
A recent attempt to run an update composer (regular activity for many of us), I had a memory limit issue. This was surprising because the memory setting via Plesk is set to 2G. Yet through Terminal it was showing only 128MB. What gives??
The error I was seeing:
I'm writing these steps primarily for myself as a reference. However, if someone else finds them useful to great.
Adding XMPP framework to your server. Initially I was going to add Prosody, however as I'm working off an Apache server with Centos 6.10 this quickly proved to a goal that was out of reach. Instead, I pivoted and redirected to Erlang.
We had an issue recently where saving a page in the admin area produced one of the following outcomes: