Wednesday, 12 February 2014

How to setup a lamp server on Linux.

Lamp is an open source web development platform that uses Linux as the operating system. Apache as the Web server. MySQL as the relational database management system. and PHP as the object-oriented scripting language.

Install Apache server on CentOS Linux:
Apache is the most popular HTTP or web server specially designed for Unix/Linux environment, but now you can also install Apache on Windows platform nowadays. Apache supports many web server features (CGI, SSL, Virtual Domain and more)

#Yum Install httpd

To run Apache automatically by default when the system boot/reboot:


#chkconfig httpd on


To start Apache on your CentOS Linux:

#service httpd start


To restart Apache on your CentOS Linux:


#service httpd restart


To stop Apache on your CentOS Linux:


#service httpd stop


Now your Apache server should be running, You can check it with your web browser by going to http://yourvpsip or http://yourdomain


Install MySQL server on CentOS Linux:
MySQL is an open source standard query language database that is fast, reliable, easy to use and suitable for all application of any sizes.

#yum install mysql-server

To run MySQL automatically by default when the system boot/reboot:

#chkconfig mysqld on


To start MySQL on your CentOS Linux:

#service mysqld start


To restart MySQL on your CentOS Linux:


#service mysqld restart


To stop MySQL on your CentOS Linux:


#service mysql stop



Install PHP on CentOS Linux:
PHP (PHP Hypertext Preprocessor) is a very widely used open source server side scripting language which also free to download and use. PHP can run on many platforms (Linux, Unix, Mac OS, Windows…) Many web CMS (content management systems) are written in PHP include WordPress, PHPbb, Joomla, Drupal, Moodle, even Facebook and Digg.

#yum install php*

For any query please feel free to contact me my email id is - sashwatkatore@gmail.com.

No comments:

Post a Comment