Skip to content
Advertisement

How can I not run this command ‘sudo amazon-linux-extras install -y lamp-mariadb10.2-php7.2 php7.2’?

I am following this tutorial: https://aws.amazon.com/getting-started/hands-on/deploy-wordpress-with-amazon-rds/?refid=dd707452-50b0-4e41-9f2b-d84c7ca273d4 in an attempt to create my own wordpress server on ec2 / rds of AWS.

However, I DO NOT want to run this line

JavaScript

because wordpress does not like php7.2. This is my second time through, and the first thing I found was that I needed to upgrade php, which does not seem possible once this is installed. I could not find any way to remove this package once installed, either. But, I can’t find any “updated” way of doing this. I ended up having to blow everything away and start over.

How do I get httpd to run wordpress without this?

EDIT: The package shown shows after it is installed that it has reached end of support life.

Advertisement

Answer

To launch wordpress on amazon AWS ec2:

  1. Launch the instance (ubuntu), generate key pair
  2. Open ssh terminal and run following commands
JavaScript
  1. let’s say your domain is sarojshrestha.com Next, you need to run following commands to map a domain to /var/www/html
JavaScript
  1. Next, enable this one.
JavaScript

Now, hit sarojshrestha.com on browser, you should see WordPress setup view. Replace, sarojshrestha.com with your actual domain.

By the way, to install, you might need to change the permission of /var/www/html folder. You can let me know if you find any issues.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement