How to Install Bagisto on 000Webhost?

9 minutes read

To install Bagisto on 000Webhost, you need to follow these steps:

  1. Log in to your 000Webhost account and access the File Manager.
  2. Click on the "Upload Files Now" button to upload the Bagisto zip file to your server.
  3. After the file is uploaded, right-click on the zip file and select the "Extract" option to extract its contents.
  4. Once the extraction is complete, navigate to the extracted folder and locate the "public_html" directory.
  5. Move all the files and folders from the extracted folder to the "public_html" directory.
  6. Now, you need to create a new MySQL database for Bagisto. To do this, go back to the 000Webhost control panel and click on "Manage database."
  7. In the database management interface, create a new database and remember the database name, username, and password you set.
  8. Next, open the "public_html" directory and locate the ".env.example" file. Right-click on it and select the "Edit" option.
  9. In the ".env.example" file, provide the MySQL database details you obtained earlier. Save the changes and rename the file to ".env".
  10. After renaming the file, go back to the "public_html" directory and find the "install.php" file. Right-click on it and select the "Code Edit" option.
  11. In the "install.php" file, locate the following lines of code: if ($response['success']) { Session::flash('success', 'Now, you need to do something...'); return redirect()->route('install.index'); }
  12. Comment out or delete these lines of code by placing "//" at the beginning of each line.
  13. Save the changes to the "install.php" file and close the code editor.
  14. Finally, open your website in a web browser, and you will be prompted with the Bagisto installation wizard. Follow the on-screen instructions to complete the installation process.


That's it! You have successfully installed Bagisto on 000Webhost.

Top Cloud Hosting Providers of 2024

1
DigitalOcean

Rating is 5 out of 5

DigitalOcean

2
AWS

Rating is 5 out of 5

AWS

3
Vultr

Rating is 4.9 out of 5

Vultr

4
Cloudways

Rating is 4.9 out of 5

Cloudways


How to download the Bagisto installation package?

To download the Bagisto installation package, follow these steps:

  1. Open your web browser and go to the Bagisto website: https://bagisto.com/.
  2. Click on the "Download" button at the top right corner of the page.
  3. On the download page, you will see various options for downloading Bagisto. Choose the package that suits your requirements. For example, you can choose the "Standard" package for a regular installation.
  4. Once you have selected the package, click on the "Download" button to start downloading the installation package.
  5. Depending on your browser settings, the package will be downloaded to your default downloads folder or the location you choose.
  6. Wait for the download to complete and ensure that the package is successfully saved on your computer.


Now you have successfully downloaded the Bagisto installation package. You can proceed with the installation process to set up Bagisto on your web server.


What is the recommended PHP version for running Bagisto on 000Webhost?

The recommended PHP version for running Bagisto on 000Webhost is PHP 7.3 or higher.


How to create product categories in Bagisto on 000Webhost?

To create product categories in Bagisto on 000Webhost, follow these steps:

  1. Login to your 000Webhost account and access the File Manager.
  2. Locate the Bagisto installation directory in the public_html folder. It is typically named after your domain name.
  3. Navigate to the "packages/Webkul/Shop/src" directory.
  4. In this directory, you will find the "Category" folder. Open it and locate the "Http/Controllers" folder.
  5. Inside the "Controllers" folder, create a new PHP file named "CategoryController.php".
  6. Edit the "CategoryController.php" file and add the following code to create a basic category:
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php

namespace Webkul\Shop\Http\Controllers;

use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Webkul\Category\Repositories\CategoryRepository;
use Webkul\Product\Repositories\ProductRepository;

class CategoryController extends Controller
{
    /**
     * CategoryRepository object
     *
     * @var \Webkul\Category\Repositories\CategoryRepository
     */
    protected $categoryRepository;

    /**
     * Create a new controller instance.
     *
     * @param  \Webkul\Category\Repositories\CategoryRepository  $categoryRepository
     * @return void
     */
    public function __construct(CategoryRepository $categoryRepository)
    {
        $this->categoryRepository = $categoryRepository;
    }

    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        $categories = $this->categoryRepository->getVisibleCategoryTree(core()->getCurrentChannel()->root_category_id);

        return view('shop::categories.index', compact('categories'));
    }

    // Add more methods here, depending on your requirements...

}


  1. Save the file.
  2. Next, navigate to the "resources/views/vendor/shop/" directory.
  3. Inside this directory, create a folder named "categories".
  4. Inside the "categories" folder, create a new PHP file named "index.blade.php".
  5. Edit the "index.blade.php" file and add the following code to create a basic view for displaying categories:
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
@extends('shop::layouts.master')

@section('page_title')
    {{ __('shop::app.all-categories.title') }}
@endsection

