{"id":2535,"date":"2012-03-26T18:22:33","date_gmt":"2012-03-26T10:22:33","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=2535"},"modified":"2023-06-26T21:25:13","modified_gmt":"2023-06-26T21:25:13","slug":"how-to-install-php-on-fedora-16","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-install-php-on-fedora-16\/","title":{"rendered":"How to Install PHP on Fedora 16"},"content":{"rendered":"<p>PHP, or Hypertext Preprocessor, is a widely utilized, open-source server-side scripting language specifically designed for web development to create dynamic web pages. It can be embedded into HTML and is commonly associated with file extensions such as .php, .php4, or .php5. However, PHP is not included in a minimal installation of Fedora 16, necessitating manual installation.<\/p>\n<p>This guide will walk you through the process of installing PHP on a Fedora 16 server. This tutorial assumes that you have set up a local yum repository using your DVDROM and have installed the minimal installation type of Fedora 16.<\/p>\n<h2>Installing PHP on Fedora 16<\/h2>\n<p>To install PHP on Fedora 16, you will need to run the yum command. This will install the basic PHP package, which includes php-cli and php-common. Here is the command you need to run:<\/p>\n<pre>\r\n[root@fedora16 ~]# yum install php -y\r\n<\/pre>\n<p>Upon running this command, the system will begin the installation process. It will resolve any dependencies and run a transaction check. The system will then install the PHP package, along with any necessary dependencies.<\/p>\n<p>The installation process will look something like this:<\/p>\n<pre>\r\nSetting up Install Process\r\nResolving Dependencies\r\n--> Running transaction check\r\n---> Package php.i686 0:5.3.10-1.fc16 will be installed\r\n--> Processing Dependency: php-common(x86-32) = 5.3.10-1.fc16 for package: php-5.3.10-1.fc16.i686\r\n--> Processing Dependency: php-cli(x86-32) = 5.3.10-1.fc16 for package: php-5.3.10-1.fc16.i686\r\n--> Running transaction check\r\n---> Package php-cli.i686 0:5.3.10-1.fc16 will be installed\r\n--> Processing Dependency: libedit.so.0 for package: php-cli-5.3.10-1.fc16.i686\r\n---> Package php-common.i686 0:5.3.10-1.fc16 will be installed\r\n--> Running transaction check\r\n---> Package libedit.i686 0:3.0-4.20110227cvs.fc16 will be installed\r\n--> Finished Dependency Resolution\r\n\r\nDependencies Resolved\r\n\r\n====================================================================================================\r\n Package            Arch         Version                          Repository                   Size\r\n====================================================================================================\r\nInstalling:\r\n php                i686         5.3.10-1.fc16                    updates                     2.3 M\r\nInstalling for dependencies:\r\n libedit            i686         3.0-4.20110227cvs.fc16           Fedora16-Repository          85 k\r\n php-cli            i686         5.3.10-1.fc16                    updates                     2.2 M\r\n php-common         i686         5.3.10-1.fc16                    updates                     501 k\r\n\r\nTransaction Summary\r\n====================================================================================================\r\nInstall       4 Packages\r\n\r\nTotal download size: 5.1 M\r\nInstalled size: 16 M\r\n<\/pre>\n<p>Once the dependencies are resolved, the system will install the PHP package and its dependencies. The total download size will be around 5.1 MB, and the installed size will be around 16 MB.<\/p>\n<p>The installation process will continue as follows:<\/p>\n<pre>\r\nDownloading Packages:\r\n(2\/4): php-5.3.10-1.fc16.i686.rpm                                            | 2.3 MB     00:27\r\nwarning: rpmts_HdrFromFdno: Header V3 RSA\/SHA256 Signature, key ID a82ba4b7: NOKEY\r\nPublic key for php-5.3.10-1.fc16.i686.rpm is not installed\r\n(3\/4): php-cli-5.3.10-1.fc16.i686.rpm                                        | 2.2 MB     00:35\r\n(4\/4): php-common-5.3.10-1.fc16.i686.rpm                                     | 501 kB     00:06\r\n----------------------------------------------------------------------------------------------------\r\nTotal                                                                73 kB\/s | 5.1 MB     01:10\r\nRetrieving key from file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-fedora-i386\r\nImporting GPG key 0xA82BA4B7:\r\n Userid : Fedora (16) <fedora@fedoraproject.org>\r\n Package: fedora-release-16-1.noarch (@anaconda-0)\r\n From   : \/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-fedora-i386\r\nRunning Transaction Check\r\nRunning Transaction Test\r\nTransaction Test Succeeded\r\nRunning Transaction\r\n  Installing : php-common-5.3.10-1.fc16.i686                                                    1\/4\r\n  Installing : libedit-3.0-4.20110227cvs.fc16.i686                                              2\/4\r\n  Installing : php-cli-5.3.10-1.fc16.i686                                                       3\/4\r\n  Installing : php-5.3.10-1.fc16.i686                                                           4\/4\r\n\r\nInstalled:\r\n  php.i686 0:5.3.10-1.fc16\r\n\r\nDependency Installed:\r\n  libedit.i686 0:3.0-4.20110227cvs.fc16                 php-cli.i686 0:5.3.10-1.fc16\r\n  php-common.i686 0:5.3.10-1.fc16\r\n\r\nComplete!\r\n<\/pre>\n<p>Upon completion, PHP should be successfully installed on your Fedora 16 server.<\/p>\n<h2>Commands Mentioned<\/h2>\n<ul>\n<li><span class=\"fw-bold\">yum install php -y<\/span> \u2013 This command installs PHP on your Fedora 16 server.<\/li>\n<\/ul>\n<h2>Conclusion<\/h2>\n<p>Installing PHP on Fedora 16 is a straightforward process that involves running a single command and allowing the system to resolve and install the necessary dependencies.<\/p>\n<p>This guide has provided a step-by-step walkthrough of the process, making it easy for anyone to install PHP on their Fedora 16 server. Whether you&#8217;re a seasoned webmaster or a beginner, this guide should have provided you with the knowledge and confidence to install PHP on Fedora 16.<\/p>\n<p>For more guides and tutorials on web servers, check out our articles on the <a href=\"https:\/\/webhostinggeeks.com\/best\/web-server\/\">top web servers<\/a>, including <a href=\"https:\/\/webhostinggeeks.com\/blog\/apache-http-server-explained\/\">Apache<\/a>, <a href=\"https:\/\/webhostinggeeks.com\/blog\/nginx-server-explained\/\">Nginx<\/a>, and <a href=\"https:\/\/webhostinggeeks.com\/blog\/litespeed-web-server-explained\/\">LiteSpeed<\/a>. If you&#8217;re interested in different types of hosting, we also have articles on <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-dedicated-server-hosting\/\">dedicated server hosting<\/a>, <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-vps-hosting\/\">VPS server hosting<\/a>, <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-cloud-hosting\/\">cloud hosting<\/a>, and <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-shared-hosting\/\">shared hosting<\/a>.<\/p>\n<h2>FAQ<\/h2>\n<ol itemscope itemtype=\"https:\/\/schema.org\/FAQPage\">\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">What is PHP?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">PHP, or Hypertext Preprocessor, is a widely used, open-source server-side scripting language specifically designed for web development to produce dynamic web pages. It can be embedded into HTML.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">Why isn&#8217;t PHP included in a minimal installation of Fedora 16?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">A minimal installation of Fedora 16 includes only the most essential software and packages to run the system, and PHP is not among them. This allows the system to be lightweight and efficient.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">What does the &#8216;yum install php -y&#8217; command do?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">The &#8216;yum install php -y&#8217; command installs the PHP package on your Fedora 16 server. The &#8216;-y&#8217; option automatically answers &#8216;yes&#8217; to any prompts, allowing the installation to proceed without user intervention.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">What are the dependencies for installing PHP on Fedora 16?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscopeitemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">The dependencies for installing PHP on Fedora 16 include php-common and php-cli, as well as libedit. These packages are necessary for PHP to function correctly on the server.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">What is the total size of the PHP installation on Fedora 16?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">The total download size for installing PHP on Fedora 16 is around 5.1 MB, and the installed size is around 16 MB. This includes the PHP package itself and its dependencies.<\/span>\n            <\/p>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>PHP, or Hypertext Preprocessor, is a widely utilized, open-source server-side scripting language specifically designed for web development to create dynamic web pages. It can be embedded into HTML and is&#8230;<\/p>\n","protected":false},"author":6,"featured_media":1262,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[2057,1025],"tags":[1371,1975,1536,1546,1646,1647],"class_list":["post-2535","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-fedora","category-php","tag-fedora-16","tag-install","tag-linux","tag-linux-utilities","tag-php","tag-php-5-3"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2535","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=2535"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2535\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/1262"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=2535"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=2535"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=2535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}