Skip to content
Menu
DevSecOps Now!!!
  • About
  • Certifications
  • Contact
  • Courses
  • DevSecOps Consulting
  • DevSecOps Tools
  • Training
  • Tutorials
DevSecOps Now!!!

How to install Php in Windows 11?

Posted on December 27, 2024

Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

Installing PHP on Windows 11 is a straightforward process that involves downloading, configuring, and setting up the PHP runtime environment. Here’s a detailed guide to help you get started.

Step 1: Download PHP

  1. Visit the PHP Website:
    • Go to the official PHP website.
  2. Choose the Right Version:
    • Download the Non Thread Safe (NTS) or Thread Safe (TS) version, depending on your server configuration. For development purposes, it’s common to choose the Thread Safe version.
    • Ensure you select the Windows x64 build for compatibility with Windows 11.

Step 2: Extract the PHP Files

  1. Locate the Download:
    • Navigate to the directory where the PHP .zip file is saved.
  2. Extract the Files:
    • Right-click the .zip file and select Extract All… or use tools like WinRAR or 7-Zip to extract it.
    • Extract the contents to a folder (e.g., C:\php).

Step 3: Add PHP to the System Path

  1. Open Environment Variables:
    • Right-click on This PC or My Computer and select Properties.
    • Click on Advanced System Settings → Environment Variables.
  2. Modify the Path Variable:
    • Under System Variables, locate the variable named Path and click Edit.
    • Add the path to your PHP folder (e.g., C:\php) and click OK to save.

Step 4: Configure PHP.ini

  1. Locate PHP.ini:
    • In the PHP folder, you will find two files: php.ini-development and php.ini-production.
  2. Choose and Rename:
    • Rename php.ini-development to php.ini for development purposes.
  3. Edit PHP.ini:
    • Open the php.ini file in a text editor (e.g., Notepad or VS Code).
    • Enable required extensions by uncommenting lines (remove the ; at the beginning). For example: extension=curl extension=mbstring extension=mysqli
    • Set the timezone to your region: date.timezone = Asia/Kolkata

Step 5: Verify the Installation

  1. Open Command Prompt:
    • Press Win + R, type cmd, and hit Enter.
  2. Check PHP Version:
    • Type the following command: php -v
    • If PHP is installed correctly, the version details will appear.

Step 6: Optional – Integrate with a Web Server

PHP can run standalone, but integrating it with a web server like Apache or Nginx is common for development.

For Apache:

  1. Download and install XAMPP or configure Apache manually.
  2. Update the httpd.conf file in the Apache conf directory to include PHP: LoadModule php_module "C:/php/php8apache2_4.dll" AddHandler application/x-httpd-php .php PHPIniDir "C:/php"
  3. Restart Apache.

For Nginx:

  1. Install Nginx and configure it to point to PHP by adding the following in nginx.conf: location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; }
  2. Restart Nginx.

Step 7: Test PHP

  1. Create a Test File:
    • Create a new file named info.php in your web server’s root directory (e.g., htdocs for XAMPP).
    • Add the following code: <?php phpinfo(); ?>
  2. Run in Browser:
    • Open a web browser and navigate to http://localhost/info.php.
    • If PHP is installed correctly, you will see the PHP info page.

Conclusion

Congratulations! You have successfully installed PHP on Windows 11. This setup allows you to run PHP scripts locally and start building dynamic web applications. For a seamless development experience, consider using IDEs like VS Code, PhpStorm, or Sublime Text. Happy coding! 🚀

Post Views: 1,676
  • Download PHP
  • How to install Php in Windows 11?
  • install Php
  • install Php in Windows
  • install Php in Windows 11
  • php
