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
“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
Test Remote MSSQL connection
Simply go anywhere on your computer and create a new text document file and then rename the file with the extension .UDL Now when you open this new file you've created, you will see a SQL connectivity window which will allow you to test remote SQL connections.
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