Share this Article !

(100% worked) How to fix PHP is not recognized as an internal or external command for Xampp Or Wamp

5 steps for fixing PHP is not recognized as an internal or external command for Xampp rr Wamp.

You can follow the tips below.

Go to My Computer->properties -> Advanced system setting-> Environment Variables->path (click on Edit)

Step 1 : First, you need to right click on This PC -> Properties

Step 2 : next Go to Advanced System Settings

Step 3 : Go to environment variables -> system variables , modify the path and click edit.

Step 4 : add new button and insert your php file path like given below.

  • for user that use Xampp: insert D:\xampp\php\ and D:\xampp\php\php.exe (xampp location is on drive D and if you installed on drive C, you need to use drive c instead of drive D.) to variable Path.
  • for user that use Wamp: insert D:\wamp\bin\php and D:\wamp\bin\php\your php version\php.exe (wamp location is on drive D and if you installed on drive C, you need to use drive c instead of drive D.) to variable Path.

Step 5 : Finally, you can test by opening Terminal (CMD) and checking your php version

by typing php -v

Share this Article !


You may like this
Top 10 most popular programming language in 2025

Top 10 most popular programming language in 2025

Nowadays, we know and see coding skills hold immense value in technology beyond 1990 till 2025, with effects on career advancement being profound. Extremely popular languages such as Python, JavaScript, and Java...
how to improve seo and increase audience for your website

how to improve seo and increase audience for your website

To increase your audience and boost your SEO (Search Engine Optimization), you’ll need to implement a mix of technical strategies, content creation, and marketing campaigns. This is a step-by-step guide to help...
Moodle – how get total course completed and login chart in current year into dashboard page

Moodle – how get total course completed and login chart in current year into dashboard page

To add the total course completed and login chart in the current year to the dashboard, you need to get a query from course complete and login from the database. We created...
How to loop post under category in wordpress

How to loop post under category in wordpress

To loop posts under categories, you should know something. get_categories($args): Arguments to retrieve categories and we want to return array List of category objects that   ‘parent’ => 0 .  $categories =...
boostrap columns left in desktop and right in mobile

boostrap columns left in desktop and right in mobile

When you want to change columns left on desktop and right on mobile, we always think about the responsive screen.This tip will help you. following the below code : <div class="container">  ...
Boost your revenue potential with the new ad intents format for Auto ads

Boost your revenue potential with the new ad intents format for Auto ads

google adsense released on 16 April 2024 about the new ad intents format for Auto ads,google adsense’re launching a new format for Auto ads called ‘ad intents’. Ad intents is an intent-driven...