简体   繁体   English

无法在PhpStorm中配置PHP内置服务器

[英]Cannot configure PHP built-in server in PhpStorm

I am following JetBrains' official instructions on setting up the built-in server HERE 我正在按照JetBrains的官方说明在此处设置内置服务器

I am currently on the "Enabling a built-in Web server" section: 我目前在“启用内置Web服务器”部分:

  1. Download PHP 5.4.0 or higher. 下载PHP 5.4.0或更高版本。

Done! 完成! There is now a folder on my desktop named "php-7.1.4", untouched since download, now for number 2: "Configure the downloaded PHP interpreter in PhpStorm" ( HERE ) 现在,我的桌面上有一个名为“ php-7.1.4”的文件夹,自下载以来未更改,现在的文件夹编号为2:“在PhpStorm中配置下载的PHP解释器”( 此处

I am stuck on 4.2, when I select the directory of the folder on my desktop, nothing happens. 我被困在4.2,当我选择桌面上的文件夹目录时,什么也没有发生。 It does not "display the version of the PHP engine detected in the specified folder", as per the instructions. 按照说明,它不会“显示在指定文件夹中检测到的PHP引擎的版本”。 It simply continues to say PHP is not installed. 只是继续说未安装PHP。

What do I do? 我该怎么办?

After abandoning the built-in server in favour of MAMP, I have found the solution. 在放弃内置服务器以支持MAMP之后,我找到了解决方案。 The download from php.net seems to be all kinds of messed up. 从php.net进行的下载似乎杂乱无章。

My solution is to download MAMP and use the php executable it provides (MAMP/bin/php/php[version]/bin/php), but then just continue without using the MAMP server. 我的解决方案是下载MAMP并使用它提供的php可执行文件(MAMP / bin / php / php [version] / bin / php),但接下来就可以继续使用而不使用MAMP服务器。

Works fine! 工作正常!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM