How to install Lamp in Fedora14

by
Share this Article: Facebook0Google+0Twitter0LinkedIn0Reddit0Pinterest0StumbleUpon0Digg

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 of Lamp server  in Fedora  14 will be done in 3 steps :

1- Install Apache:

As 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

 

 

 

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');   

3- Install PHP5 and dependencies

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

4-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

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

Share this Article: Facebook0Google+0Twitter0LinkedIn0Reddit0Pinterest0StumbleUpon0Digg