Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

davy_yg's avatar
Level 27

Install php

I have xampp installed.

Yet, when trying to run:

F:\xampp\htdocs\sesa_final\sesa-e-commerce>php artisan serve 'php' is not recognized as an internal or external command, operable program or batch file.

F:\xampp\htdocs\sesa_final\sesa-e-commerce>php 'php' is not recognized as an internal or external command, operable program or batch file.

I try to install php:

ref: https://www.w3resource.com/php/installation/install-php-on-windows.php

I downloaded php 7.2

ref: https://www.php.net/downloads.php

extract it to F:/php folder but cannot find php.ini-recommonded file.

Is php.ini-recommonded really the name of the file that I should rename to php.ini ?

0 likes
3 replies
davy_yg's avatar
Level 27

I am using XAMPP. Just trying to fix this php installation. Now, if I type php it seems like it hangs. Any clue why? I already try mapping the env path from xampp/php

davy_yg's avatar
davy_yg
OP
Best Answer
Level 27

I map the environment variable to:

Environment variable F:\xampp\php F:\xampp\php\ext

System variable Variable Value PHPRC F:\xampp\php

Yet, when I test typing:

F:>php

Nothing happen.

F:\xampp\htdocs>php -v

PHP 7.2.24 (cli) (built: Oct 22 2019 11:18:58) ( ZTS MSVC15 (Visual C++ 2017) x64 ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

I think it works!

Please or to participate in this conversation.