Install LAMP (Linux, Apache, Mysql, PHP) on Fedora 20


LAMP (Linux, Apache, Mysql, PHP) stack is the most popular combination used for web development in linux. says it is powering from your blog to the largest social network website in the world. Fedora 20 is shifted from mysql community edition to most compatible free software mariadb, created by the creators of mysql database.



Install LAMP on Fedora 20

Installing the Apache server, PHP, Mysql (mariadb) on Fedora 20 is a fairly easy. Execution of some commands on the command terminal will do the thing.

Open Terminal. change to root

su -
yum groupinstall "Web Server"
yum install-server mariadb

Start the services httpd and mysqld

service httpd start
 service mysqld start

The configure if we want to start automatically

chkconfig - level 345 httpd on
 chkconfig - level 345 mysqld on

And then use this command to help us configure mysql


Install phpMyadmin

yum install phpMyAdmin

or you can just download phpMyAdmin and extract to /var/www/html folder and then access http://localhost/phpMyAdmin

Enable .htacces on fedora 20

Edit the httpd configuration

gedt /etc/httpd/conf/httpd.conf

search .htaccess


AllowOverride None


AllowOverride All

then save and close

service httpd restart

PHP Set Desired timezone

gedit /etc/php.ini

search for date.timezone

and remove the ; at the starting of line. then fill the appropriate timezone on the quotes.  to get the time zone data go to

date.timezone =’Asia/Colombo’

then save the file and restart httpd service .

PHP Modules

PHP also has a variety of useful libraries and modules that you can add onto your server. You can see the libraries that are available by typing:

yum search php-

Terminal then will display the list of possible modules. The beginning looks like this:

php-fpdf-doc.noarch : Documentation for php-fpdf
php-libvirt-doc.noarch : Document of php-libvirt
php-pear-Auth-radius.noarch : RADIUS support for php-pear-Auth
php-pear-Auth-samba.noarch : Samba support for php-pear-Auth
ice-php-devel.i686 : PHP tools for developping Ice applications
ice-php-devel.x86_64 : PHP tools for developping Ice applications
perl-PHP-Serialization.noarch : Converts between PHP's serialize() output and
                              : the equivalent Perl structure
php-IDNA_Convert.noarch : Provides conversion of internationalized strings to
                        : UTF8
php-Kohana.noarch : The Swift PHP Framework
php-LightweightPicasaAPI.noarch : A lightweight API for Picasa in PHP
php-PHPMailer.noarch : PHP email transport class with a lot of features
php-Smarty.noarch : Template/Presentation Framework for PHP
php-ZendFramework.noarch : Leading open-source PHP framework
php-ZendFramework-Auth-Adapter-Ldap.noarch : Zend Framework LDAP
                                           : Authentication Adapter
php-ZendFramework-Cache-Backend-Apc.noarch : Zend Framework APC cache backend

To see more details about what each module does, type the following command into terminal, replacing the name of the module with whatever library you want to learn about.

yum info name of the module

Once you decide to install the module, type:

sudo yum install name of the module

You can install multiple libraries at once by separating the name of each module with a space.




Leave a Reply