{"id":1137,"date":"2019-11-19T22:19:20","date_gmt":"2019-11-19T18:19:20","guid":{"rendered":"https:\/\/bukleev.ru\/?page_id=1137"},"modified":"2019-11-21T01:42:22","modified_gmt":"2019-11-20T21:42:22","slug":"%d0%b2%d0%be%d1%81%d1%81%d1%82%d0%b0%d0%bd%d0%be%d0%b2%d0%bb%d0%b5%d0%bd%d0%b8%d0%b5-fusionpbx","status":"publish","type":"page","link":"https:\/\/bukleev.ru\/?page_id=1137","title":{"rendered":"\u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 FusionPBX"},"content":{"rendered":"<p>\u0418\u043c\u0435\u0435\u043c \u0444\u0430\u0439\u043b fusiopbx&#8230;&#8230;.sql \u0441 \u043f\u043e\u0432\u0440\u0435\u0436\u0434\u0435\u043d\u043d\u043e\u0439 IP ATS<\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0441 \u043d\u0443\u043b\u044f Centos 7, FusionPBX.<\/p>\n<p>\u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0447\u0435\u0440\u0435\u0437 web \u0430\u0434\u043c\u0438\u043d\u043a\u0443, \u0432\u0438\u0434\u0438\u043c \u0447\u0438\u0441\u0442\u0443\u044e \u0410\u0422\u0421<\/p>\n<pre> # psql -U postgres -w \\fusionpbx\r\npsql: \u0412\u0410\u0416\u041d\u041e: \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \"postgres\" \u043d\u0435 \u043f\u0440\u043e\u0448\u0451\u043b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043f\u043e\u0434\u043b\u0438\u043d\u043d\u043e\u0441\u0442\u0438 (Peer)<\/pre>\n<p>\u0418\u0449\u0435\u043c \u0444\u0430\u0439\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 pg_hba.conf \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439<\/p>\n<pre>find \/ -name pg_hba.conf -type f 2&gt;\/dev\/null<\/pre>\n<p>\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \/var\/lib\/pgsql\/9.4\/data\/pg_hba.conf, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c:<\/p>\n<pre>local all all trust\r\nlocal all postgres peer\r\nlocal all dbadmin peer\r\n\r\n# TYPE DATABASE USER ADDRESS METHOD<\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c postgres \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u0431\u0430\u0437<\/p>\n<pre>postgres=# \\l<\/pre>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u0431\u0430\u0437<\/p>\n<pre> \u0421\u043f\u0438\u0441\u043e\u043a \u0431\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0445\r\n\u0418\u043c\u044f | \u0412\u043b\u0430\u0434\u0435\u043b\u0435\u0446 | \u041a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0430 | LC_COLLATE | LC_CTYPE | \u041f\u0440\u0430\u0432\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430\r\n------------+----------+-----------+-------------+-------------+-------------------------\r\nfreeswitch\u00a0\r\nfusionpbx\u00a0\r\npostgres\u00a0\r\ntemplate0\u00a0\r\ntemplate1\r\n(5 \u0441\u0442\u0440\u043e\u043a)<\/pre>\n<p>\u0423\u0434\u0430\u043b\u044f\u0435\u043c \u0431\u0430\u0437\u0443 fusionpbx<\/p>\n<pre>postgres=# DROP DATABASE fusionpbx;<\/pre>\n<p>\u0412\u044b\u0432\u043e\u0434\u0438\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u0431\u0430\u0437 \\l &#8212; \u0432\u0438\u0434\u0438\u043c \u0447\u0442\u043e \u0431\u0430\u0437\u044b \u043d\u0435\u0442.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0447\u0438\u0441\u0442\u0443\u044e \u0431\u0430\u0437\u0443<\/p>\n<pre>postgres=# CREATE DATABASE fusionpbx;<\/pre>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0431\u0430\u0437\u0443<\/p>\n<pre>postgres=# GRANT ALL PRIVILEGES ON DATABASE fusionpbx TO fusionpbx;\r\n\r\npostgres=# GRANT ALL PRIVILEGES ON DATABASE fusionpbx TO postgres;<\/pre>\n<p>\u0417\u0430\u043b\u0438\u0432\u0430\u0435\u043c \u043d\u0430\u0448 \u0434\u0430\u043c\u043f \u0444\u0430\u0439\u043b \u0432 \u0447\u0438\u0441\u0442\u0443\u044e \u0431\u0430\u0437\u0443:<\/p>\n<pre>pg_restore -v -Fc --dbname=fusionpbx --username=fusionpbx \/var\/lib\/pgsql\/9.4\/fusionpbx.sql<\/pre>\n<p>\u0411\u0435\u0440\u0435\u043c \u043f\u0430\u0440\u043e\u043b\u044c \u043e\u0442 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0444\u0430\u0439\u043b\u0435 \/etc\/fusionpbx\/config.php<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u043c \u043f\u0430\u0440\u043e\u043b\u044c \u0432 \u0430\u0434\u043c\u0438\u043d\u043a\u0443 FusionPBX.<\/p>\n<pre>mv \/etc\/fusionpbx\/config.php  \/etc\/fusionpbx\/config.php_old<\/pre>\n<p>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c http:\/\/ IP ADDRESS ATS<\/p>\n<p>\u0412\u0432\u043e\u0434\u0438\u043c \u043d\u043e\u0432\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c \u0430\u0434\u043c\u0438\u043d\u0430 \u0438 \u043f\u0430\u0440\u043e\u043b\u044c \u043a \u0431\u0430\u0437\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d \u0431\u044b\u043b \u0432 \u0444\u0430\u0439\u043b\u0435 \/etc\/fusionpbx\/config.php<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0444\u0430\u0439\u043b, \u043c\u0435\u043d\u044f\u0435\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432 \u0444\u0430\u0439\u043b\u0435 \u00a0\/etc\/php.ini<\/p>\n<p><strong>upload_max_filesize<\/strong> \u2014 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430,<br \/>\n<strong>post_max_size<\/strong> \u2014 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043c\u0435\u0442\u043e\u0434\u043e\u043c POST.<\/p>\n<p>\u0420\u0435\u0441\u0442\u0430\u0440\u0442\u0443\u0435\u043c<\/p>\n<pre><strong>service php-fpm restart<\/strong><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0432\u0435\u0440\u0441\u0438\u044e FusionPBX \u0438\u0437 \u043f\u0430\u043d\u0435\u043b\u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430<\/p>\n<p>\u041d\u0443 \u0438 \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0444\u0430\u0439\u043b\u044b<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u0414\u043b\u044f \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430 Postgre<\/p>\n<pre class=\"lang-sql prettyprint prettyprinted\"><code><span class=\"pln\">systemctl list-units<\/span><span class=\"pun\">|<\/span><span class=\"pln\">grep postgresql<\/span><\/code><\/pre>\n<p>\u041d\u0443 \u0438 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0432\u0435\u0440\u0441\u0438\u0438<\/p>\n<pre class=\"lang-sql prettyprint prettyprinted\"><code><span class=\"pln\">service postgresql-9.4<\/span><span class=\"pun\">.<\/span><span class=\"pln\">service restart<\/span><\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0418\u043c\u0435\u0435\u043c \u0444\u0430\u0439\u043b fusiopbx&#8230;&#8230;.sql \u0441 \u043f\u043e\u0432\u0440\u0435\u0436\u0434\u0435\u043d\u043d\u043e\u0439 IP ATS \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0441 \u043d\u0443\u043b\u044f Centos 7, FusionPBX. \u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0447\u0435\u0440\u0435\u0437 web \u0430\u0434\u043c\u0438\u043d\u043a\u0443, \u0432\u0438\u0434\u0438\u043c \u0447\u0438\u0441\u0442\u0443\u044e \u0410\u0422\u0421 # psql -U postgres -w \\fusionpbx psql: \u0412\u0410\u0416\u041d\u041e: \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c &#171;postgres&#187; \u043d\u0435 \u043f\u0440\u043e\u0448\u0451\u043b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043f\u043e\u0434\u043b\u0438\u043d\u043d\u043e\u0441\u0442\u0438 (Peer) \u0418\u0449\u0435\u043c \u0444\u0430\u0439\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 pg_hba.conf \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1137","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/bukleev.ru\/index.php?rest_route=\/wp\/v2\/pages\/1137","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bukleev.ru\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/bukleev.ru\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/bukleev.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bukleev.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1137"}],"version-history":[{"count":6,"href":"https:\/\/bukleev.ru\/index.php?rest_route=\/wp\/v2\/pages\/1137\/revisions"}],"predecessor-version":[{"id":1143,"href":"https:\/\/bukleev.ru\/index.php?rest_route=\/wp\/v2\/pages\/1137\/revisions\/1143"}],"wp:attachment":[{"href":"https:\/\/bukleev.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}