# Deploy NGINX + PHP + MariaDB on RaspberryPi

**URL:** <https://forums.balena.io/t/deploy-nginx-php-mariadb-on-raspberrypi/15250>\
**Category:** Product support\
**Tags:** raspberrypi3\
**Created:** [June 12, 2019, 4:15pm UTC](https://forums.balena.io/t/deploy-nginx-php-mariadb-on-raspberrypi/15250 "2019-06-12T16:15:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rgabriel](https://avatars.discourse-cdn.com/v4/letter/r/91b2a8/32.png) [@rgabriel](https://forums.balena.io/u/rgabriel)\
**Post date:** [June 12, 2019, 4:15pm UTC](https://forums.balena.io/t/deploy-nginx-php-mariadb-on-raspberrypi/15250/1 "2019-06-12T16:15:05Z")

</div>

Hi,

I would like to deploy a web application on a php web server with a MariaDB database.

When I use the basic images (ex: mariadb:latest) within a docker-compose file, I get the following message: `standard_init_linux.go:195: exec user process caused "exec format error"` in the Balena cloud interface.

Can someone tell me how to deploy a web server on Raspberry Pi with Balena ?

Thank you in advance

---

<div class="post-metadata">

**Author:** ![shaunmulligan](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/shaunmulligan/32/34_2.png) [@shaunmulligan](https://forums.balena.io/u/shaunmulligan)\
**Post date:** [June 12, 2019, 4:50pm UTC](https://forums.balena.io/t/deploy-nginx-php-mariadb-on-raspberrypi/15250/2 "2019-06-12T16:50:53Z")

</div>

Hi @rgabriel , the `"exec format error"` means that the docker engine is trying to run a binary that does not match the CPU architecture of the device. On a RPI3 you need to run armv6 or armv7 contianers, but the `mariadb:latest` image will default to intel `x86` what you probably can do to get around this is use an image like this [https://hub.docker.com/r/lsioarmhf/mariadb/tags](https://hub.docker.com/r/lsioarmhf/mariadb/tags)

---

<div class="post-metadata">

**Author:** ![rgabriel](https://avatars.discourse-cdn.com/v4/letter/r/91b2a8/32.png) [@rgabriel](https://forums.balena.io/u/rgabriel)\
**Post date:** [June 13, 2019, 6:16am UTC](https://forums.balena.io/t/deploy-nginx-php-mariadb-on-raspberrypi/15250/5 "2019-06-13T06:16:00Z")

</div>

Thank you for your answer.

I made a new docker compose file with images for arm. PHP and MariaDB run perfectly but nginx

```
13.06.19 08:07:37 (+0200) Installing service 'nginx sha256:b0bdad61311e6cc2e6ea61c1936acc91f838cf9702d5f7f7514fc9a64668dd38'
13.06.19 08:07:37 (+0200) Installed service 'nginx sha256:b0bdad61311e6cc2e6ea61c1936acc91f838cf9702d5f7f7514fc9a64668dd38'
13.06.19 08:07:37 (+0200) Starting service 'nginx sha256:b0bdad61311e6cc2e6ea61c1936acc91f838cf9702d5f7f7514fc9a64668dd38'
13.06.19 08:07:40 (+0200) Started service 'nginx sha256:b0bdad61311e6cc2e6ea61c1936acc91f838cf9702d5f7f7514fc9a64668dd38'
13.06.19 08:07:41 (+0200) Service exited 'nginx sha256:b0bdad61311e6cc2e6ea61c1936acc91f838cf9702d5f7f7514fc9a64668dd38'
13.06.19 08:07:42 (+0200) Killing service 'nginx sha256:b0bdad61311e6cc2e6ea61c1936acc91f838cf9702d5f7f7514fc9a64668dd38'
13.06.19 08:07:44 (+0200) Restarting service 'nginx sha256:b0bdad61311e6cc2e6ea61c1936acc91f838cf9702d5f7f7514fc9a64668dd38'
13.06.19 08:07:45 (+0200) Service exited 'nginx sha256:b0bdad61311e6cc2e6ea61c1936acc91f838cf9702d5f7f7514fc9a64668dd38'
13.06.19 08:07:45 (+0200) Killed service 'nginx sha256:b0bdad61311e6cc2e6ea61c1936acc91f838cf9702d5f7f7514fc9a64668dd38'
```
