Configuring PhpStorm for using built-in web server in OS X Mojave
The question is the following: what are the minimal-required steps to have PhpStorm configured for using built-in web-server on Mojave system?
I mean, installing the least possible additional software on my system (just started from scratch recently and want to keep number of installed software at the minimal level).
I have php
and php-fpm
installed "out of the box":
$ php -v
PHP 7.1.19 (cli) (built: Aug 17 2018 18:03:17) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
$ php-fpm -v
PHP 7.1.19 (fpm-fcgi) (built: Aug 17 2018 18:03:20)
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
Still, when trying to configure "PHP interpreter" in PhpStorm, I end up with this error message:
php-cgi not found: Please ensure that configured PHP Interpreter built
as CGI program (--enable-fastcgi was specified)
Doesn't php-fpm
implement Fast-CGI?…
php phpstorm
add a comment |
The question is the following: what are the minimal-required steps to have PhpStorm configured for using built-in web-server on Mojave system?
I mean, installing the least possible additional software on my system (just started from scratch recently and want to keep number of installed software at the minimal level).
I have php
and php-fpm
installed "out of the box":
$ php -v
PHP 7.1.19 (cli) (built: Aug 17 2018 18:03:17) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
$ php-fpm -v
PHP 7.1.19 (fpm-fcgi) (built: Aug 17 2018 18:03:20)
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
Still, when trying to configure "PHP interpreter" in PhpStorm, I end up with this error message:
php-cgi not found: Please ensure that configured PHP Interpreter built
as CGI program (--enable-fastcgi was specified)
Doesn't php-fpm
implement Fast-CGI?…
php phpstorm
Is there a way to install specifically "php-cgi", without pulling the whole "php replacement" from homebrew? (since I already have PHP pre-shipped)
– pilat
Nov 23 '18 at 11:54
Why not try Docker? Ideal solution for your needs (keep minimal software on your host OS).
– LazyOne
Nov 23 '18 at 11:56
@LazyOne Docker is very slow on my system (4G RAM). Even with ":delegated" flag on mounted volumes.. Part of the reason is that the web application I'm working with is critical to FS operations. So,php -S localhost:8000
feels much better. But at this moment I'd like to check PHP Storm's "Built in web-server" way :-)
– pilat
Nov 23 '18 at 12:03
1
PhpStorm's built-in web server is quite simple .. and requires using URL likelocalhost:63342/PROJECT_NAME/path/to/file.php
. So it's suitable for rather simple things only. I suggest using PHP's own built-in web server (the one you have mentioned:php -S localhost:8000
) -- those are different things (not sure what exactly you were referring to in first place, but I thought you were talking about PhpStorm's own web server).
– LazyOne
Nov 23 '18 at 13:20
1
For the 2nd one you need to look at this: jetbrains.com/help/phpstorm/… . If that's you were using ... then AFAIK it should work as long as you can usephp -S localhost:8000
in terminal.
– LazyOne
Nov 23 '18 at 13:25
add a comment |
The question is the following: what are the minimal-required steps to have PhpStorm configured for using built-in web-server on Mojave system?
I mean, installing the least possible additional software on my system (just started from scratch recently and want to keep number of installed software at the minimal level).
I have php
and php-fpm
installed "out of the box":
$ php -v
PHP 7.1.19 (cli) (built: Aug 17 2018 18:03:17) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
$ php-fpm -v
PHP 7.1.19 (fpm-fcgi) (built: Aug 17 2018 18:03:20)
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
Still, when trying to configure "PHP interpreter" in PhpStorm, I end up with this error message:
php-cgi not found: Please ensure that configured PHP Interpreter built
as CGI program (--enable-fastcgi was specified)
Doesn't php-fpm
implement Fast-CGI?…
php phpstorm
The question is the following: what are the minimal-required steps to have PhpStorm configured for using built-in web-server on Mojave system?
I mean, installing the least possible additional software on my system (just started from scratch recently and want to keep number of installed software at the minimal level).
I have php
and php-fpm
installed "out of the box":
$ php -v
PHP 7.1.19 (cli) (built: Aug 17 2018 18:03:17) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
$ php-fpm -v
PHP 7.1.19 (fpm-fcgi) (built: Aug 17 2018 18:03:20)
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
Still, when trying to configure "PHP interpreter" in PhpStorm, I end up with this error message:
php-cgi not found: Please ensure that configured PHP Interpreter built
as CGI program (--enable-fastcgi was specified)
Doesn't php-fpm
implement Fast-CGI?…
php phpstorm
php phpstorm
edited Nov 23 '18 at 11:54
LazyOne
110k21246266
110k21246266
asked Nov 23 '18 at 11:50
pilatpilat
332311
332311
Is there a way to install specifically "php-cgi", without pulling the whole "php replacement" from homebrew? (since I already have PHP pre-shipped)
– pilat
Nov 23 '18 at 11:54
Why not try Docker? Ideal solution for your needs (keep minimal software on your host OS).
– LazyOne
Nov 23 '18 at 11:56
@LazyOne Docker is very slow on my system (4G RAM). Even with ":delegated" flag on mounted volumes.. Part of the reason is that the web application I'm working with is critical to FS operations. So,php -S localhost:8000
feels much better. But at this moment I'd like to check PHP Storm's "Built in web-server" way :-)
– pilat
Nov 23 '18 at 12:03
1
PhpStorm's built-in web server is quite simple .. and requires using URL likelocalhost:63342/PROJECT_NAME/path/to/file.php
. So it's suitable for rather simple things only. I suggest using PHP's own built-in web server (the one you have mentioned:php -S localhost:8000
) -- those are different things (not sure what exactly you were referring to in first place, but I thought you were talking about PhpStorm's own web server).
– LazyOne
Nov 23 '18 at 13:20
1
For the 2nd one you need to look at this: jetbrains.com/help/phpstorm/… . If that's you were using ... then AFAIK it should work as long as you can usephp -S localhost:8000
in terminal.
– LazyOne
Nov 23 '18 at 13:25
add a comment |
Is there a way to install specifically "php-cgi", without pulling the whole "php replacement" from homebrew? (since I already have PHP pre-shipped)
– pilat
Nov 23 '18 at 11:54
Why not try Docker? Ideal solution for your needs (keep minimal software on your host OS).
– LazyOne
Nov 23 '18 at 11:56
@LazyOne Docker is very slow on my system (4G RAM). Even with ":delegated" flag on mounted volumes.. Part of the reason is that the web application I'm working with is critical to FS operations. So,php -S localhost:8000
feels much better. But at this moment I'd like to check PHP Storm's "Built in web-server" way :-)
– pilat
Nov 23 '18 at 12:03
1
PhpStorm's built-in web server is quite simple .. and requires using URL likelocalhost:63342/PROJECT_NAME/path/to/file.php
. So it's suitable for rather simple things only. I suggest using PHP's own built-in web server (the one you have mentioned:php -S localhost:8000
) -- those are different things (not sure what exactly you were referring to in first place, but I thought you were talking about PhpStorm's own web server).
– LazyOne
Nov 23 '18 at 13:20
1
For the 2nd one you need to look at this: jetbrains.com/help/phpstorm/… . If that's you were using ... then AFAIK it should work as long as you can usephp -S localhost:8000
in terminal.
– LazyOne
Nov 23 '18 at 13:25
Is there a way to install specifically "php-cgi", without pulling the whole "php replacement" from homebrew? (since I already have PHP pre-shipped)
– pilat
Nov 23 '18 at 11:54
Is there a way to install specifically "php-cgi", without pulling the whole "php replacement" from homebrew? (since I already have PHP pre-shipped)
– pilat
Nov 23 '18 at 11:54
Why not try Docker? Ideal solution for your needs (keep minimal software on your host OS).
– LazyOne
Nov 23 '18 at 11:56
Why not try Docker? Ideal solution for your needs (keep minimal software on your host OS).
– LazyOne
Nov 23 '18 at 11:56
@LazyOne Docker is very slow on my system (4G RAM). Even with ":delegated" flag on mounted volumes.. Part of the reason is that the web application I'm working with is critical to FS operations. So,
php -S localhost:8000
feels much better. But at this moment I'd like to check PHP Storm's "Built in web-server" way :-)– pilat
Nov 23 '18 at 12:03
@LazyOne Docker is very slow on my system (4G RAM). Even with ":delegated" flag on mounted volumes.. Part of the reason is that the web application I'm working with is critical to FS operations. So,
php -S localhost:8000
feels much better. But at this moment I'd like to check PHP Storm's "Built in web-server" way :-)– pilat
Nov 23 '18 at 12:03
1
1
PhpStorm's built-in web server is quite simple .. and requires using URL like
localhost:63342/PROJECT_NAME/path/to/file.php
. So it's suitable for rather simple things only. I suggest using PHP's own built-in web server (the one you have mentioned: php -S localhost:8000
) -- those are different things (not sure what exactly you were referring to in first place, but I thought you were talking about PhpStorm's own web server).– LazyOne
Nov 23 '18 at 13:20
PhpStorm's built-in web server is quite simple .. and requires using URL like
localhost:63342/PROJECT_NAME/path/to/file.php
. So it's suitable for rather simple things only. I suggest using PHP's own built-in web server (the one you have mentioned: php -S localhost:8000
) -- those are different things (not sure what exactly you were referring to in first place, but I thought you were talking about PhpStorm's own web server).– LazyOne
Nov 23 '18 at 13:20
1
1
For the 2nd one you need to look at this: jetbrains.com/help/phpstorm/… . If that's you were using ... then AFAIK it should work as long as you can use
php -S localhost:8000
in terminal.– LazyOne
Nov 23 '18 at 13:25
For the 2nd one you need to look at this: jetbrains.com/help/phpstorm/… . If that's you were using ... then AFAIK it should work as long as you can use
php -S localhost:8000
in terminal.– LazyOne
Nov 23 '18 at 13:25
add a comment |
0
active
oldest
votes
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53446188%2fconfiguring-phpstorm-for-using-built-in-web-server-in-os-x-mojave%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53446188%2fconfiguring-phpstorm-for-using-built-in-web-server-in-os-x-mojave%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Is there a way to install specifically "php-cgi", without pulling the whole "php replacement" from homebrew? (since I already have PHP pre-shipped)
– pilat
Nov 23 '18 at 11:54
Why not try Docker? Ideal solution for your needs (keep minimal software on your host OS).
– LazyOne
Nov 23 '18 at 11:56
@LazyOne Docker is very slow on my system (4G RAM). Even with ":delegated" flag on mounted volumes.. Part of the reason is that the web application I'm working with is critical to FS operations. So,
php -S localhost:8000
feels much better. But at this moment I'd like to check PHP Storm's "Built in web-server" way :-)– pilat
Nov 23 '18 at 12:03
1
PhpStorm's built-in web server is quite simple .. and requires using URL like
localhost:63342/PROJECT_NAME/path/to/file.php
. So it's suitable for rather simple things only. I suggest using PHP's own built-in web server (the one you have mentioned:php -S localhost:8000
) -- those are different things (not sure what exactly you were referring to in first place, but I thought you were talking about PhpStorm's own web server).– LazyOne
Nov 23 '18 at 13:20
1
For the 2nd one you need to look at this: jetbrains.com/help/phpstorm/… . If that's you were using ... then AFAIK it should work as long as you can use
php -S localhost:8000
in terminal.– LazyOne
Nov 23 '18 at 13:25