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:
The next step should be execution of the following command:
The LAMP server can then be installed by use of the following command:
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:
You have to install curl, as it will be needed for the LAMP server to work. It can be installed as follows:
Mcrypt will also be needed, so it can be installed as follows:
Once you are through with the installation, reboot the Apache by use of the following command:
The next step should involve sorting out of the Mod-rewrite. The following command can be used for this purpose:
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:
You can then navigate to the web root by use of the command given below:
You will then be done, meaning that the LAMP server will be ready for use on your system.
|AWS Certified SysOps Administrator||AWS Certified Solutions Architect / Professional|
|AWS Certified Developer||AWS Lambda 2016|
|AWS Technical Essentials||AWS Database Migration Service|
|AWS Certified DevOps Engineer||and many more...|
Free Demo for Corporate & Online Trainings.