Mindmajix

Setting Up LAMP on Ubuntu hosted on AWS

Begin by booting up an instance of the AWS Ubuntu server, and then log into it by use of MobaXterm. Use the username “ubuntu” to log into the system. Once you are logged in, execute the following command:

Screenshot_23

The next step should be execution of the following command:

Screenshot_24

The LAMP server can then be installed by use of the following command:

Screenshot_25

Note that the password for root in MySQL should not be forgotten. Our web root directory will be “/var/www/html,” so there is a need to give ourselves permissions so that we can work from there. The following sequence of commands can be used for that purpose:

Screenshot_26

You have to install curl, as it will be needed for the LAMP server to work. It can be installed as follows:

Screenshot_27

Mcrypt will also be needed, so it can be installed as follows:

Screenshot_28

Once you are through with the installation, reboot the Apache by use of the following command:

Screenshot_29

The next step should involve sorting out of the Mod-rewrite. The following command can be used for this purpose:

Screenshot_30

The Apache can then be restarted so that the above change can take effect or can be applied. The following command can be used for this purpose:

Screenshot_31

You can then navigate to the web root by use of the command given below:

Screenshot_32

You will then be done, meaning that the LAMP server will be ready for use on your system.


0 Responses on Setting Up LAMP on Ubuntu hosted on AWS"

Leave a Message

Your email address will not be published. Required fields are marked *

Copy Rights Reserved © Mindmajix.com All rights reserved. Disclaimer.
Course Adviser

Fill your details, course adviser will reach you.