Here is one liner to quickly install LAMP environment on Fedora Linux 20. 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 Fedora machine. Next step is install MySQL, PHPand 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 MySQL 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.