To install Bagisto on 000Webhost, you need to follow these steps:
- Log in to your 000Webhost account and access the File Manager.
- Click on the "Upload Files Now" button to upload the Bagisto zip file to your server.
- After the file is uploaded, right-click on the zip file and select the "Extract" option to extract its contents.
- Once the extraction is complete, navigate to the extracted folder and locate the "public_html" directory.
- Move all the files and folders from the extracted folder to the "public_html" directory.
- 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."
- In the database management interface, create a new database and remember the database name, username, and password you set.
- Next, open the "public_html" directory and locate the ".env.example" file. Right-click on it and select the "Edit" option.
- In the ".env.example" file, provide the MySQL database details you obtained earlier. Save the changes and rename the file to ".env".
- 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.
- 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'); }
- Comment out or delete these lines of code by placing "//" at the beginning of each line.
- Save the changes to the "install.php" file and close the code editor.
- 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.
How to download the Bagisto installation package?
To download the Bagisto installation package, follow these steps:
- Open your web browser and go to the Bagisto website: https://bagisto.com/.
- Click on the "Download" button at the top right corner of the page.
- 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.
- Once you have selected the package, click on the "Download" button to start downloading the installation package.
- Depending on your browser settings, the package will be downloaded to your default downloads folder or the location you choose.
- 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:
- Login to your 000Webhost account and access the File Manager.
- Locate the Bagisto installation directory in the public_html folder. It is typically named after your domain name.
- Navigate to the "packages/Webkul/Shop/src" directory.
- In this directory, you will find the "Category" folder. Open it and locate the "Http/Controllers" folder.
- Inside the "Controllers" folder, create a new PHP file named "CategoryController.php".
- Edit the "CategoryController.php" file and add the following code to create a basic category: