Sunday, October 16, 2022

Best Malware removal software for wordpress website

 Best WordPress Malware Removal Service Online

Comodo cWatch Website Malware Scanner
This website malware removal tool is on the top of our list because of its innovative security specifications that make malware removal an enjoyable task. It met all of the factors we took into consideration: ease of use, threat detection and response, extensive reporting capabilities and minimal impact on business productivity.

Some Features:
24/7 Website Surveillance
Superior Threat Investigation Capabilities
CDN (Content Delivery Network) which ensures high website availability
Efficient SIEM (Security Information and Event Management) System
PCI Compliant Scanning Tool

 

https://cwatch.comodo.com/cwatch-plans.php?track=10353&af=7639

Tuesday, October 4, 2022

Steps to install clamAV antivirus in ubuntu

 

sudo apt-get install clamav
enter the root password and ‘Y’ when you see a prompt to complete the installation.
 

sudo /etc/init.d/clamav-freshclam stop 
 
sudo freshclam
 
sudo /etc/init.d/clamav-freshclam start
 
man clamav
cd /var/www/html/folder 
 clamscan -i -r ~/ 
 
 clamscan --remove=yes -i -r ~/ 
Reference:
https://www.fosslinux.com/2808/how-to-clean-virus-by-command-line-scan-in-ubuntu-linux-mint.htm 

Tuesday, July 19, 2022

Procedure to install Adminer on Ubuntu 20.04 Linux server

 

Procedure to install Adminer on Ubuntu 20.04 Linux server

  1. Update your Ubuntu server running sudo apt update && sudo apt upgrade
  2. Make sure Apache server installed and configured on Ubuntu
  3. Install Adminer by typing the sudo apt install adminer command.
  4. Enable configuration, run: sudo a2enconf adminer
  5. Log in and start accessing database using https://your-domain/adminer/ URL.

 

 

Reference:

https://www.cyberciti.biz/faq/how-to-install-adminer-on-ubuntu-20-04-lts/

Tuesday, June 7, 2022

Steps to install Composer ubuntu 20.4

 

sudo apt-get remove composer
  • Download the installer to the current directory
    • php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"

       
  • Verify the installer SHA-384, which you can also https://getcomposer.org/download/
    php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
  • Run the installer
    • php composer-setup.php 
       
      Remove the installer

php -r "unlink('composer-setup.php');"
 sudo apt install composer
Refderences:
https://getcomposer.org/download/ 
 
sudo composer self-update 
-------------------------------------------------------------------------------
composer install error
 
  1. sudo apt install wget php-cli php-zip unzip
  2. php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
  3. HASH="$(wget -q -O - https://composer.github.io/installer.sig)"
  4. php -r "if (hash_file('SHA384', 'composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
Installer verified
  1. sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
All settings correct for using Composer
Downloading...
Composer (version 2.0.14) successfully installed to: 
/usr/local/bin/composer
Use it: php /usr/local/bin/composer
 

Wednesday, June 1, 2022

To remove packages that have dpkg congigure issues

 REMOVE

sudo apt-get autoremove "NAME OF PACKAGE HERE"
 RECONFIGURE
sudo dpkg-reconfigure -phigh -a
 
  

Install PHP 7.4 in ubuntu 20.04

1)sudo apt update


2)sudo apt install php7.4


3)sudo apt install php7.4-common php7.4-mysql php7.4-xml php7.4-xmlrpc php7.4-curl php7.4-gd php7.4-imagick php7.4-cli php7.4-dev php7.4-imap php7.4-mbstring php7.4-opcache php7.4-soap php7.4-zip php7.4-intl -y

Monday, May 30, 2022

Permissions for ssh folder in ubuntu

1)  chmod 600 ~/.ssh/id_rsa

2)  chmod 644 ~/.ssh/id_rsa.pub

3) chmod 700 ~/.ssh

4) chmode 400 file.pem

Monday, May 16, 2022

Install Teamviewer in Ubuntu

 1) wget https://download.teamviewer.com/download/linux/teamviewer_amd64.deb


2) sudo apt install ./teamviewer_amd64.deb


3)To launch type "teamviewer" in the command line

Tuesday, April 26, 2022

Setup SSL for Bitnami Magento using Let's Encrypt

 Reference:

https://docs.bitnami.com/aws/how-to/generate-install-lets-encrypt-ssl/

 

Steps:

1)

Step 1: Install the Lego client

        

