Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Amazon Linux AMI EC2- Missing packages

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!

like image 957
user24529 Avatar asked Apr 24 '18 04:04

user24529


1 Answers

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.

like image 179
Philip Kendall Avatar answered Oct 09 '22 00:10

Philip Kendall