# Application Installation

{% hint style="info" %}
**Good to know:** Well, for the easy installation of the software we have created an installer, which will help you to install this project without using any laravel command.
{% endhint %}

## Installation on localhost

* Unzip the script which you have downloaded
* Start your xampp or wampp server
* If you are using xampp please put the extracted file inside **htdocs folder**
* Go to your .env file and set your database, database username, and database password
* Open terminal from your project root folder
* Then run **php artisan serve**
* Go to browser and enter **<http://127.0.0.1:8000/>** or **<http://localhost:8000>**

When you visit the URL for the first time, you have the UI like the something below.

<figure><img src="/files/aZiwwCRlwrPWbq20BkUp" alt=""><figcaption></figcaption></figure>

You just have to click on the next button, and fill in the details which we have asked for.

## Installation on web hosting

* Unzip the script inside the public\_html folder
* Now copy the .htaccess file from the public folder and paste it into the project root folder
* Now remove all the code from your .htacess file and the below code into it.

```
<IfModule mod_rewrite.c>
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^ ^$1 [N]

RewriteCond %{REQUEST_URI} (\.\w+$) [NC]
RewriteRule ^(.*)$ public/$1 

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ server.php
</IfModule>
```

* Now open your .env file and update the below env variable as I have done in the below code example

```
APP_URL= your_app_url
DB_DATABASE=your_db_name
DB_USERNAME=your_db_username
DB_PASSWORD=your_db_password
```

* When you visit your URL you have the image like something below, you just have to click on next and fill in the details which we have asked.

<figure><img src="/files/aZiwwCRlwrPWbq20BkUp" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Note:** If you face any issue regarding the storage issue, which is very rare to occur then in that case please run this command **`chmod -R 775 storage`**
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://code-hunger.gitbook.io/easy-ticket/installation/application-installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
