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