{"id":29099,"date":"2020-03-11T13:40:48","date_gmt":"2020-03-11T18:40:48","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=29099"},"modified":"2022-12-30T02:29:40","modified_gmt":"2022-12-30T08:29:40","slug":"how-to-install-php-7-3-on-centos-7","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-php-7-3-on-centos-7\/","title":{"rendered":"How to Install PHP 7.3 on CentOS 7"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-32412\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-install-php7.3-on-centos7.jpg\" alt=\"\" width=\"742\" height=\"372\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-install-php7.3-on-centos7.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-install-php7.3-on-centos7-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-install-php7.3-on-centos7-150x75.jpg 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>In this tutorial, we will guide you through the steps of installing the latest PHP version 7.3 on a <a href=\"https:\/\/www.rosehosting.com\/centos-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">CentOS 7 VPS<\/a>.<\/p>\n<p><img decoding=\"async\" class=\"alignright size-full wp-image-32413\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/setup-php-scripting-language-on-centos7-vps.jpg\" alt=\"\" width=\"120\" height=\"120\" \/>PHP is a server-side scripting language, commonly used for Web development, but it is also used as a general-purpose programming language. It is the most popular server-side (back-end) programming language and it powers some of the most popular products on the market, such as WordPress, the most widely used content management system, as well as e-commerce platforms such as Magento and PrestaShop. PHP also powers customer relationship management software, enterprise resource planning software, and lots more. The process of installing PHP 7.3 on CentOS 7 is a pretty easy and straightforward task, and it can be done in less than 10 minutes.<!--more--><\/p>\n<p>PHP 7 offers much better performances and security improvements than its predecessors. Listed below are some of the new features and changes in PHP 7.3:<\/p>\n<ul>\n<li>Flexible Heredoc And Nowdoc Syntaxes<\/li>\n<li>Allow a Trailing Comma in Function Calls<\/li>\n<li>JSON_THROW_ON_ERROR<\/li>\n<li>Same Site Cookie<\/li>\n<li>Deprecate and Remove Case-Insensitive Constants<\/li>\n<li>list() Reference Assignment<\/li>\n<li>is_countable Function<\/li>\n<li>array_key_first(), array_key_last()<\/li>\n<li>Argon2 Password Hash Enhancements<\/li>\n<\/ul>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69dbce71c9640\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69dbce71c9640\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-php-7-3-on-centos-7\/#Prerequisites\" >Prerequisites<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-php-7-3-on-centos-7\/#Step-1-Log-in-and-Update-the-Server\" >Step 1: Log in and Update the Server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-php-7-3-on-centos-7\/#Step-2-Install-PHP-73\" >Step 2: Install PHP 7.3<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-php-7-3-on-centos-7\/#Step-3-Create-a-phpinfo-Page\" >Step 3: Create a phpinfo Page<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span><strong>Prerequisites<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>CentOS 7 VPS<\/li>\n<li>User with root privileges &#8211; All of our VPS hosting plans come with full root access. You can also use a user account with sudo privileges.<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Step-1-Log-in-and-Update-the-Server\"><\/span><strong>Step 1: Log in and Update the Server<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Login to your CentOS 7 VPS via SSH as the root user:<\/p>\n<pre>ssh root@<span style=\"color: #ff0000;\">IP_Address<\/span> -p <span style=\"color: #ff0000;\">Port_number<\/span><\/pre>\n<p>Replace &#8216;<span style=\"color: #ff0000;\">IP_Address<\/span>&#8216; and &#8216;<span style=\"color: #ff0000;\">Port_number<\/span>&#8216; with your actual IP address and SSH port number.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-2-Install-PHP-73\"><\/span><strong>Step 2: Install PHP 7.3<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>CentOS 7 by default is shipped with PHP 5.4 at the time of writing this article, which is a very old and outdated version and it has reached its end of life in September 2015. This also adds security vulnerabilities onto your server if you use PHP in a web setting. Luckily, some trusted and well-maintained repositories offer newer versions of PHP. In this case we will install and use PHP 7.3 from the Remi repository.<\/p>\n<p>First of all, check if PHP is already installed on your server. If it is installed, check what version your server is running. You can do it with the following command:<\/p>\n<pre># php -v<\/pre>\n<p>Output:<\/p>\n<pre>PHP 5.4.16 (cli) (built: Apr 12 2018 19:02:01)\r\nCopyright (c) 1997-2013 The PHP Group\r\nZend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies<\/pre>\n<p>According to the output, PHP 5.4 is installed on our CentOS VPS, which we mentioned that it is the latest available version in the CentOS 7 repositories. In order to install PHP 7.3, we have to remove this version:<\/p>\n<pre>yum remove php*\r\n\r\nRemoving:\r\n php       \r\n php-cli   \r\n php-common\r\n php-mysql \r\n php-pdo<\/pre>\n<p>This command will remove PHP and all installed PHP extensions.<\/p>\n<p>Run the following commands to add the Remi and Epel repositories to your server, and install yum-utils, which is a collection of tools for managing yum repositories:<\/p>\n<pre>yum install http:\/\/rpms.remirepo.net\/enterprise\/remi-release-7.rpm\r\nyum install yum-utils epel-release<\/pre>\n<p>Disable the PHP 5.4 repository, which is enabled by default:<\/p>\n<pre>yum-config-manager --disable remi-php54<\/pre>\n<p>and enable the PHP 7.3 repository:<\/p>\n<pre>yum-config-manager --enable remi-php73<\/pre>\n<p>After the Remi repository for PHP 7.3 is enabled, we can easily install it with the yum package manager.<\/p>\n<pre>yum -y install php\r\n\r\nInstalling:\r\n php                         \r\nInstalling for dependencies:\r\n libargon2                   \r\n php-cli                     \r\n php-common                  \r\n php-json<\/pre>\n<p>It will install PHP 7.3 and some of its dependencies, as shown in the output above.<\/p>\n<p>Once the installation is completed, you can check the installed PHP version:<\/p>\n<pre>php -v\r\n\r\nOutput:<\/pre>\n<pre>PHP 7.3.0RC5 (cli) (built: Nov  6 2018 10:22:47) ( NTS )\r\nCopyright (c) 1997-2018 The PHP Group\r\nZend Engine v3.3.0-dev, Copyright (c) 1998-2018 Zend Technologies<\/pre>\n<p>You can easily install all necessary PHP extensions using the same way, as long as they are available in the repository. For example, if you need the MySQL, Multibyte String (mbstring), Mcrypt and the SimpleXML Parser PHP extensoins, you can install them with the following command:<\/p>\n<pre>yum -y install php-mysqlnd php-mbstring php-pecl-mcrypt php-xml<\/pre>\n<p>You can test if the extensions is properly installed using the following command:<\/p>\n<pre>php -m |grep extension_name<\/pre>\n<p>For example, to test if the Multibyte String (mbstring) extension is installed, you can use the following:<\/p>\n<pre>php -m |grep mbstring<\/pre>\n<p>output:<\/p>\n<pre>mbstring<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-3-Create-a-phpinfo-Page\"><\/span><strong>Step 3: Create a phpinfo Page<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In order to check a detailed information about the installed PHP version, extension, settings, and much more, you can create a phpinfo page. It displays a big amount of useful information about PHP. Including information about the PHP version, PHP compilation options and extensions, server information and environment (if compiled as a module), the PHP environment, OS version information, paths, master and local values of configuration options, HTTP headers, and the PHP License.<\/p>\n<p>To do this, go to the web server&#8217;s document root directory<\/p>\n<pre>cd \/var\/www\/html<\/pre>\n<p>and create a phpinfo.php file with the following content<\/p>\n<pre>vi phpinfo.php\r\n\r\n&lt;?php\r\nphpinfo();\r\n?&gt;\r\n<!--?php phpinfo(); ?--><\/pre>\n<p>Save the file and access <code>http:\/\/YourIPaddress\/phpinfo.php<\/code> with your favorite web browser. You should get the following page<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-29100 alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/11\/phpinfo.png\" alt=\"\" width=\"1001\" height=\"811\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/11\/phpinfo.png 1001w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/11\/phpinfo-150x122.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/11\/phpinfo-300x243.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/11\/phpinfo-768x622.png 768w\" sizes=\"(max-width: 1001px) 100vw, 1001px\" \/><\/p>\n<p>For more information about PHP, its configuration and features you can check their official documentation.<\/p>\n<hr \/>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-32414\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/managed-php-hosting-web-programming-language-centos.jpg\" alt=\"\" width=\"120\" height=\"120\" \/>Of course, you don\u2019t have to install PHP 7.3 on CentOS 7 if you use one of our <a href=\"https:\/\/www.rosehosting.com\/php-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">PHP 7 VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install the latest version of PHP on CentOS 7 for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS.<\/strong><\/span> If you liked this post on how to install PHP 7.3 on CentOS 7, please share it with your friends on the social networks using the sharing buttons, or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will guide you through the steps of installing the latest PHP version 7.3 on a CentOS &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install PHP 7.3 on CentOS 7\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-php-7-3-on-centos-7\/#more-29099\" aria-label=\"Read more about How to Install PHP 7.3 on CentOS 7\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":32412,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1699,13],"tags":[34,50],"class_list":["post-29099","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-tutorials","tag-centos","tag-php","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install PHP 7.3 on CentOS 7 | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to Install PHP 7.3 on CentOS 7 | RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-php-7-3-on-centos-7\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install PHP 7.3 on CentOS 7\" \/>\n<meta property=\"og:description\" content=\"How to Install PHP 7.3 on CentOS 7 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-php-7-3-on-centos-7\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2020-03-11T18:40:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-30T08:29:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-install-php7.3-on-centos7.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-php-7-3-on-centos-7\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-php-7-3-on-centos-7\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install PHP 7.3 on CentOS 7\",\"datePublished\":\"2020-03-11T18:40:48+00:00\",\"dateModified\":\"2022-12-30T08:29:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-php-7-3-on-centos-7\\\/\"},\"wordCount\":785,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-php-7-3-on-centos-7\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/how-to-install-php7.3-on-centos7.jpg\",\"keywords\":[\"centos\",\"php\"],\"articleSection\":[\"CentOS\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-php-7-3-on-centos-7\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-php-7-3-on-centos-7\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-php-7-3-on-centos-7\\\/\",\"name\":\"How to Install PHP 7.3 on CentOS 7 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-php-7-3-on-centos-7\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-php-7-3-on-centos-7\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/how-to-install-php7.3-on-centos7.jpg\",\"datePublished\":\"2020-03-11T18:40:48+00:00\",\"dateModified\":\"2022-12-30T08:29:40+00:00\",\"description\":\"How to Install PHP 7.3 on CentOS 7 | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-php-7-3-on-centos-7\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-php-7-3-on-centos-7\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-php-7-3-on-centos-7\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/how-to-install-php7.3-on-centos7.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/how-to-install-php7.3-on-centos7.jpg\",\"width\":742,\"height\":372},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-php-7-3-on-centos-7\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install PHP 7.3 on CentOS 7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Install PHP 7.3 on CentOS 7 | RoseHosting","description":"How to Install PHP 7.3 on CentOS 7 | RoseHosting","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:\/\/www.rosehosting.com\/blog\/how-to-install-php-7-3-on-centos-7\/","og_locale":"en_US","og_type":"article","og_title":"How to Install PHP 7.3 on CentOS 7","og_description":"How to Install PHP 7.3 on CentOS 7 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-php-7-3-on-centos-7\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2020-03-11T18:40:48+00:00","article_modified_time":"2022-12-30T08:29:40+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-install-php7.3-on-centos7.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-php-7-3-on-centos-7\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-php-7-3-on-centos-7\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install PHP 7.3 on CentOS 7","datePublished":"2020-03-11T18:40:48+00:00","dateModified":"2022-12-30T08:29:40+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-php-7-3-on-centos-7\/"},"wordCount":785,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-php-7-3-on-centos-7\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-install-php7.3-on-centos7.jpg","keywords":["centos","php"],"articleSection":["CentOS","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-php-7-3-on-centos-7\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-php-7-3-on-centos-7\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-php-7-3-on-centos-7\/","name":"How to Install PHP 7.3 on CentOS 7 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-php-7-3-on-centos-7\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-php-7-3-on-centos-7\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-install-php7.3-on-centos7.jpg","datePublished":"2020-03-11T18:40:48+00:00","dateModified":"2022-12-30T08:29:40+00:00","description":"How to Install PHP 7.3 on CentOS 7 | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-php-7-3-on-centos-7\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-php-7-3-on-centos-7\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-php-7-3-on-centos-7\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-install-php7.3-on-centos7.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-install-php7.3-on-centos7.jpg","width":742,"height":372},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-php-7-3-on-centos-7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install PHP 7.3 on CentOS 7"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/29099","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=29099"}],"version-history":[{"count":3,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/29099\/revisions"}],"predecessor-version":[{"id":44600,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/29099\/revisions\/44600"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/32412"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=29099"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=29099"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=29099"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}