Google Plus

How to install Lamp and Phpmyadmin in Fedora 13

Written by Mel Kham on . Posted in Linux tutorials

LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform that uses Linux as operating system, Apache as the Web server, MySQL as the relational database management system and PHP as the object-oriented scripting language.
In this Simple tutorial we will explain you how to install LAMP SERVER on your Fedora13.



The installation will be done in 3 steps:

1- Apache2 installation

Under root type the following command:

yum install httpd  

Now make apache start with computer boot

chkconfig  httpd  on 

start   the apache  services

 /etc/init.d/httpd start

to check that Apache has been installed without problems, go to your browser and type

 http://localhost

if everything is correct you will see the message :


2- MySQL  installation:

Now install  Mysql, as root type the command

yum  install mysql mysql-server

start the mysqld and make it  boot  with computer start

/etc/init.d/mysqld start 

Make it  starting with the  computer

chkconfig  mysqld on

Now  create MySQL admin password

mysql -u root
mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('YOURPASSWORD');   

Don`t forget to change YOURPASSWORD with the password you want to use The basic installation of LAMP is ready.check that is  working

3- PHP5 and dependencies installation:

You can install PHP and dependencies using the command

yum  install  php  mysql-php

check if php is working by creating a php info page

vi  /var/www/html/info.php

Copy this code :

{codecitation}phpinfo();

?>{/codecitation}

Now restart apache and check

http://ip/info.php

Install Phpmyadmin

phpMyAdmin is a free graphical software tool to handle the administration of MySQL, this will make it easy for you to create, import/export and delete

databases. Install phpmyadmin using the command:Now we will install phpmyadmin,

download  the  phpmyadmin file to  /var/www/html

extract   the file :

 tar  -zxvf    phpMyAdmin-3.3.3-all-languages.tar.gz 
mv  phpMyAdmin-3.3.3-all-languages  phpmyadmin
cd  phpmyadmin
cp  config.sample.inc.php    config.inc.php

you  should  edit  the  config.inc.php  for  your  web security

 

 

now  start the  browser

 

 

http://ip/phpmyadmin

{loadposition user9}

 

Related Articles By Tags:

{loadposition user1}

For questions please refer to our Q/A forum at : http://ask.unixmen.com

Mel Kham

Founder of Unixmen, Living in Amsterdam. Am working in my free time to help people to understand the Opensource and to explain them in easy way how to make the fist steps to the the light. Working day and night with my Co-founder Zinovsky to keep this website live even with less resources.
  • kitoka

    Hello,

    Thank you for this tutorial, I did what you said and every thing is fine except when I chek http://localhost/phpmyadmin a phpMyAdmin error is displayed: "PHP can not load mysql extension. Please check your PHP configuration".

    Thanks.

  • pirat9

    you are missing this package php5-mysql or php-mysql
    find it in in package manager , install it and enjoy

  • kitoka

    Thank you, but where can I found it, I did:
    find / -name php5-mysql(php-mysql) but no result.

  • tuti

    yum install ……

  • kitoka

    I install php-mysql and restart httpd and mysqld but same error :evil:

  • R Moulton

    Nice job. A couple of notes:

    yum install php [color=red]php-mysql[/color]

    and info.php should be:

Like us on Facebook

This week Top Posts

Write for us

Recent Comments

LinuxSytesNet

|

sabayon facebook group is not maintained by him but a French guy. Go back to your zorin os.

Nidal Samara

|

How do I save the entier URL?
for example: page.asp?page=12,
After adding the IfModule in .htaccess I see the correct 404, but 404 url is not shoing the query string , only page.asp

abhishek Bagusetty

|

Hey Mel,

First of all, its good that you have figured a way to block torrents using iptables. I am new to networking and would like to do couple of things.

1) Monitor the network activity in the home network

2) Block all the torrents from downloading.

Is there a tool or a way in linux which could give me some solutions to meet the above mentioned cases. I dont want to use any commercial programs as I am more towards OpenSource. It would be greatful if you could offer me some help.

Thanks,

Abhi

Abhishek

Department of Chemical Engineering

The University of Utah

Ernesto Gutierrez

|

Mel, I’ve been unsuccessful at installing citrix receiver on a 64 bit fedora install.
Eventhough I am following your instructions to the T.

Can you provide guidance via email?

SK

|

Yes you can. It should work.

 
IDG Tech Network
Copyright © 2008-2013 Unixmen.com .
Maintained by Anblik .