> For the complete documentation index, see [llms.txt](https://marscoin.gitbook.io/marscoin-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://marscoin.gitbook.io/marscoin-documentation/martian-republic/installation.md).

# Installation

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

![](/files/pe1ZtDhpQ6ieVHYe2qRL)

### 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`
