đī¸Website Dynamic With PHP and MySQL Database
Introduction
PHP
PHP is a programming language that is commonly used in creating and developing websites. In fact, as reported by PHP.net, PHP is an abbreviation of PHP: Hypertext Preprocessor. According to the site, PHP is a widely used programming language and is especially suited to web development.
MySQL Database
MySQL is a relational database management system that uses SQL to carry out its functions. The main function of SQL is to create queries and operate database systems. MySQL allows analysts to handle, store, modify, delete and store data neatly.
Configuration EC2 Instance
SSH to Bastion Host
Use GitBash
Jump SSH to WebServer
Install Package
Exit From WebServer
Jump SSH to DBInstance
Install Package
Create Database
mysql -u root -p
Edit Database
nano /etc/mysql/mariadb.conf.d/50-server.cnf
Restart mysql Service
Back to SSH WebServer
Delete file public_html
Clone repository github
Import Database From DBInstance
Check For Database
Edit File Connection PHP
nano function/connection.php
Restart Apache2 Service
Configuration is Complete
Open Browser
Create Contact
Check Database
Check database from EC2 WebServer
Last updated