How to install LAMP server in Fedora 17

I have recently move on Fedora from Ubunutu . Here I share how to install LAMP (Linux, Apache, MySQL and PHP) server in fedora 17.

– Install Mysql Server

yum install mysql mysql-server

Now start and Enable Mysql service. Run this command

systemctl start mysqld.service
systemctl enable mysqld.service

Now create MySQL pasword –

mysqladmin -u root password [your_password_here]

Now check mySQL . Run

mysql -h localhost -u root -p


– Install HTTPD and PHP

to install Apache Server:

yum install httpd php php-common

Now start Apache server

/etc/init.d/httpd start
# OR #
service httpd start
chkconfig --levels 235 httpd on

-Install PHP Modules

 yum install php-pecl-apc php-cli php-pear php-pdo php-mysql php-pgsql  php-sqlite php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml

Check php page:

vi /var/www/html/info.php  and  add
<?php
phpinfo();
?>

save and open browser to check :
http://192.168.1.1/info.php

– Install PhpMyAdmin

  yum install phpmyadmin

Now restart Apache:

service  httpd restart

Check the phpmyadmin page
http://192.168.1.1/phpmyadmin

– Install Git:
To install git run this command.

yum install curl-devel expat-devel gettext-devel 
  openssl-devel zlib-devel
yum install git-core

That’s it. Happy coding. 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s