Linux security

Quick install LAMP on Fedora Linux 20

Here is one liner to quickly install LAMP environment on [easyazon_link asin=”0133477436″ locale=”US” new_window=”default” nofollow=”default” tag=”wn0d5-20″ add_to_cart=”default” cloaking=”default” localization=”default” popups=”default”] Fedora Linux 20 [/easyazon_link]. Instead of type in long command you can use this short command:

su -lc 'yum install @web-server'

This will run and install all the required packages on your [easyazon_link asin=”0470082917″ locale=”US” new_window=”default” nofollow=”default” tag=”wn0d5-20″ add_to_cart=”default” cloaking=”default” localization=”default” popups=”default”] Fedora [/easyazon_link] machine. Next step is install MySQL, [easyazon_link asin=”1449392776″ locale=”US” new_window=”default” nofollow=”default” tag=”wn0d5-20″ add_to_cart=”default” cloaking=”default” localization=”default” popups=”default”] PHP [/easyazon_link]and start services:

sudo yum install mysql mysql-server php-mysql php5 php-mysqlnd php-opcache
su
service httpd start
service mysqld start

Now you can configure your [easyazon_link asin=”0672327120″ locale=”US” new_window=”default” nofollow=”default” tag=”wn0d5-20″ add_to_cart=”default” cloaking=”default” localization=”default” popups=”default”] MySQL [/easyazon_link] server with root password by issuing this command:

su
mysql_secure_installation
  • Hit ‘Enter’ when it first asks you for a password.
  • Hit enter when asked to Set a Password.
  • Enter and Re-Enter password for root user.
  • For security reasons, you’ll be asked to Remove anonymous user, Disallow root login and to remove test tables. Press Y and hit Enter key for every question hence asked.

[easyazon_block add_to_cart=”default” align=”left” asin=”0133477436″ cloaking=”default” layout=”left” localization=”default” locale=”US” nofollow=”default” new_window=”default” tag=”wn0d5-20″]

Leave a Reply