Following this tutorial: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html
I've been stuck trying to install a LAMP web server on putty because the packages appear to be missing!
I'll take you through the steps:-
1) sudo yum update -y
3) sudo yum install -y httpd24 php70 mysql56-server php70-mysqlnd
Then I get the following:-
Loaded plugins: langpacks, priorities, update-motd
No package httpd24 available.
No package php70 available.
No package mysql56-server available.
No package php70-mysqlnd available.
Error: Nothing to do
4) sudo yum repolist all
Loaded plugins: langpacks, priorities, update-motd
repo id repo name status
!amzn2-core/2017.12/x86_64 Amazon Linux 2 core repositor enabled: 7,711
amzn2-core-debuginfo/2017.12/x86_64 Amazon Linux 2 core repositor disabled
amzn2-core-source/2017.12 Amazon Linux 2 core repositor disabled
repolist: 7,711
What am I missing??
Thanks!
You're using an Amazon Linux 2 instance (as shown by the amzn2-core
references in the yum repolist all
output), but trying to use the tutorial for Amazon Linux 1. Try this tutorial instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With