PHP 01: Setting up PHP environment for windows

To run PHP code from our computer we need to get a PHP server. There are several ways to do this. Installing different packages are really painful. There is an all in one installer called XAMPP which allows you to run Apache, PHP, MySQL together.

Downloading XAMPP

You can search from Google or any search engine you like by writing “Download XAMPP” or you you can directly follow this link https://www.apachefriends.org/download.html . Yow will see something like this.

XAMPP download

Download the latest version from here. It is always good to go with the latest version.

Installing XAMPP

At fist run the downloaded installer. Setup window will appear.

xampp install

Simply click “Next” continue.

xampp select component

You can install the the available components or select the components as shown in the image above for minimal installation.

xampp select install location

You can select the location for installation here. Default location is “C:\xampp”

xampp-unchek-bitnami

Uncheck “Learn more about Bitnami for XAMPP” and click Next. Main XAMPP installation proccess will start now.

xampp-installing

You will see this window after the process is completed.

xampp install complete

Click the Finish button to launch “XAMPP Control Panel” .

XAMPP control panel start server

Click the “Start” button beside to “Apache” to start the server. You may see an warning from windows firewall if running the apache server for the first time.

Allow firewall xampp

Check the tick for both public and private network and click “Allow access”.

Open http://localhost in the bowser an you will see XAMPP welcome page. Now we can run PHP code on our local PC !

Related posts

Md. Monirul Alom

Md. Monirul Alom

I am a Full Stack Web developer. I love to code, travel, do some volunteer work. Whenever I get time I write for this blog