Giter VIP home page Giter VIP logo

dareyio-project2's Introduction

dareyio-project2 LEMP STACK IMPLIMENTATION

  1. clone this repository to linux system
  2. change the working directory to dareyio-project2 (cd dareyio-project2)
  3. change the executeable permission to lemp-script.sh file (chmod +x lemp-script.sh)
  4. run the lemp-script.sh file (./lemp-script.sh)
  5. access the info.php file in the browser (http://yourpublicip/info.php

we have successfully installed php, nginx and mysql now we will create a new user, database and table in mysql

  1. login into mysql using root user (sudo mysql)
  2. create a new database in mysql (CREATE DATABASE project2_database;)
  3. create a new user in mysql (CREATE USER 'project2_user'@'%' IDENTIFIED WITH mysql_native_password BY 'password';)
  4. grant full access to project2_user on database project2_database (GRANT ALL ON project2_database.* TO 'project2_user'@'%';)
  5. exit mysql (exit)
  6. login again into mysql using new user (mysql -u project2_user -p)
  7. enter the password for user
  8. create new table (CREATE TABLE project2_database.todo_list (item_id INT AUTO_INCREMENT,content VARCHAR(255),PRIMARY KEY(item_id));)
  9. insert few recrods into new table (INSERT INTO project2_database.todo_list (content) VALUES ("My first important item");)
  10. access the info.php file in the browser (http://yourpublicip/todo_list.php

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.