Here is how to generate a random number in a bash shell script. In the bash shell we have environmental variable $RANDOM that can generate a unique random number each time it is referenced. echo $RANDOM And to assign this value to a variable :...
If you are having DNS problems, ensure that the server has a list of functional resolvers. Resolvers allow the server to find IP addresses corresponding to domain names by communicating with DNS servers. If you need to add resolvers to your server:...
This will remove all html/text output in your page execution prior to running it. Handy if you need to get rid of some white space or, in my case today, output from code that is outside your control. <cfscript>out = getPageContext().getOut();...
To install Node.js on CentOS perform (as root):
curl -sL | bash -
yum install -y nodejs
It will output each step as it moves along, prompting you to manually install any 3rd party dependencies.
Verify the install with:
node -v
stat prints file information, including last modified, changed or accessed time. On Unix systems every file has 4 timestamps: ctimechange time – when the file was modified, permissions changed, etc.atimeaccessed time – when file was read...
On Apache you can restrict access by IP address in either the virtualhost directives or the .htaccess files.
In this guide, I will install cPanel and then perform some basic steps that I recommend for every new cPanel installation. Install cPanelSet server timeInstall ConfigServer Firewall (CSF) and whitelist your IPChange SSH port and allow it in the...
When connecting to a mail server over SSL via an email client (e.g. Outlook), connection fails with the following message: Your server does not support the connection encryption type you have specified. Try changing the encryption method. and in...