Hello Amazing people 👋 Here's a beginner friendly project to get-started with public cloud services
Some prerequisities: Basic Understanding of linux commands, networking and cloud
Let's get started
Phase1: Linux Server setup on AWS
- Login
AWS portal
-> Go toEC2 services
->Launch an instance
- Select instance AMI
Red Hat Linux 8
orRocky Linux 8
- Create a new security group to allow
HTTP
,HTTPS
&SSH
- Create a
key-pair
-> Launch the instance - Connect instance with
ssh
using local terminal
ssh -i <key-pair.pem file> ec2-user@<instance public ipv4 address>
Phase2: Apache Server setup
- Connect instance with ssh
- Install the
apache server
withdnf
package manager command
sudo dnf install httpd -y && sudo systemctl start httpd
- Go to the public IPv4 address to view the apache server
Phase3: Database Server setup
- Install the latest
mariadb database server
setup withdnf
package manager command
sudo dnf install mariadb-server -y
- Start the server
sudo systemctl start mariadb && mysql_secure_installation
- Log in mysql database and check the databases to ensure database setup
Phase 4: PHP Server Module
- Enable the
php module
and install withdnf
package manager command
sudo dnf module enable php:7.4 && sudo dnf install php
- Start
php-fpm
module to optimize and restart to apply changes
sudo systemctl start php-fpm && sudo systemctl restart httpd php-fpm
- Go to /phpinfo.php to ensure php module installation. If you are not able to view phpinfo webpage, ensure the file is in the correct directory, or create one with terminal
Completion
That's it, the LAMP Server is up and running!🥳
If you want to have a more detailed step-by-step procedure, please checkout my Github page or feel free to to reach out on Twitter.
Top comments (0)