forgive yourself today

a while ago I found myself struggling with the idea of being perfect in life, or in another word being in a perfect life. Simply making sure things are moving right on the plan, to prevent anything bad from happening, and that was creating this feeling of anxiety in me that I’m not in control.

It started years ago with a traumatic incident, once I’ve gotten through it, I thought I am free & Its over. soon I found myself struggling with an strange fear, the fear of it happening to me again. in every step I take & every decision I make, I was afraid of something bad happening.

I was too consumed with the anxiety of being out of control that I experienced 1 or 2 panic attacks. The anxiety gets more intense on the same time of the year that I had that incident. Anniversary effect they call it, I know right.

I soon found out that this anxiety was getting stronger living among the outside world. It was not really interfering on how I could interact with the people I knew, but to see the nasty things people do to each other, whether its something that I witness with my own eye, or something that I watch in News or even a TV Show, or even hearing a Tragic story from someone in a group was making me feel deeply disturbed.

Continue reading “forgive yourself today”

Setting Up Kubernetes Cluster on CentOS Servers.

So I’ve been running some of our development components on Docker in the company but it was never significant to the level that we rely on them for Development and Production, due to some major changes in our DataCenter I had to setup some database clusters and services from scratch to migrate our old data into.

So I saw this as an opportunity to convert some of our classic VMs into docker containers for a easier production and development experience.

Continue reading “Setting Up Kubernetes Cluster on CentOS Servers.”

Change Primary Domain Documentroot in cPanel

Usually the default document root for each cPanel account is “public_html”, this is mostly fine with most of scripts but when it comes to times that you are using a framework which is suppose not to expose the main files in it’s public document root, it gets complicated.

Unfortunately there is no way to change the document root for the primary account of cPanel within the control panel itself, and the only way to do it is to have root access.

If you do have root access on your server then it will be easy to achieve that.

To change the document root simply edit the config file for the account you wish to modify, its located at:

look for the config documentroot and change it to the way you want it.

if you got ssl installed on your domain you will need to do the same change for another file at:

once done run the following cPanel scripts to rebuild the user data cache as well as rebuild the httpd configurations.

Lastly restart the apache by running:

Search and Replace string with SED

sed (Stream Editor) is a tiny cool tool shipped in most linux distros. most of the times I use sed to lookup for pieces of strings in my projects and replace them in cases that I’m moving them from one environment to another.

 to run sed for search and replace purpose on a single file you can do:

The above command will look up the file.txt in and search all occurances of ‘oldstring’ to ‘newstring’.

To do this in a recursive mode and all the files in a directory you can mix it up with find command.

note I’ve passed “.” as the target directory to find, means I should be in the directory that I wish to run the search in. you can also replace “.” with the path of the directory you wish to do your search and replace in.

Install oci8 Extension on CentOS 7 cPanel Server

Today I had to assist a client on setting up his cpanel server to be able to connect to their oracle instance, so I had to get oci8 up and running.

We need to download basic and sdk instant client packages first. Download them from here (if the link doesn’t work due to the article being outdated please Google them) then install them by running:

once that is done we can install oci8 using pecl. if you are using easyapache 4 it means you probably have multiphp enabled. so there is a pecl in each of the php versions bin directory.

install the oci8 using pecl in your desired php version by running :

you can change php71 to php70.