---
# System prepended metadata

title: Walkthrough ARK Explorer setup

---

---
title: 'Walkthrough ARK Explorer setup'
disqus: hackmd
---

Walkthrough ARK Explorer setup
===

This walkthrough assumes the following are already installed: 

1. Ubuntu 20.04
2. PHP8 (`add-apt-repository ppa:ondrej/php`)
3. Apache2 (`add-apt-repository ppa:ondrej/apache2`)
4. Redis
5. composer (https://getcomposer.org/download/)
6. ARK Core (https://ark.dev/docs/core/installation/script)
7. yarn

TL;DR version
---

```
apt install jq php8.0-{bcmath,bz2,intl,gd,mbstring,zip,gmp,dom,curl,sqlite3,redis,pgsql} -y

git clone https://github.com/ArkEcosystem/explorer.git
cd explorer

composer install --ignore-platform-reqs --optimize-autoloader
yarn install

cp .env.prod .env
# edit .env file and change the EXPLORER_ variables to suit your needs.

touch database/database.sqlite

# assumming apache2 runs under default uid:gid
chown -R www-data: database/

php artisan key:generate
php artisan migrate:fresh
php artisan storage:link

php artisan explorer:cache-network-aggregates
php artisan explorer:cache-fees
php artisan explorer:cache-transactions
php artisan explorer:cache-prices
php artisan explorer:cache-currencies-data
php artisan explorer:cache-currencies-history --no-delay
php artisan explorer:cache-delegate-aggregates
php artisan explorer:cache-delegate-performance
php artisan explorer:cache-delegate-productivity
php artisan explorer:cache-delegate-resignation-ids
php artisan explorer:cache-delegate-usernames
php artisan explorer:cache-delegate-wallets
php artisan explorer:cache-delegates-with-voters
php artisan explorer:cache-delegate-voter-counts
php artisan explorer:cache-multi-signature-addresses

php artisan serve --host=0.0.0.0 --port=8000

# Visit IP:8000
```