我已经在Windows机器上的Apache文件夹中安装了PHPstorm 10.0.3 Trial和PHP,但是当我使用PHP解释器时,我得到错误502 Bad Gateway大约50-90%的时间.
当这只是HTML页面时,它可以100%的时间工作.
编辑:我做的是'运行'我的template.php(或任何其他)文件,然后在浏览器中显示url:http:// localhost:63342/htdocs/template.php
我测试过:PHP 7.0.2,PHP 5.3(ISS),第一个线程安全,第二个线程安全禁用,结果相同.在Webstorm中,我的路径指向PHP-CGI.exe,这在不同主题中存在问题.
只提示我发现了什么,我可以通过点击来查找:PHPstorm/Help/Show Log in Explorer.因此,每当我得到错误502时,就会出现这样的问题:
2016-01-14 09:57:21,510 [1084784] ERROR - ins.io.ChannelExceptionHandler - PhpStorm 10.0.3 Build #PS-143.1770
2016-01-14 09:57:21,510 [1084784] ERROR - ins.io.ChannelExceptionHandler - JDK: 1.8.0_51
2016-01-14 09:57:21,510 [1084784] ERROR - ins.io.ChannelExceptionHandler - VM: Java HotSpot(TM) Server VM
2016-01-14 09:57:21,510 [1084784] ERROR - ins.io.ChannelExceptionHandler - Vendor: Oracle Corporation
2016-01-14 09:57:21,510 [1084784] ERROR - ins.io.ChannelExceptionHandler - OS: Windows 7
2016-01-14 09:57:21,511 [1084785] INFO - ins.io.ChannelExceptionHandler - Channel will be closed due to error
2016-01-14 09:57:24,273 [1087547] ERROR - ins.io.ChannelExceptionHandler - minimumReadableBytes: -2815 (expected: >= 0)
java.lang.IllegalArgumentException: minimumReadableBytes: -2815 (expected: >= 0)
at io.netty.buffer.AbstractByteBuf.checkReadableBytes(AbstractByteBuf.java:1143)
at io.netty.buffer.AbstractByteBuf.skipBytes(AbstractByteBuf.java:731)
at org.jetbrains.io.Decoder.getBufferIfSufficient(Decoder.java:131)
at org.jetbrains.io.fastCgi.FastCgiDecoder.messageReceived(FastCgiDecoder.kt:56)
at org.jetbrains.io.Decoder.channelRead(Decoder.java:38)
at io.netty.channel.ChannelHandlerInvokerUtil.invokeChannelReadNow(ChannelHandlerInvokerUtil.java:83)
at io.netty.channel.DefaultChannelHandlerInvoker.invokeChannelRead(DefaultChannelHandlerInvoker.java:163)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:155)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:950)
at io.netty.channel.oio.AbstractOioByteChannel.doRead(AbstractOioByteChannel.java:166)
at io.netty.channel.oio.AbstractOioChannel$1.run(AbstractOioChannel.java:38)
at io.netty.channel.ThreadPerChannelEventLoop.run(ThreadPerChannelEventLoop.java:52)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:742)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:55)
Run Code Online (Sandbox Code Playgroud)
minimumReadableBytes正在从记录变为记录.
您正在使用PhpStorm自己的内置Web服务器,它现在有一些问题(特别是对于POST请求,例如WEB-17317).
解决方案是使用您自己的Web服务器(Apache/IIS/nginx /等).
In place
类型应该没问题,只要您的Apache/IIS可以从该位置提供文件; 否则要么配置Web服务器才能这样做..或者使用其他类型的部署(例如Local or Mounted Folders
,IDE将文件复制到另一个位置)现在IDE将在您使用Open in Browser
或运行/调试操作时使用该基本URL (注意:它不会影响任何现有的运行/调试配置 - 只有未来的;您必须手动更新当前的运行/调试配置).
归档时间: |
|
查看次数: |
3253 次 |
最近记录: |