D
D
developersvil2019-10-16 02:56:52
Debugging
developersvil, 2019-10-16 02:56:52

How to set up debug on PHPStorm Mac OS?

php 7.1.3 is set to /usr/local/etc/php/7.1/php.ini, as indicated by phpinfo() opened in the browser
In the terminal php -v
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
with Xdebug v2.5.5, Copyright (c) 2002-2017, by Derick Rethans with
Zend OPcache v7.1.30, Copyright (c) 1999-2018, by Zend
Technologies
7.1/php.ini gives PHP version, debugger: not installed
Accepts only path /usr/bin/php with PHP version 7.1.23 and debugger sees it.
But when I try to apply the debugger, I get the error "php-cgi not found Please ensure that configured PHP Interpreter built as CGI program (--enable-fastcgi was specified)"
localhost on port 80, phpstorm 63342
I can't set up the debugger at all.
php -m

[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
intl
json
ldap
libxml
mbstring
mcrypt
mysqli
mysqlnd
odbc
openssl
pcntl
pcre
PDO
pdo_dblib
pdo_mysql
PDO_ODBC
pdo_pgsql
pdo_sqlite
pgsql
Phar
phpdbg_webhelper
posix
pspell
readline
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
wddx
xdebug
xml
xmlreader
xmlrpc
xmlwriter
xsl
Zend OPcache
zip
zlib
[Zend Modules]
Xdebug
Zend OPcache

Apache , php configured according to the manual https://getgrav.org/blog/macos-catalina-apache-mul... , so everything is in the /usr/local/etc/php/7.1/php.ini folder, and not in the system folder like was originally. Hence the problems with PHPStorm, I can’t find where the paths are written for correct access to the required PHP.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
developersvil, 2019-10-17
@developersvil

I followed this link https://www.jetbrains.com/help/phpstorm/zero-confi...
but it didn't help.
Duplicate addition to the question here. Apache , php configured according to the manual https://getgrav.org/blog/macos-catalina-apache-mul... so everything is in the /usr/local/etc/php/7.1/php.ini folder, and not the system folder as it was initially. Hence the problems with PHPStorm, I can’t find where the paths are written for correct access to the required PHP.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question