{"id":351594,"date":"2024-05-20T21:50:51","date_gmt":"2024-05-20T21:50:51","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=351594"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=351594","title":{"rendered":"<span>\u0413\u0430\u0439\u0434 2023 Xdebug \u0432 PHPSTORM + Virtual server + Docker \u0434\u043b\u044f macOS \u0441 \u043f\u0440\u043e\u0431\u0440\u043e\u0441\u043e\u043c \u043f\u043e\u0440\u0442\u043e\u0432<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<blockquote>\n<p>\u0413\u0430\u0439\u0434 \u0434\u043b\u044f remote \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f. \u041f\u043e\u0441\u0442\u0430\u0440\u0430\u043b\u0441\u044f \u043e\u0431\u044c\u044f\u0441\u043d\u0438\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0434\u043b\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u043e\u043d\u0438\u043c\u0430\u044e \u043a\u0430\u043a \u0431\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u044b\u0433\u0430\u0442\u044c \u043f\u043e \u0441\u0442\u0430\u0442\u044c\u044f\u043c \u0438 \u0442\u0435\u0440\u044f\u0442\u044c\u0441\u044f \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438. \u0422\u0435\u043c\u0430 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f, \u0432 \u0441\u0438\u043b\u0443 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043b\u043e\u043a\u0430\u043b\u043a\u0438 \u043d\u0435 \u0443 \u0432\u0441\u0435\u0445 \u043c\u043e\u0449\u043d\u044b\u0435 &#8212; \u0438\u043d\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0449\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0443. \u041d\u0430\u0434\u0435\u044e\u0441\u044c \u043c\u043e\u044f \u0431\u0435\u0441\u0441\u043e\u043d\u043d\u0430\u044f \u043d\u043e\u0447\u044c \u0441 \u0437\u0430\u0433\u0430\u0434\u043a\u043e\u0439 \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0435 \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u043a\u043e\u043c\u0443 \u043d\u0438\u0431\u0443\u0434\u044c \u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u0441 \u044d\u0442\u0438\u043c \u0437\u0430 \u043f\u043e\u043b\u0447\u0430\u0441\u0430.<\/p>\n<\/blockquote>\n<ol>\n<li>\n<p><a href=\"#router\" rel=\"noopener noreferrer nofollow\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0440\u043e\u0443\u0442\u0435\u0440\u0430<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#ide\" rel=\"noopener noreferrer nofollow\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 IDE (Php Storm)<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#browser\" rel=\"noopener noreferrer nofollow\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0438 \u043e\u0442\u043b\u0430\u0434\u043a\u0430<\/a><\/p>\n<\/li>\n<\/ol>\n<p>\u041f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e\u0431\u044b \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435 \u043f\u043e\u0434 php-fpm \u0443 \u0432\u0430\u0441 \u0431\u044b\u043b \u043f\u0430\u043a\u0435\u0442 Xdebug. \u041d\u0443\u0436\u043d\u043e \u043b\u0438\u0431\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432 \u0440\u0443\u0447\u043d\u0443\u044e, \u043b\u0438\u0431\u043e \u0437\u0430\u0448\u0438\u0442\u044c \u0432 <strong>Dockerfile<\/strong> &#8212; \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u0432\u0442\u043e\u0440\u043e\u0435 \u0431\u0443\u0434\u0435\u0442 \u043b\u0443\u0447\u0448\u0435, \u0442.\u043a \u043d\u0435 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439. <\/p>\n<p>\u041c\u043e\u0439 <strong>DockerFile<\/strong> \u043f\u0440\u0438\u043c\u0435\u0440 \u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0449\u0438\u043a\u0430 ( \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u044f\u044e \u0446\u0435\u043b\u0438\u043a\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u0432\u044b \u043d\u0435 \u0433\u0430\u0434\u0430\u043b\u0438 \u043a\u0430\u043a\u043e\u0439 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0442\u0435\u0445 \u0438\u043b\u0438 \u0438\u043d\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434 )<\/p>\n<details class=\"spoiler\">\n<summary>Dockerfile<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"yaml\">FROM php:8.1-fpm   USER root   RUN apt-get update &amp;&amp; apt-get install -y \\         apt-utils \\         libpq-dev \\         curl \\         libpng-dev \\         iptables-persistent \\         libzip-dev \\         libfreetype6-dev \\         libjpeg62-turbo-dev \\         zip unzip \\         iputils-ping \\         git &amp;&amp; \\         docker-php-ext-install pdo_mysql &amp;&amp; \\         docker-php-ext-install bcmath &amp;&amp; \\         docker-php-ext-configure gd --with-freetype --with-jpeg &amp;&amp; \\         docker-php-ext-install gd &amp;&amp; \\         docker-php-ext-install zip &amp;&amp; \\         docker-php-ext-install exif &amp;&amp; \\         pecl install xdebug &amp;&amp; \\         docker-php-ext-enable xdebug &amp;&amp; \\         apt-get clean &amp;&amp; \\         rm -rf \/var\/lib\/apt\/lists\/* \/tmp\/* \/var\/tmp\/* \\   \u00a0  COPY .\/.docker\/php\/conf.d\/php.ini \/usr\/local\/etc\/php\/conf.d\/php.ini   \u00a0  COPY .\/.docker\/php\/conf.d\/xdebug.ini \/usr\/local\/etc\/php\/conf.d\/xdebug.ini   \u00a0  RUN rm \/usr\/local\/etc\/php-fpm.d\/www.conf   COPY .\/.docker\/php\/conf.d\/www.conf \/usr\/local\/etc\/php-fpm.d\/www.conf    # Install composer   ENV COMPOSER_ALLOW_SUPERUSER=1   RUN curl -sS https:\/\/getcomposer.org\/installer | php -- \\       --filename=composer \\       --install-dir=\/usr\/local\/bin   \u00a0  WORKDIR \/var\/www\/myproject<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 <strong>xdebug.ini<\/strong>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0434\u043e\u043b\u0436\u043d\u0430 \u043b\u0435\u0436\u0430\u0442\u044c \u043f\u043e \u043f\u0443\u0442\u0438 <strong>\/php\/conf.d\/xdebug.ini<\/strong><\/p>\n<p>\u0414\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u00a0<\/p>\n<p><code>xdebug.start_with_request=yes<\/code><\/p>\n<p><code>xdebug.mode=debug<\/code><\/p>\n<p><code>xdebug.client_host=&lt;\u0432\u0430\u0448 \u0431\u0435\u043b\u044b\u0439 \u0430\u0439\u043f\u0438><\/code><\/p>\n<p><code>xdebug.log=\"\/tmp\/xdebug.log\"<\/code><\/p>\n<p><code>xdebug.client_port=9003<\/code><\/p>\n<p><code>xdebug.idekey=PHPSTORM<\/code><\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u043e\u043a \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 \u0441 \u0444\u043b\u0430\u0433\u043e\u043c \u0431\u0438\u043b\u0434<\/p>\n<p><code>sudo docker-compose up -d \u2014build<\/code><\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0435 \u043e\u043a, \u0442\u043e \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c\u0441\u044f \u0441 \u0434\u043e\u043a\u0435\u0440\u043e\u043c.<\/p>\n<p><a class=\"anchor\" name=\"router\" id=\"router\"><\/a><\/p>\n<h2>1.1 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0440\u043e\u0443\u0442\u0435\u0440\u0430<\/h2>\n<ol>\n<li>\n<p>\u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0443 \u0432\u0430\u0441 \u0431\u0435\u043b\u044b\u0439 \u0430\u0439\u043f\u0438 \u043d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0435\u00a0<\/p>\n<ul>\n<li>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0440\u043e\u0443\u0442\u0435\u0440 \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043b\u0438 ip \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 <a href=\"https:\/\/2ip.ru\/\" rel=\"noopener noreferrer nofollow\"><u>2ip<\/u><\/a><\/p>\n<\/li>\n<li>\n<p>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0443\u0441\u043b\u0443\u0433\u0430 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0430\u0439\u043f\u0438 \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u0432 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043e\u043a\u0443\u043f\u0438\u0442\u044c \u0443 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430, \u043f\u0440\u043e\u0432\u0430\u043b\u0438\u0432\u0448\u0438\u0441\u044c \u0432 \u043b\u0438\u0447\u043d\u044b\u0439 \u043a\u0430\u0431\u0438\u043d\u0435\u0442 \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u0438 \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0440\u043e\u0443\u0442\u0435\u0440 &#8212; \u0443 \u0432\u0430\u0441 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u043d\u043e\u0432\u044b\u0439 \u0430\u0439\u043f\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f \u043f\u0440\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u0432\u044b \u0443\u0431\u0435\u0434\u0438\u043b\u0438\u0441\u044c, \u0447\u0442\u043e <strong>ip \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439<\/strong> (\u0431\u0435\u043b\u044b\u0439) &#8212; \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u043e\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u043e\u0440\u0442\u044b \u043d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0435. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u043b\u0438\u0442\u0435\u0441\u044c \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <a href=\"http:\/\/192.168.0.1\" rel=\"noopener noreferrer nofollow\"><u>http:\/\/192.168.0.1<\/u><\/a> \u0434\u043b\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0440\u043e\u0443\u0442\u0435\u0440\u043e\u0432, \u0438\u043b\u0438 <a href=\"http:\/\/192.168.1.1\" rel=\"noopener noreferrer nofollow\"><u>http:\/\/192.168.1.1<\/u><\/a> &#8212; \u0432 \u0444\u043e\u0440\u043c\u0435 \u043b\u043e\u0433\u0438\u043d\u0430, \u0435\u0441\u043b\u0438 \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u043c\u0435\u043d\u044f\u043b \u043f\u0430\u0440\u043e\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u0440\u0435\u0434\u044b \u043d\u0430 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u0440\u043e\u0443\u0442\u0435\u0440\u0430. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u044d\u0442\u043e \u0447\u0442\u043e \u0442\u043e \u0442\u0438\u043f\u0430 <strong>admin:admin<\/strong>. <\/p>\n<ul>\n<li>\n<p>\u0412 \u043f\u0430\u043d\u0435\u043b\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043d\u0430\u0439\u0434\u0438\u0442\u0435 \u0440\u0430\u0437\u0434\u0435\u043b \u0441 <strong>port forwarding<\/strong>. ( \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0432 network \u0438\u043b\u0438 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u044d\u043a\u0440\u0430\u043d )<\/p>\n<\/li>\n<li>\n<p>\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044c <strong>9003<\/strong> \u043f\u043e\u0440\u0442\u044b \u0434\u043b\u044f wan \u0441\u0435\u0442\u0438, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432 TCP&amp;UDP. \u0412 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f\u0445 \u043d\u0443\u0436\u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u044c <strong>ip \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f<\/strong> &#8212; \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u0438\u043b\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u044b (ip \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0438). \u0412 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0430\u0439\u043f\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b\u00a0 <code>ipconfig getifaddr en0<\/code>\u00a0 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 macos \u0438 \u043d\u0435\u0442\u0443 \u043a\u0430\u0431\u0435\u043b\u044f ethernet \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0432 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e. <strong>\u0415\u0441\u043b\u0438 \u043a\u0430\u0431\u0435\u043b\u044c \u0435\u0441\u0442\u044c \u0442\u043e \u0432\u043c\u0435\u0441\u0442\u043e 0<\/strong> \u043d\u0430 \u043a\u043e\u043d\u0446\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043f\u043e\u043c\u0435\u043d\u044f\u0439\u0442\u0435 \u043d\u0430 \u0435\u0434\u0438\u043d\u0438\u0446\u0443.\u00a0<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \u043f\u043e\u0440\u0442\u043e\u0432 \u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0440\u043e\u0443\u0442\u0435\u0440<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<ol start=\"3\">\n<li>\n<p>\u0427\u0442\u043e\u0431\u044b \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u043d\u0435\u0442 \u043e\u0448\u0438\u0431\u043e\u043a \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043f\u043e\u0440\u0442\u043e\u0432 \u0438 \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u044d\u0442\u043e \u0434\u0435\u043b\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:\u00a0<\/p>\n<ul>\n<li>\n<p>\u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u0443 <a href=\"https:\/\/xdebug.org\/docs\/dbgpClient\" rel=\"noopener noreferrer nofollow\">dbgpClient<\/a> \u043e\u0442 xdebugger. \u0415\u0435 \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435  \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438\u0437 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <strong>.\/dbgpClient-macos<\/strong><\/p>\n<p>\u041e\u043d \u043d\u0430\u0447\u043d\u0435\u0442 \u043f\u0440\u043e\u0441\u043b\u0443\u0448\u0438\u0432\u0430\u0442\u044c \u043f\u043e\u0440\u0442 9003 \u0438 \u043d\u0430\u043f\u0438\u0448\u0435\u0442 <code>Waiting for debug server to connect on port 9003.<\/code><\/p>\n<ul>\n<li>\n<p>\u0412 \u0441\u043b\u0443\u0447\u0430\u0435 , \u0435\u0441\u043b\u0438 9003 \u043f\u043e\u0440\u0442 \u0443\u0436\u0435 \u0437\u0430\u043d\u044f\u0442 &#8212; \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0435\u0433\u043e \u0443\u0431\u0438\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>sudo kill -9 &lt;PID><\/code>\u0430 \u0441\u0430\u043c PID \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b <code>sudo lsof -i :9003<\/code><\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043a\u0438\u0434\u0430\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441 \u0441 \u0441\u0430\u043c\u043e\u0439 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b \u043d\u0430 \u0441\u0435\u0431\u044f \u0436\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b<strong> <\/strong><code>telnet 127.0.0.1 9003<\/code><strong> <\/strong>(\u0435\u0441\u043b\u0438 \u043d\u0435\u0442 <strong>telnet<\/strong> , \u0442\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u044d\u0442\u0443 \u0443\u0442\u0438\u043b\u0438\u0442\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <code>brew install telnet<\/code>. \u0415\u0441\u043b\u0438 \u043d\u0435\u0442 <strong>homebrew<\/strong> &#8212; \u0442\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0439\u0442\u0435 \u0435\u0433\u043e )<\/p>\n<\/li>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u0437\u0430\u043f\u0440\u043e\u0441 \u043f\u0440\u043e\u0448\u0435\u043b \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0432 \u043e\u043a\u043d\u0435 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430 \u0441 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u0439 <strong>\u0443\u0442\u0438\u043b\u0438\u0442\u043e\u0439 xdebug<\/strong> \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u0430. \u0415\u0441\u043b\u0438 \u0436\u0435 \u043d\u0435\u0442, \u0442\u043e \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0443 \u0432\u0430\u0441 \u0432\u043a\u043b\u044e\u0447\u0435\u043d <strong>\u0431\u0440\u044d\u043d\u0434\u043c\u0430\u0443\u044d\u0440<\/strong> \u0441 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u043e\u0439 \u0434\u043e\u0441\u0442\u0443\u043f\u043e\u0432 ( \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438 <strong>firewal<\/strong> ) &#8212; \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432 <strong>\u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 -> \u043a\u043e\u043d\u0444\u0438\u0434\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c (\u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u0431\u0440\u044d\u043d\u0434\u043c\u0430\u0443\u044d\u0440\u0430).<\/strong>\u00a0<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u00a0\u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0441 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0438 (\u0437\u0430\u0445\u043e\u0434\u0438\u043c \u043d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0443) \u0438 \u0434\u0435\u043b\u0430\u0435\u043c \u0442\u0430\u043a: <code>curl -Iv &lt;\u0431\u0435\u043b\u044b\u0439 ip>:9003<\/code><strong>\u00a0<\/strong><\/p>\n<ul>\n<li>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c curl , \u0435\u0441\u043b\u0438 \u043e\u043d \u0432\u044b\u0434\u0430\u0441\u0442 \u043e\u0448\u0438\u0431\u043a\u0443 curl not found. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u044b \u0435\u0433\u043e \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438 \u0434\u043b\u044f ubuntu<\/p>\n<ul>\n<li>\n<p><code>sudo apt update<\/code><strong>\u00a0<\/strong><\/p>\n<\/li>\n<li>\n<p><code>sudo apt install curl<\/code><\/p>\n<\/li>\n<li>\n<p>\u0418 \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0447\u0442\u043e \u043e\u043d \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e <code>curl \u2013version<\/code><\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u0415\u0441\u043b\u0438 \u043a\u0443\u0440\u043b \u043f\u0440\u043e\u0448\u0435\u043b \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0432 \u043e\u043a\u043d\u0435 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430 \u0441 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u0439 \u0443\u0442\u0438\u043b\u0438\u0442\u043e\u0439 xdebug \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u0430: <code>Connect from &lt;ip \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0438>:&lt;port><\/code><\/p>\n<p>\u0415\u0441\u043b\u0438 \u043a\u0443\u0440\u043b \u043d\u0435 \u043f\u0440\u043e\u0448\u0435\u043b, \u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 \u0442\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0444\u0430\u0439\u0440\u0432\u043e\u043b\u0430 , \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u044e\u0442 9003 \u043f\u043e\u0440\u0442. \u041d\u0443 \u0438 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0430 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0432 \u0440\u0443\u0447\u043d\u0443\u044e \u0447\u0435\u0440\u0435\u0437 \u0443\u0442\u0438\u043b\u0438\u0442\u0443 <strong>ufw<\/strong>\u00a0 &#8212;\u00a0 <code>sudo ufw status<\/code><strong>\u00a0(\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u043e\u0440\u0442\u043e\u0432)<\/strong><\/p>\n<\/li>\n<li>\n<p>\u0412 xdebug.ini \u0441\u0442\u0430\u0432\u0438\u043c \u0431\u0435\u043b\u044b\u0439 \u0430\u0439\u043f\u0438\u0448\u043d\u0438\u043a, \u043f\u0435\u0440\u0435\u0431\u0438\u043b\u0434\u0438\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 \u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c IDE.<\/p>\n<\/li>\n<\/ol>\n<p><a class=\"anchor\" name=\"ide\" id=\"ide\"><\/a><\/p>\n<h2>1.2 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 PhpStorm<\/h2>\n<p>\u041f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 ssh \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0441\u043e \u0441\u0432\u043e\u0438\u043c \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u0432 IDE, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043f\u043e ssh \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u0440\u0443\u043a\u0430\u043c\u0438.<\/p>\n<ol>\n<li>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 IDE \u0432\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440 \u0434\u043b\u044f php \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440\u0430.<\/p>\n<ul>\n<li>\n<p>\u0417\u0430\u0439\u0434\u0438\u0442\u0435 \u0432 Preferences IDE <strong>-> PHP -> Servers<\/strong> \u0438 \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0441\u0435\u0440\u0432\u0435\u0440, \u0435\u0441\u043b\u0438 \u0432\u0430\u0448 \u0441\u0430\u0439\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430 \u0434\u043e\u043c\u0435\u043d\u0435, \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 host \u043d\u0430\u0434\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u043e\u043c\u0435\u043d \u0431\u0435\u0437 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 (<a href=\"http:\/\/example.com\" rel=\"noopener noreferrer nofollow\">example.com<\/a>) , \u0435\u0441\u043b\u0438 \u043d\u0430 \u0434\u043e\u043c\u0435\u043d\u0435 \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d <strong>https<\/strong> &#8212; \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u043e\u0440\u0442 <strong>80<\/strong>, \u0435\u0441\u043b\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d , \u0442\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c <strong>443<\/strong> \u043f\u043e\u0440\u0442\u00a0<\/p>\n<\/li>\n<li>\n<p>\u0421\u0442\u0430\u0432\u0438\u043c \u0433\u0430\u043b\u043a\u0443 \u043d\u0430 <strong>Use path mappings.<\/strong><\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<ol start=\"2\">\n<li>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u0440\u0430\u0437\u0434\u0435\u043b <strong>PHP->Debug<\/strong> \u0438 \u0432 <strong>Xdebug<\/strong> \u043f\u043e\u0434\u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c 9003 \u043f\u043e\u0440\u0442 , \u0441\u0442\u0430\u0432\u0438\u043c \u0433\u0430\u043b\u043a\u0443 \u043d\u0430 <strong>can accept external connections<\/strong> \u0438 \u043d\u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 3\u0445 \u043f\u0443\u043d\u043a\u0442\u0430\u0445 \u043d\u0438\u0436\u0435<\/p>\n<\/li>\n<\/ol>\n<ol start=\"3\">\n<li>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043f\u0443\u043d\u043a\u0442\u043e\u043c \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c <strong>\u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439 php \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0435\u0440<\/strong> &#8212; \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u0441\u0430\u043c \u0440\u0430\u0437\u0434\u0435\u043b php, \u0433\u0434\u0435 \u0441\u0442\u0440\u043e\u043a\u0430 CLI \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0435\u0440\u0430 \u0432 \u043f\u0440\u0430\u0432\u043e\u043c \u0443\u0433\u043b\u0443 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u0442\u0440\u043e\u0435\u0442\u043e\u0447\u0438\u0435, \u0432 \u043b\u0435\u0432\u043e\u043c \u0441\u0430\u0439\u0434\u0431\u0430\u0440\u0435 \u043d\u0430\u0436\u043c\u0435\u043c \u043f\u043b\u044e\u0441\u0438\u043a \u0438 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u043e\u0432\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0435\u0440\u0430 <\/p>\n<ul>\n<li>\n<p>\u0412 Name \u0432\u0432\u043e\u0434\u0438\u043c \u0447\u0442\u043e \u0443\u0433\u043e\u0434\u043d\u043e , \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c ssh \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0441 \u043d\u0430\u0448\u0435\u0439 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u043e\u0439 \u0438 \u0432 php executable \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u0443\u0442\u044c \u0434\u043e php (\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e \u043e\u043d \u0431\u0443\u0434\u0435\u0442 <strong>\/usr\/bin\/php<\/strong>)<\/p>\n<\/li>\n<li>\n<p>\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u043e \u0432\u0430\u0448\u0435\u043c\u0443 \u0436\u0435\u043b\u0430\u043d\u0438\u044e, \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432\u0441\u0435 \u0438 \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f \u0447\u0442\u043e \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 PHP \u043f\u043e\u0434\u0442\u044f\u043d\u0443\u043b\u0430\u0441\u044c \u043d\u043e\u0432\u0430\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0432 \u0441\u0442\u0440\u043e\u043a\u0435 <strong>CLI \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0435\u0440\u0430,<\/strong> \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0441\u0442\u0440\u043e\u043a\u0430 <strong>path mappings<\/strong>\u00a0<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432 \u043f\u0440\u0430\u0432\u043e\u043c \u0432\u0435\u0440\u0445\u043d\u0435\u043c \u0443\u0433\u043b\u0443 IDE \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0434\u0440\u043e\u043f\u0434\u0430\u0443\u043d \u0441\u043b\u0435\u0432\u0430 \u043e\u0442 \u0437\u0435\u043b\u0435\u043d\u043e\u0433\u043e \u0436\u0443\u0447\u043a\u0430 , \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u041f\u041a\u041c \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 <strong>edit configuration<\/strong>. \u0417\u0434\u0435\u0441\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0434\u043b\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0434\u0435\u0431\u0430\u0433\u0430<\/p>\n<ul>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u0430 \u043f\u043b\u044e\u0441\u0438\u043a \u0432 \u043b\u0435\u0432\u043e\u043c \u0441\u0430\u0439\u0434\u0431\u0430\u0440\u0435 PHP Remote Debug, \u0438\u043c\u044f \u043b\u044e\u0431\u043e\u0435\u00a0<\/p>\n<\/li>\n<li>\n<p>\u0421\u0435\u0440\u0432\u0435\u0440 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c , \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0438<\/p>\n<\/li>\n<li>\n<p>\u0421\u0442\u0430\u0432\u0438\u043c \u0433\u0430\u043b\u043a\u0443 \u043d\u0430 filter debug by ide key \u0438 \u0432\u0432\u043e\u0434\u0438\u043c \u0432 \u043f\u043e\u043b\u0435 ide key \u0441\u0442\u0440\u043e\u043a\u0443\u00a0<\/p>\n<\/li>\n<li>\n<p>\u201cPHPSTORM\u201d &#8212; \u0431\u0435\u0437 \u043a\u0430\u0432\u044b\u0447\u0435\u043a.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u044d\u0442\u0430\u043f\u0443:<\/p>\n<p><a class=\"anchor\" name=\"browser\" id=\"browser\"><\/a><\/p>\n<h2>1.3 \u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 xdebug helper \u0438 \u043e\u0442\u043b\u0430\u0434\u043a\u0430<\/h2>\n<ol>\n<li>\n<p>\u0412 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u043d\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f <a href=\"https:\/\/chrome.google.com\/webstore\/detail\/xdebug-helper\/eadndfjplgieldjbigjakmdgkmoaaaoc\" rel=\"noopener noreferrer nofollow\">Xdebug Helper<\/a><\/p>\n<\/li>\n<li>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0437\u0430\u0439\u0442\u0438 \u0432 \u0435\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0447\u0435\u0440\u0435\u0437 \u041f\u041a\u041c \u043f\u043e \u0438\u043a\u043e\u043d\u043a\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0438 \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u043c \u043c\u0435\u043d\u044e \u043f\u0443\u043d\u043a\u0442 \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b , \u0433\u0434\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u044c IDE KEY\u00a0 \u201cPHPSTORM\u201d &#8212; \u0431\u0435\u0437 \u043a\u0430\u0432\u044b\u0447\u0435\u043a\u00a0<\/p>\n<\/li>\n<li>\n<p>\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043d\u0430 \u0434\u043e\u043c\u0435\u043d \u0438\u043b\u0438 ip \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0430\u0445 <strong>IDE &#8212; PHP -> Servers<\/strong>. \u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043d\u0430 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0440\u0435\u0436\u0438\u043c debug \u0432 \u0432\u044b\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u043c \u0441\u043f\u0438\u0441\u043a\u0435.<\/p>\n<\/li>\n<\/ol>\n<ol start=\"4\">\n<li>\n<p>\u041a\u0438\u0434\u0430\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441 \u0435\u0449\u0435 \u0440\u0430\u0437 \u0438 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c IDE , \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 debugger \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u0439\u0442\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043e\u0442\u043b\u043e\u0432\u0430 \u0431\u0440\u0435\u0439\u043a\u043f\u043e\u0438\u043d\u0442\u043e\u0432\u00a0<\/p>\n<\/li>\n<\/ol>\n<p>\u041f\u0440\u0438\u044f\u0442\u043d\u043e\u0439 \u0432\u0441\u0435\u043c \u043e\u0442\u043b\u0430\u0434\u043a\u0438! <\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/753264\/\"> https:\/\/habr.com\/ru\/articles\/753264\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<blockquote>\n<p>\u0413\u0430\u0439\u0434 \u0434\u043b\u044f remote \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f. \u041f\u043e\u0441\u0442\u0430\u0440\u0430\u043b\u0441\u044f \u043e\u0431\u044c\u044f\u0441\u043d\u0438\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0434\u043b\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u043e\u043d\u0438\u043c\u0430\u044e \u043a\u0430\u043a \u0431\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u044b\u0433\u0430\u0442\u044c \u043f\u043e \u0441\u0442\u0430\u0442\u044c\u044f\u043c \u0438 \u0442\u0435\u0440\u044f\u0442\u044c\u0441\u044f \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438. \u0422\u0435\u043c\u0430 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f, \u0432 \u0441\u0438\u043b\u0443 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043b\u043e\u043a\u0430\u043b\u043a\u0438 \u043d\u0435 \u0443 \u0432\u0441\u0435\u0445 \u043c\u043e\u0449\u043d\u044b\u0435 &#8212; \u0438\u043d\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0449\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0443. \u041d\u0430\u0434\u0435\u044e\u0441\u044c \u043c\u043e\u044f \u0431\u0435\u0441\u0441\u043e\u043d\u043d\u0430\u044f \u043d\u043e\u0447\u044c \u0441 \u0437\u0430\u0433\u0430\u0434\u043a\u043e\u0439 \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0435 \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u043a\u043e\u043c\u0443 \u043d\u0438\u0431\u0443\u0434\u044c \u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u0441 \u044d\u0442\u0438\u043c \u0437\u0430 \u043f\u043e\u043b\u0447\u0430\u0441\u0430.<\/p>\n<\/blockquote>\n<ol>\n<li>\n<p><a href=\"#router\" rel=\"noopener noreferrer nofollow\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0440\u043e\u0443\u0442\u0435\u0440\u0430<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#ide\" rel=\"noopener noreferrer nofollow\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 IDE (Php Storm)<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#browser\" rel=\"noopener noreferrer nofollow\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0438 \u043e\u0442\u043b\u0430\u0434\u043a\u0430<\/a><\/p>\n<\/li>\n<\/ol>\n<p>\u041f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e\u0431\u044b \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435 \u043f\u043e\u0434 php-fpm \u0443 \u0432\u0430\u0441 \u0431\u044b\u043b \u043f\u0430\u043a\u0435\u0442 Xdebug. \u041d\u0443\u0436\u043d\u043e \u043b\u0438\u0431\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432 \u0440\u0443\u0447\u043d\u0443\u044e, \u043b\u0438\u0431\u043e \u0437\u0430\u0448\u0438\u0442\u044c \u0432 <strong>Dockerfile<\/strong> &#8212; \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u0432\u0442\u043e\u0440\u043e\u0435 \u0431\u0443\u0434\u0435\u0442 \u043b\u0443\u0447\u0448\u0435, \u0442.\u043a \u043d\u0435 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439. <\/p>\n<p>\u041c\u043e\u0439 <strong>DockerFile<\/strong> \u043f\u0440\u0438\u043c\u0435\u0440 \u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0449\u0438\u043a\u0430 ( \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u044f\u044e \u0446\u0435\u043b\u0438\u043a\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u0432\u044b \u043d\u0435 \u0433\u0430\u0434\u0430\u043b\u0438 \u043a\u0430\u043a\u043e\u0439 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0442\u0435\u0445 \u0438\u043b\u0438 \u0438\u043d\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434 )<\/p>\n<details class=\"spoiler\">\n<summary>Dockerfile<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"yaml\">FROM php:8.1-fpm   USER root   RUN apt-get update &amp;&amp; apt-get install -y \\         apt-utils \\         libpq-dev \\         curl \\         libpng-dev \\         iptables-persistent \\         libzip-dev \\         libfreetype6-dev \\         libjpeg62-turbo-dev \\         zip unzip \\         iputils-ping \\         git &amp;&amp; \\         docker-php-ext-install pdo_mysql &amp;&amp; \\         docker-php-ext-install bcmath &amp;&amp; \\         docker-php-ext-configure gd --with-freetype --with-jpeg &amp;&amp; \\         docker-php-ext-install gd &amp;&amp; \\         docker-php-ext-install zip &amp;&amp; \\         docker-php-ext-install exif &amp;&amp; \\         pecl install xdebug &amp;&amp; \\         docker-php-ext-enable xdebug &amp;&amp; \\         apt-get clean &amp;&amp; \\         rm -rf \/var\/lib\/apt\/lists\/* \/tmp\/* \/var\/tmp\/* \\   \u00a0  COPY .\/.docker\/php\/conf.d\/php.ini \/usr\/local\/etc\/php\/conf.d\/php.ini   \u00a0  COPY .\/.docker\/php\/conf.d\/xdebug.ini \/usr\/local\/etc\/php\/conf.d\/xdebug.ini   \u00a0  RUN rm \/usr\/local\/etc\/php-fpm.d\/www.conf   COPY .\/.docker\/php\/conf.d\/www.conf \/usr\/local\/etc\/php-fpm.d\/www.conf    # Install composer   ENV COMPOSER_ALLOW_SUPERUSER=1   RUN curl -sS https:\/\/getcomposer.org\/installer | php -- \\       --filename=composer \\       --install-dir=\/usr\/local\/bin   \u00a0  WORKDIR \/var\/www\/myproject<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 <strong>xdebug.ini<\/strong>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0434\u043e\u043b\u0436\u043d\u0430 \u043b\u0435\u0436\u0430\u0442\u044c \u043f\u043e \u043f\u0443\u0442\u0438 <strong>\/php\/conf.d\/xdebug.ini<\/strong><\/p>\n<p>\u0414\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u00a0<\/p>\n<p><code>xdebug.start_with_request=yes<\/code><\/p>\n<p><code>xdebug.mode=debug<\/code><\/p>\n<p><code>xdebug.client_host=&lt;\u0432\u0430\u0448 \u0431\u0435\u043b\u044b\u0439 \u0430\u0439\u043f\u0438><\/code><\/p>\n<p><code>xdebug.log=\"\/tmp\/xdebug.log\"<\/code><\/p>\n<p><code>xdebug.client_port=9003<\/code><\/p>\n<p><code>xdebug.idekey=PHPSTORM<\/code><\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u043e\u043a \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 \u0441 \u0444\u043b\u0430\u0433\u043e\u043c \u0431\u0438\u043b\u0434<\/p>\n<p><code>sudo docker-compose up -d \u2014build<\/code><\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0435 \u043e\u043a, \u0442\u043e \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c\u0441\u044f \u0441 \u0434\u043e\u043a\u0435\u0440\u043e\u043c.<\/p>\n<p><a class=\"anchor\" name=\"router\" id=\"router\"><\/a><\/p>\n<h2>1.1 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0440\u043e\u0443\u0442\u0435\u0440\u0430<\/h2>\n<ol>\n<li>\n<p>\u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0443 \u0432\u0430\u0441 \u0431\u0435\u043b\u044b\u0439 \u0430\u0439\u043f\u0438 \u043d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0435\u00a0<\/p>\n<ul>\n<li>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0440\u043e\u0443\u0442\u0435\u0440 \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043b\u0438 ip \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 <a href=\"https:\/\/2ip.ru\/\" rel=\"noopener noreferrer nofollow\"><u>2ip<\/u><\/a><\/p>\n<\/li>\n<li>\n<p>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0443\u0441\u043b\u0443\u0433\u0430 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0430\u0439\u043f\u0438 \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u0432 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043e\u043a\u0443\u043f\u0438\u0442\u044c \u0443 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430, \u043f\u0440\u043e\u0432\u0430\u043b\u0438\u0432\u0448\u0438\u0441\u044c \u0432 \u043b\u0438\u0447\u043d\u044b\u0439 \u043a\u0430\u0431\u0438\u043d\u0435\u0442 \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u0438 \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0440\u043e\u0443\u0442\u0435\u0440 &#8212; \u0443 \u0432\u0430\u0441 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u043d\u043e\u0432\u044b\u0439 \u0430\u0439\u043f\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f \u043f\u0440\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u0432\u044b \u0443\u0431\u0435\u0434\u0438\u043b\u0438\u0441\u044c, \u0447\u0442\u043e <strong>ip \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439<\/strong> (\u0431\u0435\u043b\u044b\u0439) &#8212; \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u043e\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u043e\u0440\u0442\u044b \u043d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0435. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u043b\u0438\u0442\u0435\u0441\u044c \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <a href=\"http:\/\/192.168.0.1\" rel=\"noopener noreferrer nofollow\"><u>http:\/\/192.168.0.1<\/u><\/a> \u0434\u043b\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0440\u043e\u0443\u0442\u0435\u0440\u043e\u0432, \u0438\u043b\u0438 <a href=\"http:\/\/192.168.1.1\" rel=\"noopener noreferrer nofollow\"><u>http:\/\/192.168.1.1<\/u><\/a> &#8212; \u0432 \u0444\u043e\u0440\u043c\u0435 \u043b\u043e\u0433\u0438\u043d\u0430, \u0435\u0441\u043b\u0438 \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u043c\u0435\u043d\u044f\u043b \u043f\u0430\u0440\u043e\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u0440\u0435\u0434\u044b \u043d\u0430 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u0440\u043e\u0443\u0442\u0435\u0440\u0430. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u044d\u0442\u043e \u0447\u0442\u043e \u0442\u043e \u0442\u0438\u043f\u0430 <strong>admin:admin<\/strong>. <\/p>\n<ul>\n<li>\n<p>\u0412 \u043f\u0430\u043d\u0435\u043b\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043d\u0430\u0439\u0434\u0438\u0442\u0435 \u0440\u0430\u0437\u0434\u0435\u043b \u0441 <strong>port forwarding<\/strong>. ( \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0432 network \u0438\u043b\u0438 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u044d\u043a\u0440\u0430\u043d )<\/p>\n<\/li>\n<li>\n<p>\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044c <strong>9003<\/strong> \u043f\u043e\u0440\u0442\u044b \u0434\u043b\u044f wan \u0441\u0435\u0442\u0438, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432 TCP&amp;UDP. \u0412 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f\u0445 \u043d\u0443\u0436\u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u044c <strong>ip \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f<\/strong> &#8212; \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u0438\u043b\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u044b (ip \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0438). \u0412 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0430\u0439\u043f\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b\u00a0 <code>ipconfig getifaddr en0<\/code>\u00a0 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 macos \u0438 \u043d\u0435\u0442\u0443 \u043a\u0430\u0431\u0435\u043b\u044f ethernet \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0432 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e. <strong>\u0415\u0441\u043b\u0438 \u043a\u0430\u0431\u0435\u043b\u044c \u0435\u0441\u0442\u044c \u0442\u043e \u0432\u043c\u0435\u0441\u0442\u043e 0<\/strong> \u043d\u0430 \u043a\u043e\u043d\u0446\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043f\u043e\u043c\u0435\u043d\u044f\u0439\u0442\u0435 \u043d\u0430 \u0435\u0434\u0438\u043d\u0438\u0446\u0443.\u00a0<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \u043f\u043e\u0440\u0442\u043e\u0432 \u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0440\u043e\u0443\u0442\u0435\u0440<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<ol start=\"3\">\n<li>\n<p>\u0427\u0442\u043e\u0431\u044b \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u043d\u0435\u0442 \u043e\u0448\u0438\u0431\u043e\u043a \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043f\u043e\u0440\u0442\u043e\u0432 \u0438 \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u044d\u0442\u043e \u0434\u0435\u043b\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:\u00a0<\/p>\n<ul>\n<li>\n<p>\u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u0443 <a href=\"https:\/\/xdebug.org\/docs\/dbgpClient\" rel=\"noopener noreferrer nofollow\">dbgpClient<\/a> \u043e\u0442 xdebugger. \u0415\u0435 \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435  \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438\u0437 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <strong>.\/dbgpClient-macos<\/strong><\/p>\n<p>\u041e\u043d \u043d\u0430\u0447\u043d\u0435\u0442 \u043f\u0440\u043e\u0441\u043b\u0443\u0448\u0438\u0432\u0430\u0442\u044c \u043f\u043e\u0440\u0442 9003 \u0438 \u043d\u0430\u043f\u0438\u0448\u0435\u0442 <code>Waiting for debug server to connect on port 9003.<\/code><\/p>\n<ul>\n<li>\n<p>\u0412 \u0441\u043b\u0443\u0447\u0430\u0435 , \u0435\u0441\u043b\u0438 9003 \u043f\u043e\u0440\u0442 \u0443\u0436\u0435 \u0437\u0430\u043d\u044f\u0442 &#8212; \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0435\u0433\u043e \u0443\u0431\u0438\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>sudo kill -9 &lt;PID><\/code>\u0430 \u0441\u0430\u043c PID \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b <code>sudo lsof -i :9003<\/code><\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043a\u0438\u0434\u0430\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441 \u0441 \u0441\u0430\u043c\u043e\u0439 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b \u043d\u0430 \u0441\u0435\u0431\u044f \u0436\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b<strong> <\/strong><code>telnet 127.0.0.1 9003<\/code><strong> <\/strong>(\u0435\u0441\u043b\u0438 \u043d\u0435\u0442 <strong>telnet<\/strong> , \u0442\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u044d\u0442\u0443 \u0443\u0442\u0438\u043b\u0438\u0442\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <code>brew install telnet<\/code>. \u0415\u0441\u043b\u0438 \u043d\u0435\u0442 <strong>homebrew<\/strong> &#8212; \u0442\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0439\u0442\u0435 \u0435\u0433\u043e )<\/p>\n<\/li>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u0437\u0430\u043f\u0440\u043e\u0441 \u043f\u0440\u043e\u0448\u0435\u043b \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0432 \u043e\u043a\u043d\u0435 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430 \u0441 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u0439 <strong>\u0443\u0442\u0438\u043b\u0438\u0442\u043e\u0439 xdebug<\/strong> \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u0430. \u0415\u0441\u043b\u0438 \u0436\u0435 \u043d\u0435\u0442, \u0442\u043e \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0443 \u0432\u0430\u0441 \u0432\u043a\u043b\u044e\u0447\u0435\u043d <strong>\u0431\u0440\u044d\u043d\u0434\u043c\u0430\u0443\u044d\u0440<\/strong> \u0441 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u043e\u0439 \u0434\u043e\u0441\u0442\u0443\u043f\u043e\u0432 ( \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438 <strong>firewal<\/strong> ) &#8212; \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432 <strong>\u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 -> \u043a\u043e\u043d\u0444\u0438\u0434\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c (\u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u0431\u0440\u044d\u043d\u0434\u043c\u0430\u0443\u044d\u0440\u0430).<\/strong>\u00a0<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u00a0\u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0441 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0438 (\u0437\u0430\u0445\u043e\u0434\u0438\u043c \u043d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0443) \u0438 \u0434\u0435\u043b\u0430\u0435\u043c \u0442\u0430\u043a: <code>curl -Iv &lt;\u0431\u0435\u043b\u044b\u0439 ip>:9003<\/code><strong>\u00a0<\/strong><\/p>\n<ul>\n<li>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c curl , \u0435\u0441\u043b\u0438 \u043e\u043d \u0432\u044b\u0434\u0430\u0441\u0442 \u043e\u0448\u0438\u0431\u043a\u0443 curl not found. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u044b \u0435\u0433\u043e \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438 \u0434\u043b\u044f ubuntu<\/p>\n<ul>\n<li>\n<p><code>sudo apt update<\/code><strong>\u00a0<\/strong><\/p>\n<\/li>\n<li>\n<p><code>sudo apt install curl<\/code><\/p>\n<\/li>\n<li>\n<p>\u0418 \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0447\u0442\u043e \u043e\u043d \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e <code>curl \u2013version<\/code><\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u0415\u0441\u043b\u0438 \u043a\u0443\u0440\u043b \u043f\u0440\u043e\u0448\u0435\u043b \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0432 \u043e\u043a\u043d\u0435 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430 \u0441 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u0439 \u0443\u0442\u0438\u043b\u0438\u0442\u043e\u0439 xdebug \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u0430: <code>Connect from &lt;ip \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0438>:&lt;port><\/code><\/p>\n<p>\u0415\u0441\u043b\u0438 \u043a\u0443\u0440\u043b \u043d\u0435 \u043f\u0440\u043e\u0448\u0435\u043b, \u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 \u0442\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0444\u0430\u0439\u0440\u0432\u043e\u043b\u0430 , \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u044e\u0442 9003 \u043f\u043e\u0440\u0442. \u041d\u0443 \u0438 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0430 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0432 \u0440\u0443\u0447\u043d\u0443\u044e \u0447\u0435\u0440\u0435\u0437 \u0443\u0442\u0438\u043b\u0438\u0442\u0443 <strong>ufw<\/strong>\u00a0 &#8212;\u00a0 <code>sudo ufw status<\/code><strong>\u00a0(\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u043e\u0440\u0442\u043e\u0432)<\/strong><\/p>\n<\/li>\n<li>\n<p>\u0412 xdebug.ini \u0441\u0442\u0430\u0432\u0438\u043c \u0431\u0435\u043b\u044b\u0439 \u0430\u0439\u043f\u0438\u0448\u043d\u0438\u043a, \u043f\u0435\u0440\u0435\u0431\u0438\u043b\u0434\u0438\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 \u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c IDE.<\/p>\n<\/li>\n<\/ol>\n<p><a class=\"anchor\" name=\"ide\" id=\"ide\"><\/a><\/p>\n<h2>1.2 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 PhpStorm<\/h2>\n<p>\u041f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 ssh \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0441\u043e \u0441\u0432\u043e\u0438\u043c \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u0432 IDE, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043f\u043e ssh \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u0440\u0443\u043a\u0430\u043c\u0438.<\/p>\n<ol>\n<li>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 IDE \u0432\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440 \u0434\u043b\u044f php \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440\u0430.<\/p>\n<ul>\n<li>\n<p>\u0417\u0430\u0439\u0434\u0438\u0442\u0435 \u0432 Preferences IDE <strong>-> PHP -> Servers<\/strong> \u0438 \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0441\u0435\u0440\u0432\u0435\u0440, \u0435\u0441\u043b\u0438 \u0432\u0430\u0448 \u0441\u0430\u0439\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430 \u0434\u043e\u043c\u0435\u043d\u0435, \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 host \u043d\u0430\u0434\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u043e\u043c\u0435\u043d \u0431\u0435\u0437 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 (<a href=\"http:\/\/example.com\" rel=\"noopener noreferrer nofollow\">example.com<\/a>) , \u0435\u0441\u043b\u0438 \u043d\u0430 \u0434\u043e\u043c\u0435\u043d\u0435 \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d <strong>https<\/strong> &#8212; \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u043e\u0440\u0442 <strong>80<\/strong>, \u0435\u0441\u043b\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d , \u0442\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c <strong>443<\/strong> \u043f\u043e\u0440\u0442\u00a0<\/p>\n<\/li>\n<li>\n<p>\u0421\u0442\u0430\u0432\u0438\u043c \u0433\u0430\u043b\u043a\u0443 \u043d\u0430 <strong>Use path mappings.<\/strong><\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<ol start=\"2\">\n<li>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u0440\u0430\u0437\u0434\u0435\u043b <strong>PHP->Debug<\/strong> \u0438 \u0432 <strong>Xdebug<\/strong> \u043f\u043e\u0434\u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c 9003 \u043f\u043e\u0440\u0442 , \u0441\u0442\u0430\u0432\u0438\u043c \u0433\u0430\u043b\u043a\u0443 \u043d\u0430 <strong>can accept external connections<\/strong> \u0438 \u043d\u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 3\u0445 \u043f\u0443\u043d\u043a\u0442\u0430\u0445 \u043d\u0438\u0436\u0435<\/p>\n<\/li>\n<\/ol>\n<ol start=\"3\">\n<li>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043f\u0443\u043d\u043a\u0442\u043e\u043c \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c <strong>\u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439 php \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0435\u0440<\/strong> &#8212; \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u0441\u0430\u043c \u0440\u0430\u0437\u0434\u0435\u043b php, \u0433\u0434\u0435 \u0441\u0442\u0440\u043e\u043a\u0430 CLI \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0435\u0440\u0430 \u0432 \u043f\u0440\u0430\u0432\u043e\u043c \u0443\u0433\u043b\u0443 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u0442\u0440\u043e\u0435\u0442\u043e\u0447\u0438\u0435, \u0432 \u043b\u0435\u0432\u043e\u043c \u0441\u0430\u0439\u0434\u0431\u0430\u0440\u0435 \u043d\u0430\u0436\u043c\u0435\u043c \u043f\u043b\u044e\u0441\u0438\u043a \u0438 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u043e\u0432\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0435\u0440\u0430 <\/p>\n<ul>\n<li>\n<p>\u0412 Name \u0432\u0432\u043e\u0434\u0438\u043c \u0447\u0442\u043e \u0443\u0433\u043e\u0434\u043d\u043e , \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c ssh \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0441 \u043d\u0430\u0448\u0435\u0439 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u043e\u0439 \u0438 \u0432 php executable \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u0443\u0442\u044c \u0434\u043e php (\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e \u043e\u043d \u0431\u0443\u0434\u0435\u0442 <strong>\/usr\/bin\/php<\/strong>)<\/p>\n<\/li>\n<li>\n<p>\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u043e \u0432\u0430\u0448\u0435\u043c\u0443 \u0436\u0435\u043b\u0430\u043d\u0438\u044e, \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432\u0441\u0435 \u0438 \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f \u0447\u0442\u043e \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 PHP \u043f\u043e\u0434\u0442\u044f\u043d\u0443\u043b\u0430\u0441\u044c \u043d\u043e\u0432\u0430\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0432 \u0441\u0442\u0440\u043e\u043a\u0435 <strong>CLI \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0435\u0440\u0430,<\/strong> \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0441\u0442\u0440\u043e\u043a\u0430 <strong>path mappings<\/strong>\u00a0<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432 \u043f\u0440\u0430\u0432\u043e\u043c \u0432\u0435\u0440\u0445\u043d\u0435\u043c \u0443\u0433\u043b\u0443 IDE \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0434\u0440\u043e\u043f\u0434\u0430\u0443\u043d \u0441\u043b\u0435\u0432\u0430 \u043e\u0442 \u0437\u0435\u043b\u0435\u043d\u043e\u0433\u043e \u0436\u0443\u0447\u043a\u0430 , \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u041f\u041a\u041c \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 <strong>edit configuration<\/strong>. \u0417\u0434\u0435\u0441\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0434\u043b\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0434\u0435\u0431\u0430\u0433\u0430<\/p>\n<ul>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u0430 \u043f\u043b\u044e\u0441\u0438\u043a \u0432 \u043b\u0435\u0432\u043e\u043c \u0441\u0430\u0439\u0434\u0431\u0430\u0440\u0435 PHP Remote Debug, \u0438\u043c\u044f \u043b\u044e\u0431\u043e\u0435\u00a0<\/p>\n<\/li>\n<li>\n<p>\u0421\u0435\u0440\u0432\u0435\u0440 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c , \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0438<\/p>\n<\/li>\n<li>\n<p>\u0421\u0442\u0430\u0432\u0438\u043c \u0433\u0430\u043b\u043a\u0443 \u043d\u0430 filter debug by ide key \u0438 \u0432\u0432\u043e\u0434\u0438\u043c \u0432 \u043f\u043e\u043b\u0435 ide key \u0441\u0442\u0440\u043e\u043a\u0443\u00a0<\/p>\n<\/li>\n<li>\n<p>\u201cPHPSTORM\u201d &#8212; \u0431\u0435\u0437 \u043a\u0430\u0432\u044b\u0447\u0435\u043a.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u044d\u0442\u0430\u043f\u0443:<\/p>\n<p><a class=\"anchor\" name=\"browser\" id=\"browser\"><\/a><\/p>\n<h2>1.3 \u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 xdebug helper \u0438 \u043e\u0442\u043b\u0430\u0434\u043a\u0430<\/h2>\n<ol>\n<li>\n<p>\u0412 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u043d\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f <a href=\"https:\/\/chrome.google.com\/webstore\/detail\/xdebug-helper\/eadndfjplgieldjbigjakmdgkmoaaaoc\" rel=\"noopener noreferrer nofollow\">Xdebug Helper<\/a><\/p>\n<\/li>\n<li>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0437\u0430\u0439\u0442\u0438 \u0432 \u0435\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0447\u0435\u0440\u0435\u0437 \u041f\u041a\u041c \u043f\u043e \u0438\u043a\u043e\u043d\u043a\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0438 \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u043c \u043c\u0435\u043d\u044e \u043f\u0443\u043d\u043a\u0442 \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b , \u0433\u0434\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u044c IDE KEY\u00a0 \u201cPHPSTORM\u201d &#8212; \u0431\u0435\u0437 \u043a\u0430\u0432\u044b\u0447\u0435\u043a\u00a0<\/p>\n<\/li>\n<li>\n<p>\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043d\u0430 \u0434\u043e\u043c\u0435\u043d \u0438\u043b\u0438 ip \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0430\u0445 <strong>IDE &#8212; PHP -> Servers<\/strong>. \u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043d\u0430 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0440\u0435\u0436\u0438\u043c debug \u0432 \u0432\u044b\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u043c \u0441\u043f\u0438\u0441\u043a\u0435.<\/p>\n<\/li>\n<\/ol>\n<ol start=\"4\">\n<li>\n<p>\u041a\u0438\u0434\u0430\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441 \u0435\u0449\u0435 \u0440\u0430\u0437 \u0438 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c IDE , \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 debugger \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u0439\u0442\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043e\u0442\u043b\u043e\u0432\u0430 \u0431\u0440\u0435\u0439\u043a\u043f\u043e\u0438\u043d\u0442\u043e\u0432\u00a0<\/p>\n<\/li>\n<\/ol>\n<p>\u041f\u0440\u0438\u044f\u0442\u043d\u043e\u0439 \u0432\u0441\u0435\u043c \u043e\u0442\u043b\u0430\u0434\u043a\u0438! <\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/753264\/\"> https:\/\/habr.com\/ru\/articles\/753264\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-351594","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/351594","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=351594"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/351594\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=351594"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=351594"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=351594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}