Learn to Deploy a PHP Application using Amazon EC2 Instance

Learn about the Deployment of Web application using AWS

Amazon EC2 allows individuals to deploy various applications. Using Amazon EC2, you can launch as many or as few virtual servers as per the given circumstances. Hence, in this blog, I will be discussing on deploying a PHP application using Amazon EC2 instance.

What are the pre requisitions before you go through this blog?

Before you dive into this blog, please make sure that you have created your own Amazon EC2 instance and be connected to it to view the stepwise procedure for deploying a PHP application. Adding to that, you should also have your PHP application in the GitHub repository. Likewise, familiarity with the Linux environment can help to provide a better understanding of the blog content. However, I will further elaborate on all the required Linux commands.

Note: If you have not created your Amazon EC2 instance yet, you can go through my previous blog on the stepwise procedure for creating an Amazon EC2 instance and connecting to the Amazon EC2 instance with the link provided below.

Note: If you are willing to connect to your Amazon EC2 using PuTTy, you can open the link provided below.

_ Note: You should also have your PHP application in your GitHub repository. So, if you have not created your PHP application, then for the demo, you might as well use the application provided in the GitHub repository below._

#amazon #aws #amazon-web-services #amazon-ec2 #web-applications

What is GEEK

Buddha Community

Learn to Deploy a PHP Application using Amazon EC2 Instance

Learn to Deploy a PHP Application using Amazon EC2 Instance

Learn about the Deployment of Web application using AWS

Amazon EC2 allows individuals to deploy various applications. Using Amazon EC2, you can launch as many or as few virtual servers as per the given circumstances. Hence, in this blog, I will be discussing on deploying a PHP application using Amazon EC2 instance.

What are the pre requisitions before you go through this blog?

Before you dive into this blog, please make sure that you have created your own Amazon EC2 instance and be connected to it to view the stepwise procedure for deploying a PHP application. Adding to that, you should also have your PHP application in the GitHub repository. Likewise, familiarity with the Linux environment can help to provide a better understanding of the blog content. However, I will further elaborate on all the required Linux commands.

Note: If you have not created your Amazon EC2 instance yet, you can go through my previous blog on the stepwise procedure for creating an Amazon EC2 instance and connecting to the Amazon EC2 instance with the link provided below.

Note: If you are willing to connect to your Amazon EC2 using PuTTy, you can open the link provided below.

_ Note: You should also have your PHP application in your GitHub repository. So, if you have not created your PHP application, then for the demo, you might as well use the application provided in the GitHub repository below._

#amazon #aws #amazon-web-services #amazon-ec2 #web-applications

Christa  Stehr

Christa Stehr

1595288376

How to use highchart in php with example

Highchart provides feature to draw different type of charts in our web application. Here, in this example i will let you know that how to use highchart in php application.

In this example, we will create chart using php and mysql. Actually highchart provides javascript library to create charts. We will only need to implement that library in our application.

We will need some data to generate chart, so here we will use mysql database and database query to fetch data from database.

So basucally here we will leran to implement simple dynamic column chart using highcharts library in php and ofcourse will use mysql database.

For for that, first thing we will need to create a database and tables where we will put some data. So for full example let’s follow the steps as given below.

Step 1: Create Database

Here for example, i will create a database named shopping and under this database we will need to create some tables, here i will create only two table one is to stroe customers information and another to store orders.

So run the following query in your query window.

Create customers table

CREATE TABLE IF NOT EXISTS `customers` (

  `id` int(11) NOT NULL AUTO_INCREMENT,

  `name` varchar(30) NOT NULL,

  `email` varchar(30) NOT NULL,

  `phone` varchar(15) NOT NULL,

  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,

  PRIMARY KEY (`id`)

) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=10 ;

Now you will to put some data into these two tables. You can put any data accoring to the column and your need. After putting data we can be able to show the chart according the the data.

Step 2: Create database configuration

Now we will need to create configuration file. So let’s create a new db configuration file **db_config.php **and put the following code into this file.

db_config.php

<?php
  $dbHost = "localhost";
  $dbDatabase = "shopping";
  $dbUser = "root";
        $dbPassword = ""; 

  $mysqli = mysqli_connect($dbHost, $dbUser, $dbPasswrod, $dbDatabase);
?>

#php #create highchart in php #generate highchart in php #high chart using php and mysql example #highchart example #how to implement high chart in php #how to use highchart

Rory  West

Rory West

1621745280

Create EC2 instance from AWS Console

What is EC2 Instance?

Secure and resizable compute capacity in the cloud.

Amazon Elastic Compute Cloud ( Amazon EC2) is a web service that provides secure, resizable compute capacity in the cloud. It is designed to make web-scale cloud computing easier for developers.

In this article let us see how to create On-demand EC2 instance from Console.

#create-ec2-instance #aws-ec2-instance #ec2-instance #amazon-web-services #aws

I am Developer

1597487472

Country State City Dropdown list in PHP MySQL PHP

Here, i will show you how to populate country state city in dropdown list in php mysql using ajax.

Country State City Dropdown List in PHP using Ajax

You can use the below given steps to retrieve and display country, state and city in dropdown list in PHP MySQL database using jQuery ajax onchange:

  • Step 1: Create Country State City Table
  • Step 2: Insert Data Into Country State City Table
  • Step 3: Create DB Connection PHP File
  • Step 4: Create Html Form For Display Country, State and City Dropdown
  • Step 5: Get States by Selected Country from MySQL Database in Dropdown List using PHP script
  • Step 6: Get Cities by Selected State from MySQL Database in DropDown List using PHP script

https://www.tutsmake.com/country-state-city-database-in-mysql-php-ajax/

#country state city drop down list in php mysql #country state city database in mysql php #country state city drop down list using ajax in php #country state city drop down list using ajax in php demo #country state city drop down list using ajax php example #country state city drop down list in php mysql ajax

I am Developer

1599190536

How to Store Form Data in Database using PHP -2020

In this php code to insert form data into mysql database. I will show you simple way of how to create an html form that stores data in a mysql database using php.

#How to store form data in database using php

  1. Create html form
  2. Create mysql database connection file
  3. Create php file to insert form data into mysql database

https://www.tutsmake.com/php-code-insert-data-into-mysql-database-from-form/

#php code for inserting data into database from form #how to insert data in mysql using php form #how to insert data into database in php using xampp #how to save data from html form to a database using php #how to save data in database on button click in php