Manual Installation (Installing Magento 2 extension by copying code)
For Windows OS:
Go to <your Magento install dir>/app/code. Under that, create the folders using following hierarchy:
For Linux OS:
Enter the following commands while keeping their order:
cd <your Magento install dir>/app/code
mkdir -p Biztech/ Geoip
After this, find the Download Zip and extract all files and folders in the folder you just created Biztech/Geoip.
After the successful installation you have to run the command on Magento 2 root directory:
“php bin/magento setup:upgrade”
If you see a blank page or permission error, go to Terminal (Linux)/Command Prompt(Windows).
cd [magento root directory][var]
run the following command
$ chmod –R 777 *
After running the command, log into the admin panel and clear the Cache. Go to SYSTEM -> Tools (section) -> CACHE MANAGEMENT to clear the cache.
After successful installation, you can see the ‘GeoIP Redirect’ under APPJETTY EXTENSIONS tab inside STORES -> CONFIGURATION.
Installation via Composer
Create a new folder on your preferable server path. Add Extension zip archive into the created folder.
Use Your SSH details to connect to your server. After connecting to the SSH, change your working directory with one of your Magento setup paths using the below command:
Now you have to define the folder with the extension’s archive as a repository for composer reference. For this, run the Composer command:
composer config repositories.biztech artifact /ABSOLUTE_PATH_TO_ZIP_Archive_FOLDER/
composer config repositories.biztech artifact /Packages/Biztech/
After executing this command, it will automatically add Repository Details in composer.json file.
Perform the following command for installation of the module:
composer require biztech/geolocation
After successful installation using the above command you can verify the module status using the below command:
php bin/magento module:status
You can check the newly added module in the List of disabled modules.
Now you can upgrade your setup using the below command.
php bin/magento setup:upgrade
It will enable the module and it should be doing the automated process required by Magento.
You can now compile the modules using the below command.
php bin/magento setup:di:compile
In case if you have to update our extension from a composer you can use the below command:
composer update biztech/geolocation
But before using that command you should have placed the latest Extension zip archive into the /ABSOLUTE_PATH_TO_ZIP_Archive_FOLDER/
After executing the above command your module is updated and now you just have to run the upgrade command same as step 6 and compile command same as step 7.
Once the installation is successful, scroll down to activate the extension.