Environment Setup For PHP


In this tutorial, we will learn about the Environment setup for PHP. As we learned in the last tutorial we have to install a virtual server on our PC to run PHP code. Here we will learn in detail how we can install a virtual server on our PC.

There are a lot of virtual servers available in the market which helps us to create PHP projects. But we will use XAMPP in this tutorial series. So to install the XAMPP server follow this link.

Click Here To Download the XAMPP SERVER

By following this link you will land on the Apachefriends.org site from there you can install any latest version of the XAMPP server setup according to OS requirements. After downloading the setup please install it on your machine by following instructions.

After complete installation, you can see There is a XAMPP folder in C drive(In Windows) as shown in the picture.

Environment Setup For PHP

If you will open this XAMPP folder then you will htdocs folder there. In this htdocs folder, we will create and save our project files. Now we where will keep our project files but now the problem is how to run our project. So to run the project you have started our server. so to start the server just search XAMPP and open the XAMPP Control panel.

Environment Setup For PHP

A Screen like this will open. just click on the start button in front of Apache and MYSQL as shown in the image below.

Environment Setup For PHP

After that open browser and type localhost. If you got a screen like given below it means your virtual server is ready to work. In the next tutorial, we will learn how to write a hello world program in PHP.

Environment Setup For PHP

 



Spread the love:

Please share this page on social media with your friends..

Facebook share Twitter Linkedin share




Great News! Now you can read all the tutorials on our Android App..

Download Owlbuddy: Learn Programming Tutorials App Now.

Download Owlbuddy: Learn Programming Tutorials