cd /tmp
curl -Ls https://api.github.com/repos/xenolf/lego/releases/latest | grep browser_download_url | grep linux_amd64 | cut -d '"' -f 4 | wget -i -
tar xf lego_v4.9.1_linux_amd64.tar.gz
sudo mkdir -p /opt/bitnami/letsencrypt
sudo mv lego /opt/bitnami/letsencrypt/lego

 

 

Step 2: Generate a Let’s Encrypt certificate for your domain

Turn off all Bitnami services:

    

              sudo /opt/bitnami/ctlscript.sh stop

Request a new certificate for your domain as below, both with and without the www prefix.

 
 sudo /opt/bitnami/letsencrypt/lego --tls --email="EMAIL-ADDRESS" --domains="DOMAIN" --domains="www.DOMAIN" --path="/opt/bitnami/letsencrypt" run
 
  • Agree to the terms of service.

sudo mv /opt/bitnami/apache2/conf/server.crt /opt/bitnami/apache2/conf/server.crt.old
sudo mv /opt/bitnami/apache2/conf/server.key /opt/bitnami/apache2/conf/server.key.old
sudo mv /opt/bitnami/apache2/conf/server.csr /opt/bitnami/apache2/conf/server.csr.old
sudo ln -sf /opt/bitnami/letsencrypt/certificates/DOMAIN.key /opt/bitnami/apache2/conf/server.key
sudo ln -sf /opt/bitnami/letsencrypt/certificates/DOMAIN.crt /opt/bitnami/apache2/conf/server.crt
sudo chown root:root /opt/bitnami/apache2/conf/server*
sudo chmod 600 /opt/bitnami/apache2/conf/server* 
 
Restart all Bitnami Servers 
                    sudo /opt/bitnami/ctlscript.sh start 
 

 

Step 4: Test the configuration

 

test it by browsing to https://DOMAIN (replace the DOMAIN placeholder with the correct domain name).

 

Step 5: Renew the Let’s Encrypt certificate

Let’s Encrypt certificates are only valid for 90 days. To renew the certificate before it expires, run the following commands from the server console as the bitnami user. Remember to replace the DOMAIN placeholder with your actual domain name, and the EMAIL-ADDRESS placeholder with your email address.

 

sudo /opt/bitnami/ctlscript.sh stop
sudo /opt/bitnami/letsencrypt/lego --tls --email="EMAIL-ADDRESS" --domains="DOMAIN" --path="/opt/bitnami/letsencrypt" renew --days 90
sudo /opt/bitnami/ctlscript.sh start

To automatically renew your certificates before they expire, write a script to perform the above tasks and schedule a cron job to run the script periodically. To do this:

Create a script at /opt/bitnami/letsencrypt/scripts/renew-certificate.sh

 

sudo mkdir -p /opt/bitnami/letsencrypt/scripts
sudo nano /opt/bitnami/letsencrypt/scripts/renew-certificate.sh

 

 

Enter the following content into the script and save it. Remember to replace the DOMAIN placeholder with your actual domain name, and the EMAIL-ADDRESS placeholder with your email address.

For Apache:

  #!/bin/bash

  sudo /opt/bitnami/ctlscript.sh stop apache
  sudo /opt/bitnami/letsencrypt/lego --tls --email="EMAIL-ADDRESS" --domains="DOMAIN" --path="/opt/bitnami/letsencrypt" renew --days 90
  sudo /opt/bitnami/ctlscript.sh start apache 
  • Make the script executable:

    sudo chmod +x /opt/bitnami/letsencrypt/scripts/renew-certificate.sh
    
  • Execute the following command to open the crontab editor:

    sudo crontab -e
      0 0 1 * * /opt/bitnami/letsencrypt/scripts/renew-certificate.sh 2> /dev/null 
     

    Troubleshooting

    In case the certificate generation process fails or you wish to start again for any reason, run the commands below to delete the generated output, replace the previous certificates and restart services. You can then go back to Step 1. It is important to note that doing this will delete any previously-generated certificates and keys.

    rm -rf /opt/bitnami/letsencrypt

    For Apache:

    sudo mv /opt/bitnami/apache2/conf/server.crt.old /opt/bitnami/apache2/conf/server.crt sudo mv /opt/bitnami/apache2/conf/server.key.old /opt/bitnami/apache2/conf/server.key sudo mv /opt/bitnami/apache2/conf/server.csr.old /opt/bitnami/apache2/conf/server.csr sudo /opt/bitnami/ctlscript.sh restart 
  •  
  • sudo crontab -e
     
     
 

 

 

 

 

