PHPstorm cannot find php
Hello,
I installed phpstorm so I can learn PHP.
Because phpstorm could not find PHP I installed easyphp.
But I cannot point phpstorm so I will use the php installed by easyphp.
Regards,
Roelof
Edit 1: I forget to say I work on a Windows 7 computer
请先登录再写评论。
Hi there,
Your are on Windows. Now find your php.exe. Lets assume that it is in C:\PHP\php.exe.
In PhpStorm you need provide path to that folder, which is C:\PHP (based on our example)
If PhpStorm is still unable to recognize it -- maybe you have problem in your php.ini. I suggest run it in command line and see if it will produce any errors (e.g. php.exe -v or php.exe -i). You can always delete your php.ini and use one of the defaults suppried with php (e.g. php.ini-development -- rename to php.ini and configure as required).
Regarding EasyPHP. It can be installed in folder named something like this (depends how you installed it, of course): C:\EasyPHP-5.3.9\php\php539x130201222616\php.exe
Also -- have a look at this thread: http://devnet.jetbrains.com/thread/441018
I do not really think that it applies to you since you just started to learn PHP .. but who knows...
The post is old but i have the same problem with last version of PHPSTORM
i post the same post about phpstorm not recognize php.exe
I test php -i and phph -v
My cursor what set to this path >cd ....
>C:\EasyPHP-5.3.9\php\php539x130201222616>
1) php -i output is big ; it doesn't help if we don't what variables/things to search focus !!
I have
PHPRC= > C:\Easyphp\apache
PHP_PEAR_PHP_BIN => C:\Easyphp\php\php539x130201222616\php.exe
2) php -v return this
PHP 5.3.9 (cli) (built: Jan 10 2012 16:19:02)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
with Xdebug v2.1.2, Copyright (c) 2002-2012, by Derick Rethans
All seem to work using CLI but not in phpstorm I ll try eclipse !!!
refer phpinfo.php to web configuration file is locate in File C:\EasyPHP-5.3.9\apache\php.ini
regard's
http://devnet.jetbrains.com/message/5499692#5499692