@section('content-wrapper')
    <div class="bread-crumbs">
        {{ Breadcrumbs::render('categories') }}
    </div>

    <div class="account-content">
        <div class="account-layout">
            <div class="account-head">
                <span class="back-icon"><a href="{{ route('shop.home.index') }}"><i class="icon icon-menu-back"></i></a></span>
                <span class="account-heading">{{ __('shop::app.all-categories.title') }}</span>
            </div>

            <div class="account-items-list">
                @foreach ($categories as $category)
                    <div class="card">
                        <div class="card-header">
                            {{ $category->name }}

                            <span class="card-action">
                                <i class="icon arrow-down-icon active"></i>
                            </span>
                        </div>

                        <div class="card-content">
                            <div class="card-body">
                                @if ($category->children)
                                    <ul class="categories-level-{{ $loop->iteration }}">
                                        @foreach ($category->children as $childCategory)
                                            <li>
                                                <a href="{{ route('shop.categories.index', $childCategory->slug) }}">{{ $childCategory->name }}</a>
                                                @if ($childCategory->children)
                                                    @include ('shop::categories.view', ['categories' => $childCategory->children])
                                                @endif
                                            </li>
                                        @endforeach
                                    </ul>
                                @endif
                            </div>
                        </div>
                    </div>
                @endforeach
            </div>
        </div>
    </div>
@endsection


  1. Save the file.


Now, you have created the necessary files to create product categories in Bagisto on 000Webhost. You can access the category page by visiting your Bagisto store's URL followed by "/categories" (e.g., "yourstore.com/categories").


How to setup cron jobs for scheduled tasks in Bagisto on 000Webhost?

To set up cron jobs for scheduled tasks in Bagisto on 000WebHost, follow these steps:

  1. Log in to your 000WebHost account and go to the cPanel dashboard.
  2. Scroll down to the "Advanced" section and click on the "Cron Jobs" option.
  3. On the Cron Jobs page, you will see the "Add New Cron Job" section.
  4. In the "Command" field, enter the command to run the cron job. The command varies depending on the specific task you want to schedule. For example, if you want to schedule the Bagisto task that updates product prices daily, you can use the following command: php /home/yourcpanelusername/public_html/artisan schedule:run >> /dev/null 2>&1 Make sure to replace "yourcpanelusername" with your actual cPanel username.
  5. Set the frequency at which you want the cron job to run. You can choose from various options like Minute, Hourly, Daily, Weekly, or Monthly. Select the appropriate option based on your needs.
  6. Click on the "Add New Cron Job" button to save the cron job.


The cron job will now be scheduled and will run at the specified frequency. Make sure that your Bagisto installation is properly configured to utilize the cron job functionality.


How to create an account on 000Webhost?

To create an account on 000Webhost, follow these steps:

  1. Open a web browser and go to the 000Webhost website (https://www.000webhost.com/).
  2. Click on the "Get Started for FREE" button on the homepage or click on the "Sign Up" option in the top-right corner.
  3. You can sign up using your Google account, Facebook account, or by providing your email and creating a password. Choose the option that suits you.
  4. If you opt for the email and password option, enter your email address and create a strong password. Make sure to select a secure password to protect your account.
  5. After entering the required information, click on the "Sign Up" button.
  6. You will receive a confirmation email at the provided email address. Open the email, click on the verification link, and complete the verification process to activate your account.
  7. Once your account is verified, you can log in to your 000Webhost account using your email and password.
  8. After logging in, you will be prompted to choose a website building method, either the Website Builder or the WordPress option. Select the option that best fits your requirements.
  9. Follow the on-screen instructions to set up your website or blog and customize it according to your preferences.


Congratulations! You have successfully created an account on 000Webhost.


How to access the Bagisto installation wizard on 000Webhost?

To access the Bagisto installation wizard on 000Webhost, you can follow these steps:

  1. Log in to your 000Webhost account.
  2. In the control panel or dashboard, locate the File Manager section and click on it.
  3. On the file manager page, click on the "Upload Files" button.
  4. Upload the Bagisto installation package (ZIP file) from your local computer to the public_html directory or any other desired directory.
  5. Once the upload is complete, go back to the file manager and choose the directory where you uploaded the installation package.
  6. Extract the ZIP file by selecting it and clicking on the "Extract" button from the toolbar.
  7. After extraction, you should see the Bagisto installation files and folders.
  8. Now, open a new tab in your web browser and visit your website's URL. For example: http://www.yourwebsite.com
  9. The Bagisto installation wizard should appear automatically. Follow the on-screen instructions to proceed with the installation.
  10. Provide the required database details, such as database name, username, and password. If you don't have a database, create one using the MySQL Databases section in your 000Webhost control panel.
  11. Submit the installation form, and Bagisto will start installing on your website.
  12. Once the installation completes, you should see a success message or a link to your Bagisto store's admin panel.
  13. Visit the provided URL or admin panel link to access your Bagisto store's backend.


Note: The specific steps may vary slightly depending on the 000Webhost interface and version you are using. If you encounter any issues or need further assistance, it's recommended to refer to 000Webhost's documentation or contact their support.

Facebook Twitter LinkedIn Whatsapp Pocket

Related Posts:

In this tutorial, we will guide you on how to deploy Bagisto on DreamHost. Bagisto is an open-source eCommerce platform built on the Laravel PHP framework. DreamHost is a popular web hosting service that provides easy deployment options.The first step is to si...
To deploy Bagisto on GoDaddy, follow these steps:First, login to your GoDaddy account and navigate to your web hosting control panel.Look for the &#34;File Manager&#34; option and click on it. This will open the file manager interface.In the file manager, loca...
Launching Bagisto on cloud hosting is a straightforward process that involves a few essential steps. Here is a guide on how to launch Bagisto on cloud hosting:Choose a cloud hosting provider: Before getting started, you need to select a cloud hosting provider ...