Configuration to use Review PHP settings

Everything related to PHP code intelligence seems to work as expected but I've never been able to use the Review PHP settings feature of the Create New Project wizard because I always get:

Failed to determine PHP installation on server

It's all local development stuff I have full control on but documentation does not seem to explain what PhpStorms is looking for in my server.

According to Apache logs, it's failing to load a randomly named *.php file:

192.168.100.114 - - [11/Mar/2015:09:30:11 +0100] "HEAD / HTTP/1.1" 302 - "-" "Jakarta Commons-HttpClient/3.1"
192.168.100.114 - - [11/Mar/2015:09:30:12 +0100] "HEAD /es/ HTTP/1.1" 200 - "-" "Jakarta Commons-HttpClient/3.1"
192.168.100.114 - - [11/Mar/2015:09:30:13 +0100] "HEAD / HTTP/1.1" 302 - "-" "Jakarta-Commons-VFS"
192.168.100.114 - - [11/Mar/2015:09:30:13 +0100] "HEAD /es/ HTTP/1.1" 200 - "-" "Jakarta-Commons-VFS"
192.168.100.114 - - [11/Mar/2015:09:31:20 +0100] "HEAD / HTTP/1.1" 302 - "-" "Jakarta Commons-HttpClient/3.1"
192.168.100.114 - - [11/Mar/2015:09:31:20 +0100] "HEAD /es/ HTTP/1.1" 200 - "-" "Jakarta Commons-HttpClient/3.1"
192.168.100.114 - - [11/Mar/2015:09:31:20 +0100] "HEAD /PhpStorm-ce57e9d6-8f44-4aa0-9e08-f9fb31a7b662.php HTTP/1.1" 404 - "-" "Jakarta-Commons-VFS"

Any idea about that?

0

Can you please provide the idea.log (Help | Show log) here or to the support: https://intellij-support.jetbrains.com/anonymous_requests/new ?

0

These are the entries from today:

2015-03-16 11:22:08,364 [      1]   INFO -        #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2015-03-16 11:22:09,212 [    849]   INFO -        #com.intellij.idea.Main - IDE: PhpStorm (build #PS-139.1348, 12 Feb 2015 00:00)
2015-03-16 11:22:09,212 [    849]   INFO -        #com.intellij.idea.Main - OS: Windows 7 (6.1, x86)
2015-03-16 11:22:09,212 [    849]   INFO -        #com.intellij.idea.Main - JRE: 1.7.0_60-b19 (Oracle Corporation)
2015-03-16 11:22:09,212 [    849]   INFO -        #com.intellij.idea.Main - JVM: 24.60-b09 (Java HotSpot(TM) Server VM)
2015-03-16 11:22:09,242 [    879]   INFO -        #com.intellij.idea.Main - JVM Args: -Xms128m -Xmx512m -XX:MaxPermSize=250m -XX:ReservedCodeCacheSize=150m -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Djsse.enableSNIExtension=false -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -Xbootclasspath/a:C:\Program Files (x86)\JetBrains\PhpStorm 8.0.2\lib\boot.jar -Didea.platform.prefix=PhpStorm -Didea.no.jre.check=true -Didea.paths.selector=WebIde80
2015-03-16 11:22:10,281 [   1918]   INFO -        #com.intellij.idea.Main - JNA library loaded (32-bit) in 1039 ms
2015-03-16 11:22:10,304 [   1941]   INFO - penapi.util.io.win32.IdeaWin32 - Native filesystem for Windows is operational
2015-03-16 11:22:10,306 [   1943]   INFO -        #com.intellij.idea.Main - Using "FocusKiller" library to prevent focus stealing.
2015-03-16 11:22:23,259 [  14896]   INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor uml-properties-support.xml
2015-03-16 11:22:23,288 [  14925]   INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor uml-java-support.xml
2015-03-16 11:22:24,789 [  16426]   INFO - llij.ide.plugins.PluginManager - 57 plugins initialized in 4952 ms
2015-03-16 11:22:24,805 [  16442]   INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: ASP (0.1), Apache config (.htaccess) support (139.1348), Behat Support (139.1348), Blade Support (139.1348), CSS Support, CVS Integration (11), CoffeeScript (2.0), Command Line Tool Support (139.1348), Database Tools and SQL (1.0), Drupal Support (139.1348), File Watchers (139.1348), Framework MVC Structure Support (139.1348), GNU GetText files support (*.po) (136.SNAPSHOT), Gherkin (999.999), Git Integration (8.1), GitHub, Google App Engine Support for PHP (139.1348), HAML, HTML Tools (2.0), IDEA CORE, Ini4Idea (139.1348), IntelliLang (8.0), Java Server Pages Integration (1.0), JavaScript Debugger (1.0), JavaScript Intention Power Pack (0.9.4), JavaScript Support (1.0), LESS support, PHP (139.1348), PHP Remote Interpreter (139.1348), Phing Support (139.1348), QuirksMode, REST Client, ReStructuredText Support (136.SNAPSHOT), Refactor-X (2.01), Remote Hosts Access (0.1), SASS support, SSH Remote Run (0.1), Subversion Integration (1.1), Task Management (1.0), Terminal (0.1), TextMate bundles support (VERSION), Twig Support (139.1348), UML Support (1.0), Vagrant (139.1348), W3C Validators (2.0), WordPress Support (139.1348), XPathView + XSLT Support (4), XSLT-Debugger (1.4), YAML, hg4idea (10.0)
2015-03-16 11:22:24,806 [  16443]   INFO - llij.ide.plugins.PluginManager - Loaded custom plugins: BashSupport (1.4.0_build139), CMD Support (1.0.5), CakeStorm (0.5.3), Copy/Paste Stack (1.1.5), EditorConfig (0.4.1), Markdown (0.9.7)
2015-03-16 11:22:24,806 [  16443]   INFO - llij.ide.plugins.PluginManager - Disabled plugins: Perforce Integration (2.0)
2015-03-16 11:22:30,483 [  22120]   INFO - ellij.concurrency.JobScheduler - 50 ms execution limit failed for: com.intellij.openapi.progress.impl.ProgressManagerImpl$1@1d05d3b; elapsed time was 66ms
2015-03-16 11:22:30,682 [  22319]   INFO - ellij.util.io.PagedFileStorage - lower=100; upper=200; buffer=10; max=502530048
2015-03-16 11:22:31,237 [  22874]   INFO - api.vfs.impl.local.FileWatcher - Starting file watcher: C:\Program Files (x86)\JetBrains\PhpStorm 8.0.2\bin\fsnotifier.exe
2015-03-16 11:22:31,388 [  23025]   INFO - api.vfs.impl.local.FileWatcher - Native file watcher is operational.
2015-03-16 11:22:37,596 [  29233]   INFO - lij.diagnostic.DebugLogManager - Set DEBUG for the following categories: []
2015-03-16 11:22:42,561 [  34198]   INFO - ellij.concurrency.JobScheduler - 50 ms execution limit failed for: com.intellij.openapi.progress.impl.ProgressManagerImpl$1@1d05d3b; elapsed time was 75ms
2015-03-16 11:22:53,104 [  44741]   INFO - pl.stores.ApplicationStoreImpl - 83 application components initialized in 27807 ms
2015-03-16 11:22:54,010 [  45647]   INFO - .intellij.idea.IdeaApplication - App initialization took 50252 ms
2015-03-16 11:23:05,312 [  56949]   INFO - ellij.project.impl.ProjectImpl - 19 project components initialized in 2118 ms
2015-03-16 11:23:05,312 [  56949]   INFO - le.impl.ModuleManagerComponent - 0 module(s) loaded in 0 ms
2015-03-16 11:25:20,158 [ 191795]   INFO - s.webDeployment.PublishUtils$2 - Using "C:\Users\ALVARO~1.GON\AppData\Local\Temp\vfs_cache" as temporary files store.
2015-03-16 11:26:31,851 [ 263488]   INFO - ellij.project.impl.ProjectImpl - 126 project components initialized in 6319 ms
2015-03-16 11:26:32,223 [ 263860]   INFO - le.impl.ModuleManagerComponent - 1 module(s) loaded in 371 ms
2015-03-16 11:26:33,255 [ 264892]   INFO - om.intellij.util.ProfilingUtil - Profiling agent is not enabled. Add -agentlib:yjpagent to idea.vmoptions if necessary to profile IDEA.
2015-03-16 11:26:41,370 [ 273007]   INFO - rains.ide.BuiltInServerManager - built-in server started, port 63342
2015-03-16 11:26:43,280 [ 274917]   INFO - indexing.UnindexedFilesUpdater - Indexable files iterated in 3832 ms
2015-03-16 11:26:43,281 [ 274918]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 789 files to update
2015-03-16 11:26:52,350 [ 283987]   INFO - tor.impl.FileEditorManagerImpl - Project opening took 26933 ms
2015-03-16 11:27:25,948 [ 317585]   INFO - ellij.concurrency.JobScheduler - 50 ms execution limit failed for: com.intellij.openapi.progress.impl.ProgressManagerImpl$1@1d05d3b; elapsed time was 65ms


I've only tried to create a test project (to trigger the error message) and loaded some other stuff to reach the "Help" menu.

0

I figured out myself, with the help of Process Monitor. PhpStorm writes a temporary file with PHP code into the web server and tries to load it back and parse its output. However, it saves the file into the project root, rather than the resources root. I hope this helps others.

0

请先登录再写评论。