Tutorial: Deploy Bagisto on Hostinger?

10 minutes read

Deploying Bagisto on Hostinger requires several steps, which are as follows:

  1. Acquire a Hostinger account: Sign up for a Hostinger account if you don't have one. Hostinger provides shared hosting plans that you can choose from.
  2. Set up your domain: After obtaining a Hostinger account, set up your domain name to link it with your hosting account. You can either purchase a new domain or use an existing one.
  3. Access the control panel: Log in to your Hostinger account and access the control panel, commonly known as hPanel.
  4. Create a MySQL database: Look for the "MySQL Databases" section in hPanel. Create a new database and remember the database name, username, and password as you'll need them later during the Bagisto installation process.
  5. Upload Bagisto files: Download the Bagisto project files from the official Bagisto website. Extract the downloaded .zip file and upload the files to your Hostinger account. You can use an FTP client or the hPanel's built-in File Manager for this task.
  6. Configure the .env file: Once the files are uploaded, locate the .env.example file in the Bagisto project folder. Copy and paste this file, and rename it to .env. Open the .env file and update the database related fields with the database name, username, and password obtained in step 4.
  7. Install Composer dependencies: In hPanel, navigate to the File Manager and access the Bagisto project folder. Select all the files and click on "More" to find the Terminal option. Open the Terminal and run the following command: composer install. This command will install all the required dependencies for Bagisto.
  8. Generate an application key: With the Terminal still open, run the following command: php artisan key:generate. This command will generate a unique application key required for Bagisto to function correctly.
  9. Run the migration and seed commands: Now, execute the following commands, one after the other, in the Terminal:
php artisan migrate
php artisan db:seed

These commands will migrate the necessary database tables and seed the database with basic data.

  1. Set up domain mapping and SSL certificate: Go back to hPanel and find the "Domains" section. Add your domain and make sure to map it correctly to the Bagisto project folder. Additionally, enable the free SSL certificate provided by Hostinger to ensure secure browsing.
  2. Access Bagisto: After completing all the steps, you should be able to access your Bagisto store by visiting your domain in a web browser.

That's it! You have successfully deployed Bagisto on Hostinger.

Best Cloud Hosting Providers of 2024


Rating is 5 out of 5



Rating is 4.9 out of 5



Rating is 4.8 out of 5



Rating is 4.6 out of 5


How to create discount coupons in Bagisto on Hostinger?

To create discount coupons in Bagisto on Hostinger, you can follow these steps:

  1. Access the Bagisto admin panel by visiting the URL of your Bagisto installation, for example: "yourdomain.com/admin".
  2. Login to the admin panel using your credentials.
  3. Once logged in, navigate to the "Marketing" menu located on the left-hand side of the screen.
  4. From the drop-down options, click on "Promotions" and then select "Catalog Price Rule."
  5. On the "Catalog Price Rule" page, click on the "Add Catalog Rule" button.
  6. Fill in the necessary details such as rule name, description, customer groups, coupon code, and validity dates.
  7. Under the "Conditions" tab, you can set specific conditions for applying the discount coupon such as product attributes, categories, etc.
  8. Under the "Actions" tab, configure the discount type (percentage or fixed), the amount or percentage of discount, and any additional options.
  9. After setting the conditions and actions, click on the "Save" button to create the coupon.
  10. Once created, the coupon code can be shared with customers to avail the discount during the checkout process.

Remember to test the coupon code to ensure it works as intended on your Bagisto store.

How to backup Bagisto on Hostinger?

To backup Bagisto on Hostinger, you can follow these steps:

  1. Log in to your Hostinger account and go to the control panel.
  2. Navigate to the Files section and click on File Manager.
  3. Locate the Bagisto installation folder. It is usually found in the public_html directory.
  4. Select all the files and folders related to Bagisto and compress them into a zip file. You can do this by right-clicking on the selected files and choosing the "Compress" or "Zip" option.
  5. After the zip file is created, download it to your local computer by right-clicking on it and selecting the "Download" option.
  6. Additionally, you can also back up the Bagisto database. To do this, go back to the Hostinger control panel and navigate to the Databases section.
  7. Find the database associated with your Bagisto installation and click on it.
  8. Once inside the database management interface, look for the Export option and click on it.
  9. Choose the option to export the database as a SQL file and click on the "Go" or "Export" button.
  10. Download the SQL file to your local computer by saving it.

By following these steps, you can backup your Bagisto files and database on Hostinger. Ensure that you store the backup files in a safe location for future use.

How to add new products in Bagisto on Hostinger?

