# Installation

* LAMP stack (Linux, Apache, MySQL, PHP)
* NodeJS
* Marscoin node
* Martian Republic source code

![](https://1684214122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX5xQbaIdwVddBAEPydw%2Fuploads%2F4KZ96X3q9YnHJNSikhR9%2Fmartianrepublic_status.png?alt=media\&token=ca8ae978-4aa2-4217-95f7-55a4480960ea)

### Martian Republic: Webserver and backend services

Begin by installing a LAMP stack: <https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-20-04>

Install composer: <https://getcomposer.org/download/>

`git clone repository-link.git`

Use composer to install packages: `composer install`

Set up your apache virtual host to point to your git folder `/public`

Copy marswallet.json.sample to a folder /home/mars/constitution/marswallet.json and set read only permissions.

Make sure to give permissions to `/storage`


---

# 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://marscoin.gitbook.io/marscoin-documentation/martian-republic/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.
