Coder Social home page Coder Social logo

ansible-lemp-for-raspberry-pi's Introduction

Ansible Raspberry PI LAMP

This Ansible role will install the following on your Raspberry PI device(s):

  • git
  • composer
  • mysql 5.5
  • php-fpm 7.1
    • mcrypt
    • dom
    • curl
    • json
    • sqlite
  • nginx

And adds your public key(s). You can run a Laravel installation on your Raspberry PI with this setup. This is tested on the model 2 and Zero W. Other versions should work also.

Prerequisites

  • Raspberry PI
  • A fresh Raspbian installation
  • SSH access

How to run

Change your hosts:

Edit hosts. Make sure to changed the IP-address and the hostname.

Change the Github profile:

Edit group_vars/all and change the used Github profile. Make sure you have added a public key to your Github account.

Execute the command:

ansible-playbook site.yml -i hosts

Warning: The first run

If you did not yet added your SSH key, you should add --ask-pass to the command:

ansible-playbook site.yml -i hosts --ask-pass

Check if it all works

If all commands are completed, there is a phpinfo.php file created. You can check this by visiting http://your.host.ip.address/phpinfo.php.

mysql

The pi user has an .my.cnf file which logs you in automatically by running mysql from the command line. The default user is mysql, without an password. Creating a database is as simple as:

mysql -e "create database if not exists DATABASENAME;"

ansible-lemp-for-raspberry-pi's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.