chrome xIkczL3Sv4 - How to fix cpanel user ownership issues serverwide

How to fix cpanel user ownership issues serverwide

Here is a small script from Seemab Saleem that will fix cpanel user ownership issues serverwide # echo -e “Checking ownership of /home/user n” for i in `ls /var/cpanel/users/` do if [ “$i” != “root” ]; then chown ...

image 1 - Generate a random number 🔢 in Unix Shell Script

Generate a random number 🔢 in Unix Shell Script

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

what is cpanel - Checking Resolvers in cPanel Server

Checking Resolvers in cPanel Server

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

images - ColdFusion Force Header and Output Buffer 🔄 Reset

ColdFusion Force Header and Output Buffer 🔄 Reset

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();...

nodejs - Install NODE.JS on CentOS

Install NODE.JS on CentOS

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 - Getting file information using stat

Getting file information using stat

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

image 25 - The Complete Guide to cPanel Installation and Setup

The Complete Guide to cPanel Installation and Setup

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