Need to install LAMP on AWS.EC2.Ubuntu.t2.micro

curiouswebster
curiouswebster used Ask the Experts™
on
Need to install LAMP on AWS.EC2.Ubuntu.t2.micro

I can now successfully SSH into my Ubuntu server and find my folder,

/home/ubuntu

is totally empty.

I consider this a good thing.

True?

I need to install LAMP and then WordPress. (I want MySQL since I have no experience with Maria.)

Please explain the sequence of installations and the commands I need to issue.  Also, if I need to download a file, please provide me the URL.

I already have PHPMyAdmin on my MacBook, but let's worry later about reconfiguring my Mac. Instead, please tell me how to verify each element was installed properly.

Then, once we are all convinced my little AWS Ubuntu host is hosting WordPress, the fun begins and the question on EE will start flying.

Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
IT Solutions Provider
Commented:
Hi Webster,
There's a nifty little guide here:

https://medium.com/@jangid.hitesh2112/how-to-install-lamp-stack-on-ubuntu-db77ac018116

Then all you need to do is create the database in MySQL and add the WordPress files in /var/www/html and you're good to go :)

I'll also find a ssl quide for you too!
Kenza CohenIT Solutions Provider
Commented:
The /home/ubuntu is just your home folder and pretty much irrelavent at this stage.

Use su root before following that guide by the way :)
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

David FavorFractional CTO
Distinguished Expert 2018
Commented:
1) /home/ubuntu - owned by the ubuntu user, as Kenza mentioned, this is irrelevant.

2) I need to install LAMP and then WordPress.

Your first step is sudo bash followed by various apt-get install equivalent commands, for various LAMP packages required to be installed.,

3) I want MySQL since I have no experience with Maria.

This may not be possible, as many Distros no longer provide MySQL packages (because MariaDB tends to work better).

Whether or not you can even install MySQL... Refer to your package repository...

My preference is to use the MariaDB curl installer to setup latest MariaDB repositories, which will be something like this...

curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --skip-maxscale

apt-get install mariadb-server-10.4 mariadb-client-10.4 libmariadb-dev-compat

Open in new window


Again, you'll use your Distro's equivalent to apt-get install.

4) I already have PHPMyAdmin on my MacBook...

Having any code running on your local machine will have no effect or interaction with a public server, like AWS... unless...

You somehow connect your local machine to your AWS instance some way... which is far beyond the scope of this question...
David FavorFractional CTO
Distinguished Expert 2018
Commented:
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-software.html provides one walk through.

If you install some instance running another Distro - Debian/Ubuntu, Alpine, SUSE - they all have different package managers.

You'll use the package manager supported by the Distro you're using.
curiouswebsterSoftware Engineer

Author

Commented:
How do I find (on AWS) which distro I am using?
Kenza CohenIT Solutions Provider
Commented:
It should say on amazon or you could do lsb_release -a from command line
Prabhin MPDevOps Engineer
Distinguished Expert 2018
Commented:
if you are using any flavour of centos/redhat

cat /etc/redhat-release
David FavorFractional CTO
Distinguished Expert 2018
Commented:
Your question tags say you're using Ubuntu, so as Kenza said... you'll execute this command...

lsb_release -a

Open in new window

curiouswebsterSoftware Engineer

Author

Commented:
Thanks
David FavorFractional CTO
Distinguished Expert 2018

Commented:
You're welcome!

Good luck!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial