Skip to content

Instantly share code, notes, and snippets.

View jaxtheking's full-sized avatar

Gianluca Pinoci jaxtheking

View GitHub Profile
@jaxtheking
jaxtheking / gist:41c9bec6abd3b89007c9108686899515
Created September 18, 2019 00:16
Enable Node & NPM globally on a cPanel server
$ 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
@jaxtheking
jaxtheking / gist:4a122e417db180585e38b912efb96129
Last active January 7, 2022 11:27
Install gRPC on Centos 6.x (cPanel + EA4)
$ 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
@jaxtheking
jaxtheking / opcache.ini
Created March 27, 2019 14:48 — forked from rohankhudedev/opcache.ini
Best Zend OpCache Settings / Tuning / Configurations
[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
@jaxtheking
jaxtheking / gist:9f4deaf4bb4d21660f061a52d6d717f0
Last active September 5, 2021 20:06
Installing Node.js on a cPanel/WHM Server
## 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