Quick Guide to set up LAMP in
Amazon Linux OS on ec2
In this blog, I will explain quick steps to install LAMP on Amazon Linux
OS.
Verify Access
Please check if logged in user can perform sudo commands.
e.g. 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. sudo tar -jxf
phpMyAdmin-4.0.3-all-languages.tar.bz2 -C /var/www/html
3. sudo mv /var/www/html/phpMyAdmin-4.0.3-all-languages /var/www/html/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
Thank you for referring my blog. Please share your suggestions and feedback comments.
For more information: Solution Analysts
For more information: Solution Analysts
Great!! very useful...
ReplyDeleteGood One :)
ReplyDeleteSave my Day... a 5 star to my dear friend Murtuza.
ReplyDeleteSimply want to say your article is as surprising. The clearness in your post is simply great and i could assume you are an expert on this subject. Well with your permission allow me to grab your feed to keep updated with forthcoming post. Thanks a million and please continue the enjoyable work.
ReplyDeleteSalt Lamps
salt lamps shop UK
himalayan pink salt lamp uk
pink salt lamps online
himalayan salt lamps in United Kingdom
Pink salt lamp online shop uk
himalayan salt lamps UK
pink salt himalayan lamps
natural himalayan salt lamp
pink salt himalayan lamps uk
pink salt lamp price in UK
natural rock salt lamp online
salt lamps shop online
lamps of himalayan pink salt
salt lamp shop
salt lamp online
Salt lamps uk
1 Bitcoin Casino | Best Crypto Casino | 100% up to $1600
ReplyDelete1 Bitcoin Casino review & 0 No Deposit Bonus Codes septcasino | Huge Jackpots and Huge Jackpots. First 인카지노 Deposit Bonus 1xbet korean > 100% up to $1600.