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.
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
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.