LAMP instance install wordpress tutorial not working as expected.

0

Following this tutorial https://repost.aws/knowledge-center/lightsail-instance-install-wordpress

sudo cp -pr /tmp/wordpress/* /var/www/html/

This folder doesnt exist.

(i created it after this error and continued the tutorial) after finishing the procedure, neither of these commands worked

Restart the Apache service: CentOS and Amazon Linux 2

$ sudo systemctl restart httpd

Ubuntu and Debian versions

$ sudo systemctl restart apache2

getting this error Failed to restart apache2.service: Unit apache2.service not found.

Ended up loading the public IP and getting the LAMP startup page.

i think the LAMP HTML folder is different from the tutorial. can you confirm ?

Boaz
asked a month ago102 views
3 Answers
0

Hi Steve, i installed LAMP just by clicking the adding the instance button, not manually. could it be that the installation was not complete ? that it takes time ?

Boaz
answered a month ago
0
sudo cp -pr /tmp/wordpress/* /var/www/html/

This folder doesnt exist.

Which folder didn't exist, /tmp/wordpress or /var/www/html? If it was /var/www/html that didn't exist then you must have missed a step when you installed the LAMP stack as the step to install Apache should have created this.

This also ties in with what you say about neither of the sudo systemctl .... commands worked. One of these should definitely have worked if Apache was properly installed.

profile picture
EXPERT
Steve_M
answered a month ago
0

Yes, now i see, thank you. need to go through this one first https://repost.aws/knowledge-center/lightsail-instance-install-lamp-stack though i dont think it cover the Linux 2023

Boaz
answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions