PHP AND MYSQL MUST BE IN THE ENVIRONMENT PATH VARIABLE
If your using xampp below is the step how to add php on environment variable
Please set Environment Variable as per below mention steps.
- Right Click on MY Computer Icon and Click on Properties or Go to "Control Panel\System and Security\System".
- Select "Advanced System Settings" and select "Advance" Tab
- Now Select "Environment Variable" option and select "Path" from "System Variables" and click on "Edit" button
- Now set path where php.exe file is available - For example if XAMPP install in to C: drive then Path is "C:\xampp\php"
- After set path Click Ok and Apply.
For mysql
- "C:\xampp\mysql\bin" should also be added to "Path"