To add new products in Bagisto on Hostinger, you can follow these steps:

  1. Login to your Hostinger account and go to the control panel.
  2. Navigate to the File Manager under the Files section.
  3. Locate the directory where your Bagisto installation is located. Typically, it will be in the public_html directory.
  4. Once you have found the Bagisto directory, navigate to packages/Webkul/Product/src/Http/Controllers/Admin/ folder.
  5. In that folder, open the ProductController.php file for editing.
  6. Look for the create() method in the file and add the code to handle the creation of new products. You can refer to the Bagisto documentation for proper syntax and usage.
  7. Save the changes made to the ProductController.php file.
  8. Now, go to your Bagisto admin dashboard by accessing the URL of your Bagisto installation.
  9. Login with your admin credentials.
  10. In the admin dashboard, navigate to the Catalog -> Products section.
  11. Click on the "Add Product" button to add a new product.
  12. Fill in the necessary details for the new product, such as name, price, description, etc.
  13. Select the appropriate categories and attributes for the product.
  14. Upload product images, if required.
  15. Once you have filled in all the details, click on the "Save" button to add the new product.

That's it! The new product should now be added to Bagisto on Hostinger. You can verify by checking the front-end of your website.

How to choose the right hosting package on Hostinger?

To choose the right hosting package on Hostinger, follow these steps:

  1. Assess your needs: Determine the purpose of your website, its expected traffic, storage space requirements, and any specific features or applications you may require.
  2. Visit Hostinger's website: Go to Hostinger's website and click on "Hosting" in the top menu.
  3. Explore hosting options: Hostinger offers various types of hosting, including Shared Hosting, VPS Hosting, Cloud Hosting, and WordPress Hosting. Each type has different features and pricing.
  4. Select the type of hosting you need: Consider your needs and budget to choose the appropriate hosting type. If you are just starting and have a limited budget, Shared Hosting might be a good option. If you need more resources, consider VPS or Cloud Hosting.
  5. Compare hosting packages: Under each hosting type, Hostinger offers different packages with varying features and resource allocations. Compare them based on your needs, such as storage space, bandwidth, number of websites, databases, email accounts, etc.
  6. Consider additional features: Hostinger provides additional features like SSL certificates, website builders, daily backups, advanced security, etc. Check if any of these features are essential for your website and select accordingly.
  7. Read customer reviews: Look for customer reviews and ratings of Hostinger's hosting packages to get insights into the experiences of other users. This can help you assess reliability and performance.
  8. Decide on billing cycle: Determine whether you want to pay monthly or opt for a longer-term plan. Hostinger often provides discounts on longer-term plans, so consider the pricing factor as well.
  9. Finalize your selection: Based on your needs, budget, reviews, and features, choose the hosting package that best matches your requirements.
  10. Complete the purchase: Click on the "Get Started" or "Buy Now" button to proceed with the purchase. Fill in your account details, select any additional services, and make the payment.

Remember, if you are uncertain or have any questions, Hostinger's customer support is available to assist you in choosing the right hosting package for your needs.

How to deploy Bagisto on Hostinger?

To deploy Bagisto on Hostinger, you can follow the steps below:

  1. Sign in to your Hostinger account and go to the control panel.
  2. Navigate to the "Hosting" section and click on "Auto Installer".
  3. In the auto-installer, search for "Bagisto" and select it.
  4. Select the domain or subdomain where you want to install Bagisto and click on "Install".
  5. Wait for the installation process to complete. Once done, you will be provided with the admin panel login details.
  6. Access your Bagisto admin panel by navigating to your domain/subdomain followed by "/admin" (e.g., "yourdomain.com/admin").
  7. Login using the admin panel credentials provided during the installation.
  8. Set up your store by configuring settings, adding products, and customizing the appearance.
  9. You can also install additional extensions or themes from the Bagisto marketplace to enhance your store's functionality and design.
  10. Once you have finished setting up your store, you can start adding products, managing orders, and promoting your online business.

Note: Make sure your hosting plan meets the minimum system requirements for running Bagisto. Additionally, it's advisable to take regular backups of your website to prevent data loss.

Facebook Twitter LinkedIn Whatsapp Pocket

Related Posts:

Deploying ElasticSearch on Hostinger is a process that involves setting up and configuring the ElasticSearch engine on a hosting provider such as Hostinger. ElasticSearch is a powerful search and analytics engine that allows you to store, search, and analyze l...
ElasticSearch is a powerful and scalable search engine that enables efficient storage, indexing, and searching of data. Hostinger is a popular web hosting provider that offers a user-friendly interface and affordable plans. This tutorial will guide you through...
Bagisto is a popular open-source e-commerce platform that is highly flexible and customizable. It allows you to create feature-rich online stores with ease. When it comes to deployment, you have several options for deploying Bagisto based on your requirements ...