Quick Guide to Setup LAMP in Amazon Linux OS on Amazon ec2

Aug 14th, 2014

Quick Guide to Setup LAMP in Amazon Linux OS on Amazon ec2

Verify Access

Please check if logged in user can perform sudo commands.

sudo yum update –y

If not then, first you need to ask server admin to add user you are logged in, to /etc/sudoers file.

If you are able to fire sudo commands then you don’t need to worry and let us start with installation steps.

Install LAMP on empty Amazon ec2 server

1.  sudo yum update -y

2. Install the Apache web server, MySQL, and PHP software packages

   sudo yum groupinstall -y “Web Server” “MySQL Database” “PHP Support”

   sudo yum install php-xml php-mcrypt php-mbstring php-cli

3. Install the php-mysql package.

   sudo yum install -y php-mysql

4. Start the Apache web server.

   sudo service httpd start

5. Use the chkconfig command to configure the Apache web server to start at each system boot.

   sudo chkconfig httpd on

6. Start the mysql server.

   sudo service mysqld start

7. Run mysql_secure_installation to setup root password

   sudo mysql_secure_installation

            a. By default, the root account does not have a password set, so press Enter.

b. Type Y to remove the anonymous user accounts.

c. Type Y to disable remote root login.

d. Type Y to remove the test database.

e. Type Y to reload the privilege tables and save your changes.

8. Use the chkconfig command to configure the Apache web server to start at each system boot.

   sudo chkconfig mysqld on

Install phpmyadmin

At the time of writing this, 4.2.7 was the latest version. you can change the latest version in the below url before installing

  1. wget http://www.sourceforge.net/projects/phpmyadmin/files/phpMyAdmin/4.2.7/phpMyAdmin-4.2.7-all-languages.tar.bz2
  2. tar -jxf phpMyAdmin-4.0.3-all-languages.tar.bz2 -C /var/www/html
  3. mv phpMyAdmin-4.0.3-all-languages phpmyadmin
  4. rm -rf phpMyAdmin-4.0.3-all-languages.tar.bz2

Now if you visit http://{domain_name}/phpmyadmin it should work

In case if it does not work check Allowoverride setting in /etc/httpd/conf/httpd.conf and change it to

Allowoverride all

If it still does not work, check /var/log/httpd/error_log

One Comment

  • Monica at 9:07 am, March 13, 2024

    Regards. Loads of write ups.

Leave a comment

Let's Discuss Your Project

Get free consultation and let us know your project idea to turn
it into an amazing digital product.

Let’s talk

NEWS & BLOG

Related Blogs

Why should you hire React Native developers for your project?

Hire Developer Jun 19th, 2023

Why should you hire React Native developers for your pr...

Read more
Explorando A 1xbet: Uma Análise Detalhada Da Plataforma Sobre Apostas Online

Hire Developer Feb 24th, 2023

Explorando A 1xbet: Uma Análise Detalhada Da Plataform...

Read more
Explorando A 1xbet: Uma Análise Detalhada Da Plataforma Sobre Apostas Online

Hire Developer Feb 23rd, 2023

Explorando A 1xbet: Uma Análise Detalhada Da Plataform...

Read more

INQUIRY

Let's get in touch

UNITED STATES

31236 Meadowview Square,
Delmar, DE 19940, USA

Sales: +1 667 771 6758

UNITED KINGDOM

13 Layton Road, Hounslow,
London, TW3 1YJ

Sales: +44 7404 607567

INDIA

2nd Floor, Sun Avenue One, Bhudarpura, Ayojan Nagar, Nr. Shyamal Cross Road, Ahmedabad, Gujarat-380006

Sales: +91 635-261-6164

For Project Inquiries

biolah

depo 25 bonus 25 to 5x

depo 25 bonus 25

depo 25 bonus 25

mndrmndr.com

bonusdeposit.net

https://www.greentourstanzania.com/wp-includes/customize/

https://temp1.novotest.biz/id/

depo 25 bonus 25

https://sumberjo-blitar.desa.id/images

https://sumberjo-blitar.desa.id/data

depo 25 bonus 25 to 5x

depo 25 bonus 25

https://www.greentourstanzania.com/wp-includes/js/product/

https://smpabbs.sch.id/gacor/100/

https://smpabbs.sch.id/gacor/bonus/

deposit 25 bonus 25

depo 25 bonus 25

bonus new member 100

https://ppdb.smk-kosgoro.sch.id/data/depo 25 bonus 25https://jesus.nouvellevie.com/wp-includes/images/Getoko.iddepo 25 bonus 25https://bonus-baru.s3.ap-southeast-1.amazonaws.com/link-daftar-slot-gacor.htmlhttps://bonus-baru.s3.ap-southeast-1.amazonaws.com/scatter-pink-paling-gacor.htmlhttps://worldlisteningproject.org/wp-includes/depo25bonus25/bonus new member 100depo 25 bonus 25

slot bonus new member 100