Installing LAMP

Whats is LAMP ??         Generally ask to the peoples about the word LAMP most of them knows about the LAMP = LIGHT But Technical per...

Whats is LAMP ??
        Generally ask to the peoples about the word LAMP most of them knows about the LAMP = LIGHT

But Technical persons should knows about the Word LAMP

L  =  LINUX,
A  = APACHE web server
P  =  PHP some times used  PYTHON or PERL  instead of PHP

LAMP = Linux,Apache,MySQL,Php

Now going to install the LAMP in the Amazon Linux, centos  The versions are Apache  2.4 , php 7.3 and mysql 8

Step 1: Install Apache 2.4
    1.Before installing the web server the software packages to be up to date.
    command: sudo yum update -y
    2.Install the Apache software packages and  related dependencies.   
    command: yum install -y httpd24 httpd24-tools mod24_ssl
3.Check the command chkconfig to configure the Apache web server to start at each system boot.
command: chkconfig httpd on
4.Start the httpd services
command: service httpd start
5.Check whether the Apache installed or not in the server
command: httpd -v
6.Double check once with browser it shows the page like this below

Step2: Install the mysql version 8.0
1.Using wget to download the required dependencies
command: wget
2.Install the downloaded package
command: yum localinstall mysql80-community-release-el6-1.noarch.rpm
3.To check the mysql Yum repositories added successfully
command: yum repolist enabled | grep "mysql.*-community.*"
4.Install the mysql server
command: yum install mysql-community-server
5.Start the mysql server and check the status of the mysql server
command: service mysqld start

service mysqld status
6.Check whether successfully mysql installed on the server
command: mysql --version
After that we have to change the root password and securing the mysql secure installation
7.Check the temporary password for change the root access
command: grep 'temporary password' /var/log/mysqld.log
8.To change the password and securing the mysql run the below command
command: mysql_secure_installation

After this enter the new root password
Then it will ask you the following options
Remove anonymous users? 
Disallow root login remotely?
Reload privilege tables now?

choose option yes or no accordingly to user needs.
9.mysql-devel package not installed so have to install 
command: yum install mysql-devel
10.Now login and check the changed mysql root password work or not
command: mysql -u root -p

Step 3: Install the php 7.3
 1.Install the mysql version 7.3
 command: yum install -y php73*
73* will install the all php dependencies packages
2.Check whether successfully php installed on the server
command: php -v

Step4: Check the phpinfo page in the browser
1.In the server have to update the phpinfo page code in the /var/www/html  path
 command: cd /var/www/html
2.Create the index.php file
 command: touch index.php     
3. open the file and paste the below php code
code:  <?php
4. Now check the browser

After that create the virtual host and point the domain and change the directory path if required.



Techie View: Installing LAMP
Installing LAMP
Techie View
Loaded All Posts Not found any posts VIEW ALL View Full Article Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy