{"id":3071,"date":"2021-07-22T07:59:38","date_gmt":"2021-07-22T07:59:38","guid":{"rendered":"https:\/\/www.bearloga.space\/?page_id=3071"},"modified":"2021-07-22T07:59:39","modified_gmt":"2021-07-22T07:59:39","slug":"nastrojte-php-v-centos-linux","status":"publish","type":"page","link":"https:\/\/www.bearloga.space\/uk\/nastrojte-php-v-centos-linux\/","title":{"rendered":"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u0442\u0435 PHP \u0432 CentOS Linux"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">PHP \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0434\u043d\u0438\u043c \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0445 \u0432\u0435\u0431-\u044f\u0437\u044b\u043a\u043e\u0432, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u0441\u0435\u0433\u043e\u0434\u043d\u044f.&nbsp;\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0441\u0442\u0435\u043a\u0430&nbsp;<em>LAMP<\/em>&nbsp;\u0432 CentOS \u2014 \u044d\u0442\u043e \u0442\u043e, \u0447\u0442\u043e \u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440 \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0440\u0430\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u043f\u043e\u0437\u0436\u0435.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0422\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0441\u0442\u0435\u043a LAMP \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 (L) inux (A) pache (M) ySQL (P) HP.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0442\u0440\u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430&nbsp;<em>\u0441\u0442\u0435\u043a\u0430 LAMP<\/em>&nbsp;\u043d\u0430 CentOS \u2014<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u0412\u0435\u0431 \u0441\u0435\u0440\u0432\u0435\u0440<\/li><li>\u041f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430 \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \/ \u042f\u0437\u044b\u043a<\/li><li>\u0421\u0435\u0440\u0432\u0435\u0440 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435<\/strong>&nbsp;. \u0422\u0435\u0440\u043c\u0438\u043d&nbsp;<em>LAMP Stack<\/em>&nbsp;\u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442 \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438: PostgreSQL, MariaDB, Perl, Python, Ruby, NGINX Webserver.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412 \u044d\u0442\u043e\u043c \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u0439&nbsp;<em>LAMP-\u0441\u0442\u0435\u043a<\/em>&nbsp;CentOS GNU Linux: \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440 Apache, \u0441\u0435\u0440\u0432\u0435\u0440 \u0431\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0445 MySQL \u0438 PHP.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c MariaDB.&nbsp;\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b, \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b MySQL \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u044b \u0434\u043b\u044f MariaDB.&nbsp;MariaDB \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u043a\u043b\u044e\u0447\u0435\u043d \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 CentOS \u0432\u043c\u0435\u0441\u0442\u043e MySQL.&nbsp;\u042d\u0442\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 Oracle \u0432\u0437\u044f\u043b\u0430 \u043d\u0430 \u0441\u0435\u0431\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443 MySQL.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u0435\u0440\u0432\u043e\u0435, \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u044d\u0442\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c Apache.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@CentOS]# yum install httpd\nLoaded plugins: fastestmirror, langpacks\nbase\n| 3.6 kB  00:00:00\nextras\n| 3.4 kB  00:00:00\nupdates\n| 3.4 kB  00:00:00\nextras\/7\/x86_64\/primary_d\n| 121 kB  00:00:00\nLoading mirror speeds from cached hostfile\n* base: mirror.sigmanet.com\n* extras: linux.mirrors.es.net\n* updates: mirror.eboundhost.com\nResolving Dependencies\n--&gt; Running transaction check\n---&gt; Package httpd.x86_64 0:2.4.6-45.el7.centos will be installed\n--&gt; Processing Dependency: httpd-tools = 2.4.6-45.el7.centos for package:\nhttpd-2.4.6-45.el7.centos.x86_64\n--&gt; Processing Dependency: \/etc\/mime.types for package: httpd-2.4.645.el7.centos.x86_64\n--&gt; Running transaction check\n---&gt; Package httpd-tools.x86_64 0:2.4.6-45.el7.centos will be installed\n---&gt; Package mailcap.noarch 0:2.1.41-2.el7 will be installed\n--&gt; Finished Dependency Resolution\nInstalled:\nhttpd.x86_64 0:2.4.6-45.el7.centos\n\nDependency Installed:\nhttpd-tools.x86_64 0:2.4.6-45.el7.centos\nmailcap.noarch 0:2.1.41-2.el7\n\nComplete!\n[root@CentOS]#\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0441\u0435\u0440\u0432\u0438\u0441&nbsp;<em>httpd<\/em>&nbsp;.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@CentOS]# systemctl start httpd &amp;&amp; systemctl enable httpd\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0422\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0443\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u0438\u043c\u0441\u044f, \u0447\u0442\u043e \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0447\u0435\u0440\u0435\u0437 firewalld.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">bash-3.2# nmap -sS -p 1-1024 -T 5  -sV 10.211.55.1 \nStarting Nmap 7.30 ( https:\/\/nmap.org ) at 2017-01-28 02:00 MST \nNmap scan report for centos.shared (10.211.55.1) \nHost is up (0.00054s latency). \nNot shown: 1022 filtered ports \nPORT   STATE SERVICE VERSION \n22\/tcp open  ssh     OpenSSH 6.6.1 (protocol 2.0) \n80\/tcp open  http    Apache httpd 2.4.6 ((CentOS))\n\nService detection performed. Please report any incorrect results at \nhttps:\/\/nmap.org\/submit\/ . \nNmap done: 1 IP address (1 host up) scanned in 10.82 seconds bash-3.2#\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e \u0438\u0437 \u0442\u0435\u0441\u0442\u0430 \u0441\u043b\u0443\u0436\u0431\u044b nmap, \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440 Apache \u043f\u0440\u043e\u0441\u043b\u0443\u0448\u0438\u0432\u0430\u0435\u0442 \u0438 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043d\u0430 \u0445\u043e\u0441\u0442\u0435 CentOS.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 MySQL Database Server<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@CentOS rdc]# yum install mariadb-server.x86_64 &amp;&amp; yum install mariadb-\ndevel.x86_64 &amp;&amp; mariadb.x86_64 &amp;&amp; mariadb-libs.x86_64\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u041c\u044b \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u0434\u043b\u044f MariaDB \u2014<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">MariaDB-server.x86_64<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u0430\u043a\u0435\u0442 \u0434\u0435\u043c\u043e\u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 MariaDB.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">MariaDB-devel.x86_64<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0424\u0430\u0439\u043b\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0438\u0437 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0441 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c\u044e MySQL \/ MariaDB.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">mariadb.x86_64<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u041a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u0435 \u0443\u0442\u0438\u043b\u0438\u0442\u044b MariaDB \u0434\u043b\u044f \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0421\u0435\u0440\u0432\u0435\u0440\u0430 MariaDB \u0438\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">MariaDB-libs.x86_64<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u041e\u0431\u0449\u0438\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0434\u043b\u044f MariaDB, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 MySQL \/ MariaDB.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0422\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0438 \u0432\u043a\u043b\u044e\u0447\u0438\u043c \u0441\u0435\u0440\u0432\u0438\u0441 MariaDB.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@CentOS]# systemctl start mariadb \n[root@CentOS]# systemctl enable  mariadb\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435.<\/strong>&nbsp;\u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 Apache, \u043c\u044b \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a MariaDB \u0447\u0435\u0440\u0435\u0437 \u043d\u0430\u0448 \u043c\u0435\u0436\u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u044d\u043a\u0440\u0430\u043d \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0445\u043e\u0441\u0442\u0430 (firewalld).&nbsp;\u041f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u043e\u043a\u0435\u0442\u044b, \u0435\u0441\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0441\u043e\u043a\u0435\u0442\u0443 \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0443\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u0438\u043c\u0441\u044f, \u0447\u0442\u043e \u0441\u0435\u0440\u0432\u0435\u0440 MariaDB \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@CentOS#] netstat -lnt \nActive Internet connections (only servers) \nProto     Recv-Q     Send-Q     Local Address        Foreign Address      State       \ntcp            0          0     0.0.0.0:3306         0.0.0.0:*            LISTEN      \ntcp            0          0     0.0.0.0:111          0.0.0.0:*            LISTEN      \ntcp            0          0     192.168.122.1:53     0.0.0.0:*            LISTEN      \ntcp            0          0     0.0.0.0:22           0.0.0.0:*            LISTEN      \ntcp            0          0     127.0.0.1:631        0.0.0.0:*            LISTEN      \ntcp            0          0     127.0.0.1:25         0.0.0.0:*            LISTEN \n     \n[root@CentOS rdc]#\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u041a\u0430\u043a \u043c\u044b \u0432\u0438\u0434\u0438\u043c, MariaDB \u043f\u0440\u043e\u0441\u043b\u0443\u0448\u0438\u0432\u0430\u0435\u0442 \u043f\u043e\u0440\u0442 3306 tcp.&nbsp;\u041c\u044b \u043e\u0441\u0442\u0430\u0432\u0438\u043c \u043d\u0430\u0448 \u0431\u0440\u0430\u043d\u0434\u043c\u0430\u0443\u044d\u0440 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0445\u043e\u0441\u0442\u0430 (firewalld), \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u043a \u043f\u043e\u0440\u0442\u0443 3306.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u0442\u0435 PHP<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@CentOS#]  yum install php.x86_64 &amp;&amp; php-common.x86_64 &amp;&amp; php-mysql.x86_64 \n&amp;&amp; php-mysqlnd.x86_64 &amp;&amp; php-pdo.x86_64 &amp;&amp; php-soap.x86_64 &amp;&amp; php-xml.x86_64\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u042f \u0431\u044b \u043f\u043e\u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u043b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u044b php \u0434\u043b\u044f \u043e\u0431\u0449\u0435\u0439 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u2014<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>PHP-common.x86_64<\/li><li>PHP-mysql.x86_64<\/li><li>PHP-mysqlnd.x86_64<\/li><li>PHP-pdo.x86_64<\/li><li>PHP-soap.x86_64<\/li><li>PHP-xml.x86_64<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@CentOS]# yum install -y php-common.x86_64 php-mysql.x86_64 php-\nmysqlnd.x86_64 php-pdo.x86_64 php-soap.x86_64 php-xml.x86_64\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u042d\u0442\u043e \u043d\u0430\u0448 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 php-\u0444\u0430\u0439\u043b, \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 \u0432 \u0440\u0443\u0442\u0435 Apache \/ var \/ www \/ html \/<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@CentOS]# cat \/var\/www\/html\/index.php  \n&lt;html&gt; \n   &lt;head&gt; \n      &lt;title&gt;PHP Test Page&lt;\/title&gt; \n   &lt;\/head&gt;\n   \n   &lt;body&gt; \n      PHP Install \n      &lt;?php \n         echo \"We are now running PHP on GNU Centos Linux!&lt;br \/&gt;\" \n      ?&gt; \n   &lt;\/body&gt; \n&lt;\/html&gt;\n\n[root@CentOS]#<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u043c \u0433\u0440\u0443\u043f\u043f\u0443-\u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0430 \u043d\u0430\u0448\u0435\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043d\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u043f\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430\u0448 \u0434\u0435\u043c\u043e\u043d http.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@CentOS]# chgrp httpd \/var\/www\/html\/index.php &amp;&amp; chmod g+rx \/var\/www\/html\/index.php\n---\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u0440\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0447\u0435\u0440\u0435\u0437 ncat.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">bash-3.2# ncat 10.211.55.1 80 \n   GET \/ index.php \n   HTTP\/1.1 200 OK \n   Date: Sat, 28 Jan 2017 12:06:02 GMT \n   Server: Apache\/2.4.6 (CentOS) PHP\/5.4.16 \n   X-Powered-By: PHP\/5.4.16 \n   Content-Length: 137 \n   Connection: close \n   Content-Type: text\/html; charset=UTF-8\n   \n&lt;html&gt; \n   &lt;head&gt; \n      &lt;title&gt;PHP Test Page&lt;\/title&gt; \n   &lt;\/head&gt;\n   \n   &lt;body&gt; \n      PHP Install \n      We are now running PHP on GNU Centos Linux!&lt;br \/&gt;\n   &lt;\/body&gt; \n&lt;\/html&gt;\n\nbash-3.2#<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">PHP \u0438 LAMP \u2014 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u0432\u0435\u0431-\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.&nbsp;\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 LAMP \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u043e\u0439\u0434\u0435\u0442 \u0432 \u0441\u043f\u0438\u0441\u043e\u043a \u0432\u0430\u0448\u0438\u0445 \u043f\u043e\u0442\u0440\u0435\u0431\u043d\u043e\u0441\u0442\u0435\u0439 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 CentOS.&nbsp;\u041f\u0440\u043e\u0441\u0442\u044b\u0435 \u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u043f\u0430\u043a\u0435\u0442\u044b CentOS \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u0438 \u043c\u043d\u043e\u0433\u043e \u0443\u0441\u0438\u043b\u0438\u0439 \u043e\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 Apache, MySQL \u0438 PHP \u0438\u0437 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0434\u043d\u0438\u043c \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0445 \u0432\u0435\u0431-\u044f\u0437\u044b\u043a\u043e\u0432, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u0441\u0435\u0433\u043e\u0434\u043d\u044f.&nbsp;\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0441\u0442\u0435\u043a\u0430&nbsp;LAMP&nbsp;\u0432 CentOS \u2014 \u044d\u0442\u043e \u0442\u043e, \u0447\u0442\u043e \u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440 \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[106],"tags":[],"class_list":["post-3071","page","type-page","status-publish","hentry","category-linux"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/pages\/3071","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/comments?post=3071"}],"version-history":[{"count":0,"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/pages\/3071\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/media?parent=3071"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/categories?post=3071"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/tags?post=3071"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}