Category: cPanel

The command could not be located because ‘/bin’ is not included in the PATH environment variable. ls: command not found

This is because path environment variables is not set correctly. The .bashrc file should contain following variables in it.   Fix export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" Run the command to ensure it# echo $PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: /usr/local/games

“Cannot open /var/log/sysstat/sa18: No such file or directory.”

After installing sysstat package and running sar command I encountered the error message: “Cannot open /var/log/sysstat/sa18: No such file or directory. Please check if data collecting is enabled” FixOpen and edit /etc/default/sysstat config file and change row from ENABLED=”false” to ENABLED=”true” sudo service sysstat restart

How to display original IP accessing the website which uses cloudflare nameservers

As you know, using cloudflare is a method to hide the A record of the domain and it has many advantages like preventing DDOS as well as providing CDN and so on. But if you enable cloudflare for a domain you wont be able to find the original client IPs accessing the website in cPanel … Continue reading How to display original IP accessing the website which uses cloudflare nameservers

Japanese character were displaying blank in pdf file converted using wkhtmltopdf

We can convert the html file to pdf format using tool called wkhtmltopdf. I have already provided necessary steps to implement in linux server in my previous post. But the pdf file was not displaying Japanese characters in it. Fix Please note that Chinese, Japanese, Korean font was not installed in the server. yum install … Continue reading Japanese character were displaying blank in pdf file converted using wkhtmltopdf

change wordpress theme from the database using phpMyadmin

Follow the steps to change/activate WordPress theme from within the database. 1. Log into phpMyAdmin. 2. Click on the wordpress database. 3. Go to the wp_options table. 4. Under the option_name column, locate the template entry. 5. Click Edit next to the template entry. 6. In the option_value column, change the value to the name … Continue reading change wordpress theme from the database using phpMyadmin

SSH: jailshell: fork: retry: Resource temporarily unavailable

While logging to user with shell access the following error was getting generated. -jailshell: fork: retry: No child processes -jailshell: fork: retry: No child processes -jailshell: fork: retry: No child processes -jailshell: fork: retry: No child processes -jailshell: fork: Resource temporarily unavailable   Simply killed the resource intensive process of the user to fix the … Continue reading SSH: jailshell: fork: retry: Resource temporarily unavailable

script to test website response time

We can simply test the website response time using the following script from the linux command line. curl -s -w 'Testing Website Response Time for :%{url_effective}\n\nLookup Time:\t\t%{time_namelookup}\nConnect Time:\t\t%{time_connect}\nAppCon Time:\t\t%{time_appconnect}\nRedirect Time:\t\t%{time_redirect}\nPre-transfer Time:\t%{time_pretransfer}\nStart-transfer Time:\t%{time_starttransfer}\n\nTotal Time:\t\t%{time_total}\n' -o /dev/null https://www.domain.com

install package “wkhtmltopdf” to convert html to pdf

1. Install the wkhtmltopdf package # wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox-0.12.6-1.centos7.x86_64.rpm 2. check version # wkhtmltopdf -V 3. Now link the binary file' # ln -s /usr/local/bin/wkhtmltopdf /usr/bin/wkhtmltopdf 3. To test whether the html is converted to pdf # /usr/local/bin/wkhtmltopdf http://www.google.com google.pdf Loading pages (1/6) Counting pages (2/6) Resolving links (4/6) Loading headers and footers (5/6) Printing pages … Continue reading install package “wkhtmltopdf” to convert html to pdf

Whoops, looks like something went wrong – laravel website issue

While trying to migrate laravel to production environment, following error was getting generated while accessing the website through browser. Whoops, looks like something went wrong Whoops, looks like something went wrong   The issue was with application key was not generated. For that run the command under public_html to generate a key php artisan key:generate … Continue reading Whoops, looks like something went wrong – laravel website issue

enable custom ssl request log in apache

To enable custom ssl log in apache follow below steps: 1. Add the below configuration files in post_virtualhost_global.conf for logging all SSL entries for virtual hosts that a user owns. WHM »Service Configuration »Apache Configuration »Include Editor Post »VirtualHost Include Include /etc/apache2/conf.d/userdata/ssl/2_4/bunnytech/ssllog.conf Include /etc/apache2/conf.d/userdata/ssl/2_4/bunnytech/ssllog.conf   2. Add the below configuration in ssllog.conf file for Custom … Continue reading enable custom ssl request log in apache