Subscribe
Login
Notify of
guest
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
  • Master the Machine Learning Lifecycle:Guide to Becoming a Certified MLOps Architect
  • How to Build a Project-Level AI Memory System That Works Across Codex, Claude, and Other AI Coding Tools
  • Certified MLOps Professional: A Deep Dive into the Certified MLOps Professional Certification
  • Certified MLOps Engineer : The Comprehensive Guide to Mastering Machine Learning Operations
  • Codex vs Claude: A Complete Practical Guide for Modern Developers (2026)
  • Certified AIOps Professional Program A Guide to Career Growth
  • Keycloak Multi-Client Architecture with Project-Based Email Validation (Student, Trainer, Company, Consulting)
  • Incorrect definition of table mysql.column_stats
  • Mautic and PHP 8.3 Compatibility Guide (2026)
  • Certified AIOps Engineer: The Complete Career Path and Certification Guide
  • How to Rename Apache Virtual Host Files Safely (Step-by-Step Guide for Linux)
  • AIOps Foundation Certification: Everything You Need to Know to Get Certified
  • DevOps to Certified Site Reliability Professional: A Senior Mentor’s Guide
  • Certified Site Reliability Manager Training, Preparation, and Career Mapping
  • Certified Site Reliability Architect: The Complete Career Guide
  • What Is a VPN? A Complete Beginner-to-Advanced Tutorial
  • How to Install, Secure, and Tune MySQL 8.4 on Ubuntu 24.04 for Apache Event MPM and PHP-FPM
  • Complete Guide to Certified Site Reliability Engineer Career
  • Certified DevSecOps Professional Step by Step
  • Certified DevSecOps Manager: Complete Career Guide
  • Certified DevSecOps Engineer: Skills, Career Path and Certification Guide
  • Step-by-Step: Become a Certified DevSecOps Architect
  • Tuning PHP 8.3 for Apache Event MPM and PHP-FPM on Ubuntu: A Complete Step-by-Step Production Guide
  • Complete Step-by-Step Guide to Configure Apache Event MPM, Create index.php, Set Up VirtualHost, and Fix Ubuntu Default Page
  • Convert XAMPP Apache to Event MPM + System PHP-FPM
  • The Gateway to System Observability Engineering (MOE)
  • How to Finetune Apache and Prove It Works: A Real-World Guide to Testing Performance, Concurrency, HTTP/2, Memory, CPU, and Security
  • Building a High-Performance Apache Event MPM + PHP-FPM + MariaDB Stack (Advanced Server Optimization Guide)
  • Master Infrastructure as Code: The Complete Hashicorp Terraform Associate Guide
  • Building a High-Performance Apache Server with Event MPM + PHP-FPM (Step-by-Step Guide)

Recent Comments

  1. emmy day on SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘provider’ in ‘field list’
  2. digital banking on Complete Tutorial: Setting Up Laravel Telescope Correctly (Windows + XAMPP + Custom Domain)
  3. SAHIL DHINGRA on How to Uninstall Xampp from your machine when it is not visible in Control panel programs & Feature ?
  4. Abhishek on MySQL: List of Comprehensive List of approach to secure MySQL servers.
  5. Kristina on Best practices to followed in .httacess to avoid DDOS attack?

Archives

  • April 2026
  • March 2026
  • February 2026
  • January 2026
  • December 2025
  • November 2025
  • October 2025
  • September 2025
  • August 2025
  • July 2025
  • June 2025
  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022

Categories

  • Ai
  • AI Blogging
  • AiOps
  • ajax
  • Android Studio
  • Antimalware
  • Antivirus
  • Apache
  • Api
  • API Security
  • Api Testing
  • APK
  • Aws
  • Bike Rental Services
  • ChatGPT
  • Code Linting
  • Composer
  • cPanel
  • Cyber Threat Intelligence
  • Cybersecurity
  • Data Loss Prevention
  • Database
  • dataops
  • Deception Technology
  • DeepSeek
  • Devops
  • DevSecOps
  • DevTools
  • Digital Asset Management
  • Digital Certificates
  • Docker
  • Drupal
  • emulator
  • Encryption Tools
  • Endpoint Security Tools
  • Error
  • facebook
  • Firewalls
  • Flutter
  • git
  • GITHUB
  • Google Antigravity
  • Google play console
  • Google reCAPTCHA
  • Gradle
  • Guest posting
  • health and fitness
  • IDE
  • Identity and Access Management
  • Incident Response
  • Instagram
  • Intrusion Detection and Prevention Systems
  • jobs
  • Joomla
  • Keycloak
  • Laravel
  • Law News
  • Lawyer Discussion
  • Legal Advice
  • Linkedin
  • Linkedin Api
  • Linux
  • Livewire
  • Mautic
  • Medical Tourism
  • MlOps
  • MobaXterm
  • Mobile Device Management
  • Multi-Factor Authentication
  • MySql
  • Network Traffic Analysis tools
  • Paytm
  • Penetration Testing
  • php
  • PHPMyAdmin
  • Pinterest Api
  • Quora
  • SAST
  • SecOps
  • Secure File Transfer Protocol
  • Security Analytics Tools
  • Security Auditing Tools
  • Security Information and Event Management
  • Seo
  • Server Management Tools
  • Single Sign-On
  • Site Reliability Engineering
  • soft 404
  • software
  • SuiteCRM
  • SysOps
  • Threat Model
  • Twitter
  • Twitter Api
  • ubuntu
  • Uncategorized
  • Virtual Host
  • Virtual Private Networks
  • VPNs
  • Vulnerability Assessment Tools
  • Web Application Firewalls
  • Windows Processor
  • Wordpress
  • WSL (Windows Subsystem for Linux)
  • X.com
  • Xampp
  • Youtube
©2026 DevSecOps Now!!! | WordPress Theme: EcoCoded
wpDiscuz