how to configure wamp/xampp on windows

To run php files we need a server. xampp/wamp act like a server on our local computer

1. Install xammp from this url below.

https://www.apachefriends.org/xampp-files/7.2.2/xampp-win32-7.2.2-0-VC15-installer.exe

2. Run setup and click install this will install automatically

3.  when installation finished open xamp control panel

xamp

4 . Click start Apache server and MYSQL

5.  Now open a folder in C:\xampp\htdocs

htdocs in your root folder where you create your projects

now create a project name test

now create a file name index.php in test folder

copy this code in your file to run php on local server xampp

<?php

echo “My first php Script “;
echo “Happy Coding “;

?>

save that file

now open your web browser and type

localhost/test/index.php

now your xampp is configured finally. Happy coding 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s