Pages

Tuesday, September 2, 2014

How To Install LAMP (Linux, Apache, MySQL, PHP) on Fedora

LAMP stack is a group of open source software used to get web servers up and running. The acronym stands for Linux, Apache, MySQL, and PHP. Since the server is already running Fedora, the linux part is taken care of. Here is how to install the rest.
          Before you start installing the LAMP programs, you should first download and install all of the updates with yum update:
#yum update
 Follow the following steps to install LAMP of Fedora:

1) Install Apache:
Apache is a free open source software which runs over 50% of the world’s web servers.
To install apache, open terminal and type in this command:
 
#sudo yum install httpd

Once it installs, you can start apache running on your VPS:
 
#sudo service httpd start

 2) Install MySQL
MySQL is a powerful database management system used for organizing and retrieving data on a virtual server
To install MySQL, open terminal and type in these commands:
 
#sudo yum install mysql mysql-server 
 
#sudo service mysqld start

During the installation, MySQL will ask you for your permission twice. After you say Yes to both, MySQL will install.

3) Installing PHP
PHP is an open source web scripting language that is widely used to build dynamic webpages.
To install PHP on your virtual private server, open terminal and type in this command:
 
#sudo yum install php php-mysql

Once you answer yes to the PHP prompt, PHP will install itself.

Restart apache so that all of the changes take effect on your virtual server:
 
#sudo service httpd restart

Now you are ready to use LAMP of your Fedora

Enjoy....!

No comments:

Post a Comment