Coder Social home page Coder Social logo

todo-php's Introduction

Simple LAMP stack To Do List

This application is designed to be part of various Amazon Lightsail workshops. This respository includes the PHP front end which needs to be paired with a MySQL 5.7 database.

The parameters for the database connectivity (hostname, username, password) are stores in a file called config.php. This file must be located in the configs directory one level above your HTML document root directory. Additionally make sure the permissions on the configs directory are set correctly (e.g. set the owner to be the account that your web server runs under).

If you are using a Lightsail LAMP instance, the following instructions will take care of everything you need.

  • These instructions assume you deleted any existing files under /opt/bitnami/apache2/htdocs and cloned this repo there e.g.

      cd /opt/bitnami/apache2/htdocs && \
      rm -rf && \
      git clone https://github.com/mikegcoleman/todo-php .
    
  • Create the configs directory and make the bitnami user the owner.

      sudo mkdir /opt/bitnami/apache2/configs && \
      sudo chown bitnami:bitnami /opt/bitnami/apache2/configs
    
  • Move the config file into the configuaration directory

      sudo mv /opt/bitnami/apache2/htdocs/config.php /opt/bitnami/apache2/configs/config.php
    

You can then edit the config.php file to reflect the appropriate username, password, and hostname

todo-php's People

Contributors

mikegcoleman avatar

Watchers

James Cloos 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.