Some Linux web servers are browsable by direct IP. This can be disabled for security purposes.
- Create custom Apache main defaults template
$ ln -s /opt/cpanel/ea-nodejs10/bin/npm /usr/local/sbin/npm | |
$ ln -s /opt/cpanel/ea-nodejs10/bin/node /usr/local/sbin/node | |
$ chmod +x /usr/local/sbin/npm | |
$ chmod +x /usr/local/sbin/node |
$ cd ~ | |
## Update gcc compiler | |
$ sudo yum install centos-release-scl | |
$ sudo yum install devtoolset-8 | |
$ scl enable devtoolset-8 bash | |
## Get latest stable gRPC repo | |
$ git clone -b v1.23.0 https://github.com/grpc/grpc |
[opcache] | |
; Determines if Zend OPCache is enabled | |
opcache.enable=1 | |
; Determines if Zend OPCache is enabled for the CLI version of PHP | |
;opcache.enable_cli=1 | |
; The OPcache shared memory storage size. | |
opcache.memory_consumption=512 |
## Check if nodesources need removing | |
rpm -qa 'node|npm' | |
## Remove nodejs installed via yum | |
yum remove nodesource-release* nodejs | |
yum clean all | |
## Install node.js using compiled binaries | |
cd ~ | |
wget https://nodejs.org/dist/v14.9.0/node-v14.9.0-linux-x64.tar.xz |