Setting up PHP Development Environment

In order to setup Development Environment for PHP, we need to install following things :

1. A Web Server

2. PHP installed on Web Server

3. With Database support on Web Server (Mysql)

4. Text Editor

We can install al the above required software by using AMP (Apache, Mysql, PHP) software stack, where apache is a web server, and Mysql is database server. In order to install AMP stack there are many options available for different OS :

  • XAMPP for Windows
  • LAMP for Linux
  • MAMP for Mac OS
  • SAMP for Solaris
  • FAMP for FreeBSD

XAMPP : XAMPP stands for [X]Cross Platform, Apache, Mysql, Php, Perl. It is a software package which contains all programs and executable files to create a local Web Server, where we can learn Mysql database, Php scripting or either test our Web applications without online-connectivity. XAMPP package mainly contains Apache http-server, Mysql Database application, Php, Strawberry perl, FileZilla FTP server, Mercury SMTP server and Tomcat. You can download XAMPP sfotware package from here : Link

Installation process of XAMPP on Windows : Link

LAMP : LAMP stack is a popular open source web platform which is used to run dynamic web sites and servers. It includes Linux, Apache, MySQL, and PHP. Visit the given link for installation steps of LAMP on Linux Ubuntu : Link

Text Editors :

1. Notepad++

Notepad++ is free and very light-weight text and source code editor for Microsoft windows, which supports several languages. You can download and install Notepad++ from the below link :

2. Sublime Text :

Sublime Text is a proprietary,  cross-platform source code editor. It is not free like Notepad++, but you can use it as an evaluation or as a trialware. You can download it from its Official Website :

And if you use Unix/Linux Operating system, then you can use vi/vim, nano or gedit for editing creating html files. And also sublime text is available for unix/linux based systems.

Next Topic :