Categories
php Windows 10

Fixed: php is not recognized as an internal or external command

If you are getting “php is not recognized as an internal or external command” from your Microsoft Windows Command Prompt.

Then you need to add php folder location path to the system environment variables. this post is going to show you how to add php to system path.

Copy to php folder location path

Open “This PC” on Windows 10 or my computer on windows 7 and locate your php folder in respective software package. I am using xampp

php location path on windows 10

Now, Copy the php folder 📂 path

Windows 10 System Environment Variables

Hit the Windows Key on your keyboard and type “vari” and you should see “system environment variables” option from control panel, now hit “Enter” key on your keyboard.

Now locate “Environment Variables”

Click environment variables

Edit User 👤 & System 💻 Environment Variables Path

On this new windows, select the ‘Path’ under user/system environment variable and hit “Edit” button

Now on the edit windows, click “New” button 🔳 on the right and paste the php folder location path

Click NEW and paste the php folder location path then hit OK, OK, OK, and OK

You are done.. Just relaunch the Windows Command Prompt and type

php -v

Similar Post:

How to Install PHP, Apache2 and MySQL on Windows

Now you should get something like this…

Watch me fix “php is not recognized as an internal or external command”

MySQL is not recognized as an internal or external command

I assume that you already have  installed MySQL on your Windows operating system and you are trying to access it through command prompt or powershell and you are getting this message MySQL is not recognised as an internal or external command, operable program or batch file. 

I completely understand why you are getting this message. Basically we need to add MySQL to the systems variable path.

To add MySQL to the system’s variable path, we need to locate the Bin folder in MySQL installation directory and then add it to the system’s variable path.

 Alright let’s do it

Watch me fix – MySQL is not recognized as an internal or external command

By Tube Mint

I am a YouTuber and I also do niche marketing. In the process of create my niche blog using WordPress, Drupal, and GatsbyJS, I learned a few things like html, css, JS, CMS, MVC frameworks, C++, Python, Ruby, MySQL, Windows and Linux. After some time.. I realized that I can share my knowledge with people on YouTube and through my blog. So, here I am. You can ask me if you have any question about these technologies.
Thanks,
@TubeMint