PHP is not regognized as an internal or external command

Problems with the Windows version of XAMPP, questions, comments, and anything related.

PHP is not regognized as an internal or external command

Postby acruns » 09. April 2013 15:23

Greetings everyone.

I have installed xampp on Windows 2008 R2 x64 with Apache, mySQL and PHP. The webserver runs fine but when I attempt to execute a php script or run a bat that calls a php Windows returns with 'php' is not recognized as internal or external command, operable program or batch file. It doesn't seem that I can run php from the command line. I have added the path to php.exe to my environment variables but that still doesn't seem to make any difference, I even manually associated php files with php.exe. Any ideas on how I can get php to work from the command line without installing php outside of xampp?

Thanks!
acruns
 
Posts: 1
Joined: 09. April 2013 15:17
XAMPP Version: 5.6.3
Operating System: Windows Server 2008 R2

Re: PHP is not regognized as an internal or external command

Postby Altrea » 09. April 2013 15:42

Hi acruns,

acruns wrote:I have added the path to php.exe to my environment variables but that still doesn't seem to make any difference

That must work if done correctly.

best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 6623
Joined: 17. August 2009 13:05
XAMPP Version: 5.5.19
Operating System: W7Ux64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 66 guests