Category: CentOS

class Redis not found

I was trying to cache the frequently used urls in the redis so that the website loads faster. But when I was trying to implement the redis cache got caught with following error. class Redis not found Fix: Issue was with php7.x-redis not installed and in this case I was using php7.2. apt install php7.2-redis

curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number

After setting SSL in the Apache default-ssl.conf file I was not able to access the website using https which was showing ERR_SSL_PROTOCOL_ERROR. Also the curl command was showing the following error: curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number Fix: sudo a2ensite default-ssl and restart apache2. Note: Before that you need to ensure following modules are also … Continue reading curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number

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

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

Dockerfile build hanged at Configuring tzdata

while running a dockerfile, it was hanged at the following Configuring tzdata ------------------ Please select the geographic area in which you live. Subsequent configuration questions will narrow this down by presenting a list of cities, representing the time zones in which they are located. 1. Africa 4. Australia 7. Atlantic 10. Pacific 13. Etc 2. … Continue reading Dockerfile build hanged at Configuring tzdata

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