Wednesday, April 6, 2022

Bitnami Magento setup in AWS, remove the banner link to the Bitnami Info page

To remove the banner link to the Bitnami Info page, follow these steps:

 

1) Log in to into your server console using SSH and execute the following command.   Remember to replace APPNAME with the actual name or directory location of your application

 

             sudo /opt/bitnami/apps/APPNAME/bnconfig --disable_banner 1

 


2) Restart the webserver


               sudo /opt/bitnami/ctlscript.sh restart apache
 
 
 
References:
 
https://docs.bitnami.com/aws/how-to/bitnami-remove-banner/ 
https://docs.bitnami.com/aws/how-to/troubleshoot-magento-issues/ 

Monday, March 28, 2022

How to create social logins using Laravel 8

 Refer the links:

Windows Azure login

-not a paid service

https://www.appypie.com/faqs/how-can-i-get-my-microsoft-acount-client-id-and-client-secret-key

 1)Visit portal https://portal.azure.com/

2) Login and go to Manage Azure Active Directory

3) go to 'App Registrations'

4) Click 'Register New Application' button

5) In the form fill up the domain name and redirect url, submit

6) Then copy client id and client secret

Apple social login

https://devpeel.com/implement-apple-sign-in-with-laravel/

https://developer.okta.com/blog/2019/06/04/what-the-heck-is-sign-in-with-apple

1)Login to https://developer.apple.com, using apple credentials

2)Click menu item 'certificates', 'ids' and 'profiles'

3)Choose  'identifiers' and create new app id

4) select 'app ids', select 'apps', click continue

5) check 'sign in with apple' check box

6) Now go to the 'services' menu,

7)Go to the keys menu, add keys

Follow steps in this tutorial for social login

https://sarunw.com/posts/sign-in-with-apple-4/


Google Login

https://www.tutsmake.com/laravel-8-socialite-google-login-example-tutorial/

https://www.webdew.com/blog/login-with-google-in-laravel 

https://stackoverflow.com/questions/11485271/google-oauth-2-authorization-error-redirect-uri-mismatch

 

1)Visit link https://console.cloud.google.com/apis/dashboard

2)Login with an existing gmail account

3)click on the 'create credentials' button and choose OAuth client id.

4)copy client id and secret id, then add to the laravel .env file

5) enter the call back redirect uri, as in the laravel routes file


Facebook Login

https://www.tutsmake.com/laravel-8-facebook-login-tutorial-step-by-step/


1) Create an FB account

2) Visit link https://developers.facebook.com/apps/

3) create app, with the website domain name 

4) After creating app, In the settings ---> Basic, copy client id, secret key to add to the .env file of your back-end code

5)From the sidebar 'Add Product' - ' Facebook Social Login'

5) In the top, Change app status from 'development' to 'live' mode

6)Set up the redirect url:

for eg:

https://testing.com/complete-social-profile


Whatsapp Chat

 

1) Get short link from whatsapp business number and add to the website settings 

Thursday, January 20, 2022

Woocommerce

 

Setting up emails in woocommerce

https://learnwoo.com/setting-up-emails-in-woocommerce/

Monday, January 3, 2022

Laravel with MongoDB

 STEPS TO INSTALL MONGODB

 Ensure that the following php extensions are installed:

    

sudo apt-get install php-pear 
sudo apt install php7.4-dev //sudo apt install php8.0-dev

sudo pecl install mongodb

sudo apt-get install php-mongodb
 
MONGODB INSTALLATION COMMANDS 

 

commands:

    1:Import the public key used by the package management system.

 wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -

 

    2: Create a list file for MongoDB

   

echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list


    3.Reload local package database

 sudo apt-get update

    4.Install the MongoDB packages

 sudo apt-get install -y mongodb-org

    5.Start MongoDB

sudo systemctl start mongod

    6.Verify that MongoDB has started successfully

sudo systemctl status mongod //enable, stop, restart

 

sudo systemctl enable mongod
 


STEPS TO INSTALL LARAVEL WITH MONGODB

During 'composer install', it will show issues with the following packages. 

composer require mongodb/mongodb --ignore-platform-reqs
composer require jenssegers/mongodb --ignore-platform-r

 

 

composer require mongodb/mongodb --ignore-platform-reqs
composer require jenssegers/mongodb --ignore-platform-r

https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/

https://blog.shahednasser.com/how-to-use-mongodb-with-laravel/

study Mongodb commands

https://www.tutorialspoint.com/mongodb/mongodb_create_database.htm