Skip to main content

Posts

Recent posts

Ubuntu system PHP setup

Tech Easy Solutions 1 php -v 2 apche2 3 mysql 4 sudo apt update 5 sudo apt install apache2 6 sudo apt install mysql-server 7 sudo mysql_secure_installation 8 sudo mysql 9 sudo apt install php libapache2-mod-php php-mysql sudo apt-get install php-curl php-gd php-mbstring php-mcrypt php-xml php-xmlrpc 10 sudo nano /etc/apache2/mods-enabled/dir.conf /etc/apache2/mods-enabled/dir.conf <IfModule mod_dir.c> DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm </IfModule> 11 sudo systemctl restart apache2 12 sudo systemctl status apache2 13 apt search php- | less 14 apt show php-cli 15 php -v 16 sudo apt install php-cli 17 sudo apache2ctl configtest 18 sudo systemctl restart apache2 19 sudo nano /var/www/info.php 20 sudo nano /var/www/html/info.php 21 sudo apt update 22 sudo apt install php phpmyadmin php-mbstring php-gettext 23 sudo phpenmod mbstring 24 sudo systemctl restart apache2 25 sudo mysql 26 mysql -u root -p ## update root user password ALTER USER

Shopify fully custom contact section block on home page

Tech Easy Solutions Shopify fully custom contact section block on home page <section class="contact-information" >       <!--<div class="left-shape">         <img src="images/left-shape.png" class="img-fluid">       </div>-->       <div class="container c-container">         <div class="row">           <div class="col-lg-6 col-md-6 col-sm-12 col-12">             <div class=" contact-us">                         {% form 'contact' %}                       {% if form.posted_successfully? %}                        <center> <p class="note form-success">                           {{ 'contact.form.post_success' | t }}                          </p></center>                       {% endif %}                       {{ form.errors | default_errors }}               <form>                 <div class="form

Full function Shopify address to edit and delete addresses.liquid

Tech Easy Solutions Full function Shopify address to edit and delete addresses.liquid <div class="content ac-content"> <div class="row"> <div id="address_tables" class="col-md-6"> {% paginate customer.addresses by 10 %}   {% for address in customer.addresses %}   <div class="address_table">     <div id="view_address_{{address.id}}" class="customer_address{% if address == customer.default_address %} default_address_container{% endif %}"> {% if address == customer.default_address %}<span class="default_address">{{ 'customer.addresses.default' | t }}</span>{% endif %}       <h3 class="address_title">         {{ address.street }}       </h3>       <div class="view_address">         <p>{{ address.first_name }} {{address.last_name }}         <br />{{ address.company }}         <br />{{ address.street }}      

How to create database and user in postgress databse

Tech Easy Solutions sudo -u postgres createuser user01; $ sudo -u postgres createdb userdb; $ sudo -u postgres psql psql (10.12 (Ubuntu 10.12-0ubuntu0.18.04.1)) Type "help" for help. postgres=# alter user user01 with encrypted password 'user01'; ALTER ROLE postgres=# grant all privileges on database userdb to user01; GRANT postgres=# \q database :userdb user : user01 passworrd : user01

how to add SSH key in version control

Tech Easy Solutions system config: Ubuntu $ ~/.ssh$ ssh-keygen -t ed25519 -C "key for git lab" Generating public/private ed25519 key pair. Enter file in which to save the key (/home/user/.ssh/id_ed25519): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/user/.ssh/id_ed25519. Your public key has been saved in /home/user/.ssh/id_ed25519.pub. The key fingerprint is: .. $ cat id_ed25519.pub then past into version control system access using ssh eky

Connection Information To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Tech Easy Solutions Connection Information To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.  WordPress 5.2.3 hosted on Linux server  need file permission  sudo chown -Rf www-data.www-data  /www/html/worpdressdir change in wp-config

DNS record setting for email server

Tech Easy Solutions DKIM SPF DMARC DKIM Type Hostname Value TTL (seconds) TXT _dmarc.domain.com.domain.com returns v=DMARC1; rua=mailto:admin@domain.com; ruf=mailto:admin@domian.com; fo=0:1:d:sCopy 3600 SPF TXT mailserverdomain.com returns v=spf1 mx a ~all DKIM generate sudo apt-get install opendkim opendkim-tools sudo opendkim-genkey -s mail -d your-domain.com cat mail.txt mail._domainkey IN TXT ( "v=DKIM1; k=rsa; " "p=MIGfT") https://www.linuxbabe.com/mail-server/setting-up-dkim-and-spf

LEMP with free SSL install on Ubuntu server

Sanjay Tech solutions LEMP with free SSL install on Ubuntu server  pre requirements. LEMP stack UP and Runing  you need to install 1. certbot   add-apt-repository ppa:certbot/certbot apt-get update apt-get install python-certbot-nginx NGINX CONFIG site configuration server { listen 80; listen [::]:80; root /var/www/html/sitedir; server_name yrsite.com www.yrsite.com; }    make dns record match with a www. record correct ip points  test nginx configuration $ sudo nginx -t if successfull then goto next step   reload nginx service  $ sudo systemctl restart nginx  Now Generating Certificate   $ sudo certbot --nginx -d yrsite.com -d www.yrsite.com little  explain command  --nginx  certbot module that configuration with nginx  if your site block match with same name then certbot add certificate key into your server block  -d  domain name - d you can add more sub domain here same domain with DNS Po

LEMP stack 503 bad gateway nginx with 503

Sanjay Tech solutions LEMP Error resolved LEMP stack 503 bad gateway nginx with 503 that means your backed run environment  not working properly  if using php then php service not running  php version missing  php path wrong php not accepting request due to to many process pending     

How to delete Torrent power account

Sanjay Tech solutions 3 easy tips to delete torrent power account  Step 1 : login in to your account Step 2 : click on more profile settings Step 3 : you see red button with deactivate account click then enter your password Your account deactivate 

laravel php artisan migrate Migrating: 2014_10_12_000000_create_users_table Illuminate\Database\QueryException : SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: alter table `users` add unique `users_email_unique`(`email`))

Sanjay Tech solutions php artisan migrate Migrating: 2014_10_12_000000_create_users_table    Illuminate\Database\QueryException  : SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: alter table `users` add unique `users_email_unique`(`email`)) this probles with database drive provider  i have resolved error with 3 solution  solution 1  you need to create database with type "  utf8_unicode_ci   "   solution 2 change in config/database.php file 'charset' => 'utf8mb4' , 'collation' => 'utf8mb4_unicode_ci' , to 'charset' => 'utf8' , 'collation' => 'utf8_unicode_ci' , solution  3 Add following code to your project file   AppServiceProvider.php  (/app/Providers/AppServiceProvider.php) use Illuminate \ Support \ Facades \ Schema ; // NEW : Import Schema function boot (

how to connect aws server file with ubuntu file manger

Sanjay Tech solutions hello techy. i am write here i found some easy solution with ftp access. using a .pem key connect a linux server i am using ubuntu 18.4 sftp connect with *.pem key step 1 : first you need to add that .pem key into ssh $ssh-add /home/user/Desktop/mypem.pem ssh-add then complete pem key path. step 2 : open gnome file manger click on left side connect +other server then you need bottom enter a server path. sftp://ubuntu@ec2-31-__-4__-111.ap-south-5.compute.amazonaws.com/ sftp://user@host or ip then click on connect now you connect with server