Category Archives: Magento

Magento is an open-source e-commerce platform written in PHP, renowned for its flexibility, scalability, and robust feature set. It provides online merchants with a comprehensive suite of tools to manage their online stores effectively. Magento offers both a free Community Edition and a paid Enterprise Edition, catering to businesses of all sizes.

How to Install Magento on windows host

Let follow below post, how to install Magento 2.4 locally on Windows using XAMPP server. This tutorial is targeted on current Magento 2.4 users and also users who are completely new to Magento. Now, let’s get started! Part 1: Install and configure XAMPP Step 1: Download XAMPP Download link: https://www.apachefriends.org/download.html We recommend installing XAMPP with PHP… Read More »

How to create own custom API in Magento 2

The REST API documentation published on the Magento 2 Developer Documentation website describes the REST APIs that are available on the latest release of Magento 2.  This documentation is generated from the code base using Swagger and represents the state of the code at the time the documentation was generated. Swagger displays a list of service names. Click on a service… Read More »

How to install magento2 extension

There are multiple ways to install our shipping extension. All installation and user guide available in downloaded folder. Follow below steps to install the magento 2 shipping extension in your server. You have to create auth.json file with your access key with same marketplace account. See auth.json file format below. You need to copy in… Read More »

how to block requests with specific string using .htaccess in apache

These days common problem of hacking of website by hacker with scrips. They always use some common method or string to hack it. Now you can prevent these requests by adding some simple .htaccess rules. You could send a 403 Forbidden (access denied) in case -admin is requested : RewriteEngine On RewriteCond %{REQUEST_URI} ^/(.*?)admin RewriteRule ^(.*)$ – [F,L]  … Read More »

How to redirect non www or non https url to www and https

This is very common problem to everyone to redirect non www urls to www with https. You can follow simple .htaccess rules to implement it. RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^(.*)$ https://www.example.com/$1 [L,R=301] RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://www.example.com/$1 [L,R=301] The only real difference here is that first we redirect from non-WWW to… Read More »

WHM cpanel magento 2 php cli command error

If you saw error php-cli: command not found when running magento command php bin/magento, then you need to run following commands. To fix this error, you need to enable php cli mode. Run following command source /opt/cpanel/ea-php72/enable based on your php version. It will solve your problem. but it will come again when you will… Read More »