This Question is Answered

1 "helpful" answer available (2 pts)
7 Replies Last post: Dec 19, 2013 5:00 AM by Andriy Bazanov  
Kevin Burton Novice 132 posts since
Jan 30, 2013
Currently Being Moderated

Dec 18, 2013 11:35 PM

PHP Interpreter for WAMP installation?

I tried to set the PHP interpreter and I received the attached error message. The error message indicates '(Invalid library (appears to be a Zend Extension, try loading using zend_extension=php_opcache.dll from php.ini). I added the recommended line to php.ini but still received the same error message. Ideas?

Attachments:
Andriy Bazanov Master 3,911 posts since
May 28, 2010
Currently Being Moderated
Dec 19, 2013 12:16 AM in response to: Kevin Burton
Re: PHP Interpreter for WAMP installation?
Ideas?

Post your whole php.ini.

Andriy Bazanov Master 3,911 posts since
May 28, 2010
Currently Being Moderated
Dec 19, 2013 2:38 AM in response to: Kevin Burton
Re: PHP Interpreter for WAMP installation?
  • Line Number 890
  • Line Number 913

First one must be commented out -- currently you are loading the same library twice using different directives.

 

Plus, better move all zend_extension= entries before extension= ones.

 

 

I'm also unsure about line number 885 -- I think (although I could be wrong here) that comment cannot be placed later in the line -- it must be first non-whitespace character in the line (in other words -- delete the comment at the end of the line).

Andriy Bazanov Master 3,911 posts since
May 28, 2010
Currently Being Moderated
Dec 19, 2013 4:01 AM in response to: Kevin Burton
Re: PHP Interpreter for WAMP installation?
Now what about the debugger. The interpreter says that the debugger is not installed.

I'm pretty sure you can use "Find" command of your favorite text editor and search for "xdebug" string in php.ini (or whatever debugger you use there).

 

I found no matches for xdebug or zend debugger. Which means that PhpStorm is correct -- the issue is with your PHP installation (configuration) and not PhpStorm.

 

-----

 

You should look at your WAMP server manual for how to enable/install xdebug instructions (this would be the easiest way since it should come as a part of the bundle). But in any case -- http://confluence.jetbrains.com/display/PhpStorm/Debugging+PHP+Applications -- there are articles about installing xdebug or zend debugger.

Andriy Bazanov Master 3,911 posts since
May 28, 2010
Currently Being Moderated
Dec 19, 2013 5:00 AM in response to: Kevin Burton
Re: PHP Interpreter for WAMP installation?

Well .. I do know that some of Apache+PHP bundles do have separate php.ini for web and CLI interfaces.

 

You can easily find out which one you need to edit from phpinfo(); output (or "php -i" for CLI) -- look at "Loaded Configuration File" field of the top/header table. If your installation looks for more .ini files, then look at "Additional .ini files parsed" field as well. Unfortunately I cannot tell you what file exactly you need to edit and where it will be located -- never used those bundles myself -- I always setting it up from separate standalone components (easier to upgrade and maintain; plus I mostly use Windows' own IIS these days).

 

The "PHP Interpreters" from PhpStorm will only use CLI mode. But if you need to debug web app as well then you will need to edit another php.ini (the one for web) as well (this one will not be called by PhpStorm directly, but will be used by Apache when you execute your script in web browser). The PHP Interpreter is only required if you going to execute any PHP activity in CLI mode (PHPUnit/composer/PHP Script/CodeSniffer/etc).

More Like This

  • Retrieving data ...