Sunday, August 10, 2014

Install PHP in windows to run from cmd

Download the latest version of PHP for windows from here : http://windows.php.net/download/

Unzip and move folder to C: or where you want and then add the path to the system path.
Copy the php.ini-production into php.ini in the same folder.

Add php location to system path so you can run it from CMD.
Right click on My Computer and select Properties then follow instruction in the image below.
how to add php exe to system path


You need to install if you don't already have it  Visual C++ Redistributable for Visual Studio 2012 otherwise you will receive the error :
The Program can't start because MSVCR110.dll is missing from your computer. Try reinstalling the program to fix this problem.

http://www.microsoft.com/en-us/download/details.aspx?id=30679

Run php to see that it works.

No comments:

Post a Comment