Ask Question

Menu

Environment setup For PHP project


In order to run PHP file in our computer we need to first set environment. So please follow the below steps to set PHP environment.

Tools Needed

  1. Web Server: (XAMPP server/ WAMP server)
  2. Editor : (Notepad, Notepad++ or Dreamweaver editor)
  3. Database : ( MySQL, Oracle)

For downloading XAMPP server click on the download link given below.

Download

For downloading WAMP server click on the download link given below.

Download

In this tutorial we are using XAMPP server, notepad++ and MySQL database.Now I am showing you how to install and start XAMPP server

Step1:

Download the XAMPP server click on above link.

Step 2:

Install the exe file which is downloaded.

Step 3:

Now to go C drive (or where you install the server) and open XAMPP folder and find XAMPP control file and double click on that.

start

Step 4:

Click on start button on Apache and MYSQL both.

run

Step 5:

Now open web browser like Google chrome and type "localhost" and check XAMPP server welcome page is appeared or not. If appeared then our server is started.

Now create your own folder under htdocs , Example name it as test or what ever.

Step 6:

Now write your first PHP code and name it as “index.php” and save it under test folder.

<!DOCTYPE html>
<html>
<body>


<?php
echo "Hello World!";
?>


</body>
</html>

Step 7:

Now open your web browser and type localhost/test/index.php.

output





Subscribe with us to get latest topic update






Choose a Language



Subscribe