{"id":622,"date":"2017-12-01T00:00:29","date_gmt":"2017-11-30T21:00:29","guid":{"rendered":"https:\/\/galaxydata.ru\/community\/?p=622"},"modified":"2025-07-22T23:45:32","modified_gmt":"2025-07-22T20:45:32","slug":"php-7-1-vestacp","status":"publish","type":"post","link":"https:\/\/galaxydata.ru\/community\/php-7-1-vestacp-622","title":{"rendered":"PHP 7.1 VestaCP"},"content":{"rendered":"<p>sudo yum install yum-utils<br \/>\nIf it\u2019s already installed, great move on to the next step, if not then allow it to install.<\/p>\n<p>Now we can enable remi-php71<\/p>\n<p>Code:<br \/>\nsudo yum-config-manager &#8212;enable remi-php71<br \/>\nNow we can tell yum to update, this will upgrade our old version of PHP to 7.1<\/p>\n<p>Code:<\/p>\n<pre class=\"lang:sh decode:true \">yum -y --enablerepo=remi install php71-php php71-php-pear php71-php-bcmath php71-php-pecl-jsond-devel php71-php-mysqlnd php71-php-gd php71-php-common php71-php-fpm php71-php-intl php71-php-cli php71-php php71-php-xml php71-php-opcache php71-php-pecl-apcu php71-php-pecl-jsond php71-php-pdo php71-php-gmp php71-php-process php71-php-pecl-imagick php71-php-devel php71-php-mbstring<\/pre>\n<pre class=\"lang:sh decode:true\">service php-fpm stop\r\nyum -y --enablerepo=remi install php71-php php71-php-pear php71-php-bcmath php71-php-pecl-jsond-devel php71-php-mysqlnd php71-php-gd php71-php-common php71-php-fpm php71-php-intl php71-php-cli php71-php php71-php-xml php71-php-opcache php71-php-pecl-apcu php71-php-pecl-jsond php71-php-pdo php71-php-gmp php71-php-process php71-php-pecl-imagick php71-php-devel php71-php-mbstring\r\n# Link new php to default binary\r\nrm -f \/usr\/bin\/php\r\nln -s \/usr\/bin\/php71 \/usr\/bin\/php\r\n\/opt\/remi\/php71\/root\/usr\/bin\/php-cgi\r\n# Replace old PHP.ini with new one MAKE BACKUP BEFORE THAT IF YOU DO CHANGES.\r\nrm -f \/etc\/php.ini\r\nln -s \/etc\/opt\/remi\/php71\/php.ini \/etc\/php.ini\r\n<\/pre>\n<p>FOR FAST-CGI<\/p>\n<pre class=\"lang:sh decode:true \">mv \/usr\/bin\/php-cgi \/usr\/bin\/php56-cgi\r\nln -s \/usr\/bin\/php71-cgi \/usr\/bin\/php-cgi<\/pre>\n<p>&nbsp;<\/p>\n<p>sudo yum update<br \/>\nAfter the process has finished your server will now have PHP 7.1 installed, we need to restart our web server for it to take effect however.<\/p>\n<p>If you have Apache and NGINX installed, or just Apache installed run<\/p>\n<p>Code:<br \/>\nsudo service httpd restart<br \/>\nIf you are running NGINX and PHP-FPM then run<\/p>\n<p>sudo service php-fpm restart &amp;&amp; sudo service nginx restart<br \/>\nLastly we\u2019ll check the PHP version like we did at the start<\/p>\n<p>Code:<br \/>\nphp -v<\/p>\n<p>&nbsp;<\/p>\n<p>https:\/\/github.com\/Niklan\/Trash\/blob\/master\/VestaCP\/CentOS%20and%20PHP7.md<\/p>\n","protected":false},"excerpt":{"rendered":"<p>sudo yum install yum-utils If it\u2019s already installed, great move on to the next step, if not then allow it to install. Now we can enable remi-php71 Code: sudo yum-config-manager&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[52,12],"tags":[],"class_list":["post-622","post","type-post","status-publish","format-standard","hentry","category-application","category-webserver"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.4 (Yoast SEO v25.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PHP 7.1 VestaCP - GalaxyData Community<\/title>\n<meta name=\"description\" content=\"Guide to installing and configuring PHP 7.1 on Vesta Control Panel: detailed instructions for optimal performance and stability in hosting environments.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/galaxydata.ru\/community\/php-7-1-vestacp-622\" \/>\n<meta property=\"og:locale\" content=\"ru_RU\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP 7.1 VestaCP\" \/>\n<meta property=\"og:description\" content=\"Guide to installing and configuring PHP 7.1 on Vesta Control Panel: detailed instructions for optimal performance and stability in hosting environments.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/galaxydata.ru\/community\/php-7-1-vestacp-622\" \/>\n<meta property=\"og:site_name\" content=\"GalaxyData Community\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/vk.com\/galaxydata\" \/>\n<meta property=\"article:published_time\" content=\"2017-11-30T21:00:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-22T20:45:32+00:00\" \/>\n<meta name=\"author\" content=\"Eduard Yamaltdinov\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u043e\u043c\" \/>\n\t<meta name=\"twitter:data1\" content=\"Eduard Yamaltdinov\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u043c\u0438\u043d\u0443\u0442\u0430\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/galaxydata.ru\/community\/php-7-1-vestacp-622#article\",\"isPartOf\":{\"@id\":\"https:\/\/galaxydata.ru\/community\/php-7-1-vestacp-622\"},\"author\":{\"name\":\"Eduard Yamaltdinov\",\"@id\":\"https:\/\/galaxydata.ru\/community\/#\/schema\/person\/674f493b626af18d90fe784aa69dfd7b\"},\"headline\":\"PHP 7.1 VestaCP\",\"datePublished\":\"2017-11-30T21:00:29+00:00\",\"dateModified\":\"2025-07-22T20:45:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/galaxydata.ru\/community\/php-7-1-vestacp-622\"},\"wordCount\":148,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/galaxydata.ru\/community\/#organization\"},\"articleSection\":[\"Application\",\"Web Server\"],\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/galaxydata.ru\/community\/php-7-1-vestacp-622#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/galaxydata.ru\/community\/php-7-1-vestacp-622\",\"url\":\"https:\/\/galaxydata.ru\/community\/php-7-1-vestacp-622\",\"name\":\"PHP 7.1 VestaCP - GalaxyData Community\",\"isPartOf\":{\"@id\":\"https:\/\/galaxydata.ru\/community\/#website\"},\"datePublished\":\"2017-11-30T21:00:29+00:00\",\"dateModified\":\"2025-07-22T20:45:32+00:00\",\"description\":\"Guide to installing and configuring PHP 7.1 on Vesta Control Panel: detailed instructions for optimal performance and stability in hosting environments.\",\"breadcrumb\":{\"@id\":\"https:\/\/galaxydata.ru\/community\/php-7-1-vestacp-622#breadcrumb\"},\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/galaxydata.ru\/community\/php-7-1-vestacp-622\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/galaxydata.ru\/community\/php-7-1-vestacp-622#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\",\"item\":\"https:\/\/galaxydata.ru\/community\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP 7.1 VestaCP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/galaxydata.ru\/community\/#website\",\"url\":\"https:\/\/galaxydata.ru\/community\/\",\"name\":\"GalaxyData Community\",\"description\":\"Tutorial for Cloud VDS\",\"publisher\":{\"@id\":\"https:\/\/galaxydata.ru\/community\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/galaxydata.ru\/community\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ru-RU\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/galaxydata.ru\/community\/#organization\",\"name\":\"GalaxyData Community\",\"url\":\"https:\/\/galaxydata.ru\/community\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\/\/galaxydata.ru\/community\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/galaxydata.ru\/community\/wp-content\/uploads\/2026\/04\/cropped-galaxydata-site-v3.2.png\",\"contentUrl\":\"https:\/\/galaxydata.ru\/community\/wp-content\/uploads\/2026\/04\/cropped-galaxydata-site-v3.2.png\",\"width\":257,\"height\":44,\"caption\":\"GalaxyData Community\"},\"image\":{\"@id\":\"https:\/\/galaxydata.ru\/community\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/vk.com\/galaxydata\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/galaxydata.ru\/community\/#\/schema\/person\/674f493b626af18d90fe784aa69dfd7b\",\"name\":\"Eduard Yamaltdinov\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\/\/galaxydata.ru\/community\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/galaxydata.ru\/community\/wp-content\/uploads\/2016\/10\/cloud-server-150x150.png\",\"contentUrl\":\"https:\/\/galaxydata.ru\/community\/wp-content\/uploads\/2016\/10\/cloud-server-150x150.png\",\"caption\":\"Eduard Yamaltdinov\"},\"description\":\"Eduard Yamaltdinov \u2014 \u0430\u0432\u0442\u043e\u0440 \u0438 \u044d\u043a\u0441\u043f\u0435\u0440\u0442 \u0432 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439 \u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043e \u0435\u0433\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0445, \u043e\u043f\u044b\u0442\u0435 \u0438\u043b\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445, \u0441\u043e\u043e\u0431\u0449\u0438\u0442\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435, \u043a\u0430\u043a\u0443\u044e \u0438\u043c\u0435\u043d\u043d\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c.\",\"url\":\"https:\/\/galaxydata.ru\/community\/author\/galaxydata\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"PHP 7.1 VestaCP - GalaxyData Community","description":"Guide to installing and configuring PHP 7.1 on Vesta Control Panel: detailed instructions for optimal performance and stability in hosting environments.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/galaxydata.ru\/community\/php-7-1-vestacp-622","og_locale":"ru_RU","og_type":"article","og_title":"PHP 7.1 VestaCP","og_description":"Guide to installing and configuring PHP 7.1 on Vesta Control Panel: detailed instructions for optimal performance and stability in hosting environments.","og_url":"https:\/\/galaxydata.ru\/community\/php-7-1-vestacp-622","og_site_name":"GalaxyData Community","article_publisher":"https:\/\/vk.com\/galaxydata","article_published_time":"2017-11-30T21:00:29+00:00","article_modified_time":"2025-07-22T20:45:32+00:00","author":"Eduard Yamaltdinov","twitter_card":"summary_large_image","twitter_misc":{"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u043e\u043c":"Eduard Yamaltdinov","\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f":"1 \u043c\u0438\u043d\u0443\u0442\u0430"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/galaxydata.ru\/community\/php-7-1-vestacp-622#article","isPartOf":{"@id":"https:\/\/galaxydata.ru\/community\/php-7-1-vestacp-622"},"author":{"name":"Eduard Yamaltdinov","@id":"https:\/\/galaxydata.ru\/community\/#\/schema\/person\/674f493b626af18d90fe784aa69dfd7b"},"headline":"PHP 7.1 VestaCP","datePublished":"2017-11-30T21:00:29+00:00","dateModified":"2025-07-22T20:45:32+00:00","mainEntityOfPage":{"@id":"https:\/\/galaxydata.ru\/community\/php-7-1-vestacp-622"},"wordCount":148,"commentCount":0,"publisher":{"@id":"https:\/\/galaxydata.ru\/community\/#organization"},"articleSection":["Application","Web Server"],"inLanguage":"ru-RU","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/galaxydata.ru\/community\/php-7-1-vestacp-622#respond"]}]},{"@type":"WebPage","@id":"https:\/\/galaxydata.ru\/community\/php-7-1-vestacp-622","url":"https:\/\/galaxydata.ru\/community\/php-7-1-vestacp-622","name":"PHP 7.1 VestaCP - GalaxyData Community","isPartOf":{"@id":"https:\/\/galaxydata.ru\/community\/#website"},"datePublished":"2017-11-30T21:00:29+00:00","dateModified":"2025-07-22T20:45:32+00:00","description":"Guide to installing and configuring PHP 7.1 on Vesta Control Panel: detailed instructions for optimal performance and stability in hosting environments.","breadcrumb":{"@id":"https:\/\/galaxydata.ru\/community\/php-7-1-vestacp-622#breadcrumb"},"inLanguage":"ru-RU","potentialAction":[{"@type":"ReadAction","target":["https:\/\/galaxydata.ru\/community\/php-7-1-vestacp-622"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/galaxydata.ru\/community\/php-7-1-vestacp-622#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430","item":"https:\/\/galaxydata.ru\/community"},{"@type":"ListItem","position":2,"name":"PHP 7.1 VestaCP"}]},{"@type":"WebSite","@id":"https:\/\/galaxydata.ru\/community\/#website","url":"https:\/\/galaxydata.ru\/community\/","name":"GalaxyData Community","description":"Tutorial for Cloud VDS","publisher":{"@id":"https:\/\/galaxydata.ru\/community\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/galaxydata.ru\/community\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ru-RU"},{"@type":"Organization","@id":"https:\/\/galaxydata.ru\/community\/#organization","name":"GalaxyData Community","url":"https:\/\/galaxydata.ru\/community\/","logo":{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/galaxydata.ru\/community\/#\/schema\/logo\/image\/","url":"https:\/\/galaxydata.ru\/community\/wp-content\/uploads\/2026\/04\/cropped-galaxydata-site-v3.2.png","contentUrl":"https:\/\/galaxydata.ru\/community\/wp-content\/uploads\/2026\/04\/cropped-galaxydata-site-v3.2.png","width":257,"height":44,"caption":"GalaxyData Community"},"image":{"@id":"https:\/\/galaxydata.ru\/community\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/vk.com\/galaxydata"]},{"@type":"Person","@id":"https:\/\/galaxydata.ru\/community\/#\/schema\/person\/674f493b626af18d90fe784aa69dfd7b","name":"Eduard Yamaltdinov","image":{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/galaxydata.ru\/community\/#\/schema\/person\/image\/","url":"https:\/\/galaxydata.ru\/community\/wp-content\/uploads\/2016\/10\/cloud-server-150x150.png","contentUrl":"https:\/\/galaxydata.ru\/community\/wp-content\/uploads\/2016\/10\/cloud-server-150x150.png","caption":"Eduard Yamaltdinov"},"description":"Eduard Yamaltdinov \u2014 \u0430\u0432\u0442\u043e\u0440 \u0438 \u044d\u043a\u0441\u043f\u0435\u0440\u0442 \u0432 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439 \u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043e \u0435\u0433\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0445, \u043e\u043f\u044b\u0442\u0435 \u0438\u043b\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445, \u0441\u043e\u043e\u0431\u0449\u0438\u0442\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435, \u043a\u0430\u043a\u0443\u044e \u0438\u043c\u0435\u043d\u043d\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c.","url":"https:\/\/galaxydata.ru\/community\/author\/galaxydata"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/posts\/622","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/comments?post=622"}],"version-history":[{"count":1,"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/posts\/622\/revisions"}],"predecessor-version":[{"id":1949,"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/posts\/622\/revisions\/1949"}],"wp:attachment":[{"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/media?parent=622"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/categories?post=622"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/tags?post=622"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}