Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHPStorm 7 don't find PHP Interpreter on Windows

I have installed trial version of PhpStorm 7 on my Windows 7 64 bit. Php Storm is installed in "C:\Program Files (x86)\JetBrains\PhpStorm 7.0\bin\PhpStorm.exe" and my Xampp server in in E:\xampp. I go to set php interpreter but PhpStorm don't find it. I opened phpinterpreter windows and choose directory E:\xampp\php but I receive more error like this

Php Startup: Unable to load dynamic lybrary "\xampp\php\ext\php_xxxxxx.dll"......

It seems that PhpStorm 7 trunks the path excluding the disc and cannot find the installation of php over xampp directory.

I forced write correct value in C:\Users\currentuser\.WebIde70\config\options\php.xml , but I have same result P

hp version: Not installed
Debugger: Not installed

but I have both installed and running.

What should I do to correct the problem?

Thanks very much

like image 861
Emac Avatar asked Oct 31 '13 10:10

Emac


People also ask

How configure PHPStorm in PHP?

Configure PHPStorm interpreter In PHPStorm, go to "File" menu (Windows), then Settings ( Ctrl + Alt + S ). Go to "Languages & Frameworks", then click on "PHP". Click the ... button from the "CLI Interpret" field.

Do I need to install PHP for PHPStorm?

Configure PHP development environment PHP development requires the following software installed and configured: A Web server and a PHP engine are mandatory. Starting with version 5.4, PHP interpreters contain a built-in Web server.


1 Answers

This worked for me, however I'm in PhpStorm 8 and the layout is entirely different. I'll still pop this here in case someone else needs these instructions.

  • Install your prefered PHP from here: http://windows.php.net/ (It doesn't need to be in your PATH, just pop it anywhere)
  • In PhpStorm, go to File -> Settings
  • In settings go to Languages & Frameworks -> PHP
  • Click the ellipsis next to Interpretter (this opens a new window)
  • Click the plus button in the top left and choose "Other Local"
  • Set the PHP exectuable to wherever you put your download above. It just needs to see php.exe

That's it. I've been using that to run Composer from PhpStorm... though I'm not convinced by the results.

As an alternative I would highly recommend using Vagrant for your PHP needs. You don't need PHP in Windows at all, and I've been developing this way for about 2 years. PhpStorm's remote support (including Vagrant, SSH and Remote Interpreter) is now excellent. I think the only thing I've been irritated by is PHPUnit Code Coverage is still broken.

like image 94
DanielM Avatar answered Nov 27 '22 21:11

DanielM