which php local server is good ,how to download free php local server plz suggest me link so that i m use it locally in my system ,

Dani AI

Generated

Short answer: pick the tool that matches how you want to learn. The bundle installers mentioned by and get you up and running fast (they preconfigure Apache, PHP and a database). For quick experiments you can skip the installer entirely and use PHP’s built‑in development server; it starts with one command and needs no extra setup, but it is only for local development and testing, not production. (php.net)

Where to put your files: put .php files in the web server’s document root (that is the directory Apache actually serves). Many AMP packages call this folder “htdocs” or “www,” but the reliable way is to check Apache’s DocumentRoot (httpd.conf) or the stack’s control panel — that tells Apache which folder maps to . This is the same idea behind ’s tip to save in htdocs. (httpd.apache.org)

Quick, practical example you can try now:

Create a file named hello.php with:

<?php
phpinfo();
?>

From that file’s folder you can run the built‑in server:

php -S localhost:8000

Then open in your browser to verify PHP is working. The official PHP manual walks through this exact first‑page flow. (php.net)

If you want a modern Windows experience that’s fast and portable, consider Laragon (lightweight, portable, easy virtual‑host setup). For repeatable, production‑like environments (matching specific PHP versions and extensions), use Docker with official PHP images. Both approaches are widely used today; choose Laragon for simplicity and Docker when you need reproducibility. Also remember: never expose the development server to the public internet and follow the PHP manual for configuration and security. (laragon.org)

Recommended Answers

All 5 Replies

go to the link:
http://sourceforge.net/projects/phptriad/
then download the phptraid for windows it's a complete package for both apache, php, and mysql configured all together, and follow the instructions.
hope you luck :)

Hi.

The easiest way to get all-in-one packet ( including Apache httpd, PHP, MySQL, PHPmyadmin, etc. ) like WAMP or XAMPP if you're using Windows OS.


- Mitko Kostov

thank a lot for suggetion ,hope in future (aap log ese tarha help karenga kyoun ki main php main naya houn)

thanks to alll ................

thanks, i m down loading php local server from i m new to php,i donot know where (means in which folder) i have to save my code so that its result show in browser http://localhost/mycode.php and plz suggest me where i have to start php (tutorial)

save it in the htdocs folder.try tutotials in tizag.com or w3schools.com.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.