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
Category: AWS
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
“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
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
How to backup the database of a cPanel account using AWS S3 bucket
Install and Use AWS CLI for backup 1.Check python version #python --version 2.Download the AWS CLI Bundled Installer #curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip" 3.Unzip and install #unzip awscli-bundle.zip #./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws 4.Installed Version Check #/usr/local/bin/aws --version 5.Configuring AWS Bucket #aws configure Or can configure at location #/root/.aws/credentials in file. aws_access_key_id = **************** aws_secret_access_key = … Continue reading How to backup the database of a cPanel account using AWS S3 bucket
Logic behind AWS free usage tier
Let me explain about the AWS free usage tier. EBS devices are block devices. This means the service does not know how much data we actually store on them, it only knows how much storage space we have allocated. So the result of df -h doesn't matter. Actually we are only using 16GB of storage … Continue reading Logic behind AWS free usage tier