# Common Installations Errors

On this page, you find the common errors that occur during the local installations of miniCal.

### <mark style="color:blue;">**Q)**</mark><mark style="color:blue;">.</mark> Database installation is stuck?

<img src="/files/yvVHyB8juNv1pHXlxdUL" alt="" data-size="original">

<mark style="color:blue;">**Ans.**</mark> If you are using **Apache serve** then do these configurations.

1. &#x20;check if the rewrite module is enabled.
2. &#x20;set apache2.conf AllowOverride All to your Directory

```
<Directory /var/www/>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>
```

If you are using **Nginx** then do these configurations. Check this link for more details <https://github.com/minical/minical/blob/master/docker/nginx.conf>.

```
        fastcgi_buffers 8 16k;       # default is 8 4k|8k
        fastcgi_buffer_size 32k;     # default is 4k|8k
        fastcgi_connect_timeout 60s; # default is 60s
        fastcgi_send_timeout 300s;   # default is 60s
        fastcgi_read_timeout 300s;   # default is 60s
```

```
location / {
        rewrite ^/api/(.*)$ /api/index.php?/$1 last;
        rewrite ^/public/(.*)$ /public/index.php?/$1 last;
        try_files $uri $uri/ /index.php?/$request_uri;
    }
```

### <mark style="color:blue;">**Q).**</mark>**&#x20;H**ow to publish in apache 'api' point in the virtual host if "minical/public" and "minical/api" in the same directory?

<mark style="color:blue;">**Ans.**</mark>  For virtual host configuration, you can create two separate virtual hosts for Apache, something like this:

```
<VirtualHost *:80>
    DocumentRoot /var/www/html/minical/app/api/
    ServerName api.your-server.com
    CustomLog /usr/local/apache/logs/minical.io.access combined
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot /var/www/html/minical/app/public/
    ServerName app.your-server.com
    CustomLog /usr/local/apache/logs/minical.io.access combined
</VirtualHost>
```

### <mark style="color:blue;">**Q).**</mark> How to add extensions on local setup?

<mark style="color:blue;">**Ans.**</mark> You can download a few Open source extensions here <https://docs.minical.io/build-an-extension/open-source-extensions> Put them in your local extensions directory located at "/minical/public/application/extensions/".

### <mark style="color:blue;">**Q).**</mark> SMTP settings and AWS keys are mandatory before DB installation?

<mark style="color:blue;">**Ans.**</mark> No, these are not mandatory.


---

# 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://docs.minical.io/local-installation/common-installations-errors.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.
