This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
3 Replies Last post: Sep 25, 2013 3:26 AM by samsam bogard  
roelof W Newbie 3 posts since
Oct 13, 2010
Currently Being Moderated

Feb 11, 2013 10:20 PM

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

Andriy Bazanov Master 3,639 posts since
May 28, 2010
Currently Being Moderated
Feb 11, 2013 10:30 PM in response to: roelof W
Re: PHPstorm cannot find php

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

Andriy Bazanov Master 3,639 posts since
May 28, 2010
Currently Being Moderated
Feb 12, 2013 10:36 PM in response to: roelof W
Re: PHPstorm cannot find php

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...

samsam bogard Newbie 51 posts since
Dec 18, 2011
Currently Being Moderated
Sep 25, 2013 3:35 AM in response to: Andriy Bazanov
Re: PHPstorm cannot find php

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

More Like This

  • Retrieving data ...