{"id":1299,"date":"2021-08-13T07:37:17","date_gmt":"2021-08-13T07:37:17","guid":{"rendered":"https:\/\/ownwebservers.com\/kb\/?p=1299"},"modified":"2024-02-01T17:06:52","modified_gmt":"2024-02-01T17:06:52","slug":"install-suhosin-php-protection-security-patc-on-linux","status":"publish","type":"post","link":"https:\/\/ownwebservers.com\/kb\/install-suhosin-php-protection-security-patc-on-linux\/","title":{"rendered":"Install Suhosin PHP Protection Security Patc on Linux"},"content":{"rendered":"<p>A number of open source application are most popular wide across the web, therefore its security becomes an important concern to the developers, providers and additional significantly the users. To protect the applications developed in PHP, Suhosin is strongly recommended. The Suhosin patch offers great facilitate with protecting the PHP primarily based application from being completely exploited. The patch is taken into account to supply a advanced protection system for PHP installations. the main idea behind designing Suhosin was, to offer protection for servers against numerous attacks and different best-known problems in PHP.<\/p>\n<h2>How do I install Suhosin under different Linux Distributions ? (RHEL \/ CentOS \/ Fedora)<\/h2>\n<p><strong>Step 1 :<\/strong>\u00a0Download latest version of Suhosin, enter the following command for that purpose<\/p>\n<blockquote><p><strong># cd \/opt<br \/>\n# wget http:\/\/download.suhosin.org\/suhosin-0.9.32.1.tgz<br \/>\n<\/strong><\/p><\/blockquote>\n<p><strong>NOTE :<\/strong>\u00a0You must ensure that php-devel is installed:<\/p>\n<blockquote><p><strong># yum install php-devel<\/strong><\/p><\/blockquote>\n<p><strong>Step 2 :<\/strong>\u00a0Then Compile Suhosin under PHP and RHEL \/ CentOS Linux using the below commands<\/p>\n<blockquote><p><strong># cd suhosin-0.9.32.1<br \/>\n# phpize<br \/>\n#.\/configure<br \/>\n# make<br \/>\n# make install<\/strong><\/p><\/blockquote>\n<p><strong>Step 3 :<\/strong>\u00a0The Configure Suhosin onto the server, using the below command a configuration file of Suhosin would be created<\/p>\n<blockquote><p><strong># echo \u2018extension=suhosin.so\u2019 &gt; \/etc\/php.d\/suhosin.ini<\/strong><\/p><\/blockquote>\n<p><strong>Step\u00a0 4 :<\/strong>\u00a0Using the below command you must not restart the server<\/p>\n<blockquote><p><strong># service httpd restart<\/strong><\/p><\/blockquote>\n<p><strong>NOTE :<\/strong>\u00a0Incase you have lighttpd activated on the server, you must use the below command to restart it<\/p>\n<blockquote><p><strong># service lighttpd restart<\/strong><\/p><\/blockquote>\n<p><strong>Step 5 :<\/strong>\u00a0Now you must recheck whether Suhosin has been installed on the server. Using the below command you may do so<\/p>\n<blockquote><p><strong>$ php -v<\/strong><\/p><\/blockquote>\n<p><strong>NOTE :<\/strong>\u00a0You may run the following command to check for more details<\/p>\n<blockquote><p><strong>&lt;?php<br \/>\nphpinfo();<br \/>\n?&gt;<\/strong><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>A number of open source application are most popular wide across the web, therefore its security becomes an important concern to the developers, providers and additional significantly the users. To protect the applications developed in PHP, Suhosin is strongly recommended. The Suhosin patch offers great facilitate with protecting the PHP primarily based application from being [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,23,24],"tags":[],"class_list":["post-1299","post","type-post","status-publish","format-standard","hentry","category-dedicated-hosting","category-tutorials","category-web-hosting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v15.2.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Install Suhosin PHP Protection Security Patc on Linux<\/title>\n<meta name=\"description\" content=\"In this kb we we learn here Install Suhosin PHP Protection Security Patc on Linux\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ownwebservers.com\/kb\/install-suhosin-php-protection-security-patc-on-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Install Suhosin PHP Protection Security Patc on Linux\" \/>\n<meta property=\"og:description\" content=\"In this kb we we learn here Install Suhosin PHP Protection Security Patc on Linux\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ownwebservers.com\/kb\/install-suhosin-php-protection-security-patc-on-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"OWS KB\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-13T07:37:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-01T17:06:52+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\">\n\t<meta name=\"twitter:data1\" content=\"admin\">\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data2\" content=\"1 minute\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\",\"url\":\"https:\/\/ownwebservers.com\/kb\/\",\"name\":\"OWS KB\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/ownwebservers.com\/kb\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/install-suhosin-php-protection-security-patc-on-linux\/#webpage\",\"url\":\"https:\/\/ownwebservers.com\/kb\/install-suhosin-php-protection-security-patc-on-linux\/\",\"name\":\"Install Suhosin PHP Protection Security Patc on Linux\",\"isPartOf\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\"},\"datePublished\":\"2021-08-13T07:37:17+00:00\",\"dateModified\":\"2024-02-01T17:06:52+00:00\",\"author\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\"},\"description\":\"In this kb we we learn here Install Suhosin PHP Protection Security Patc on Linux\",\"breadcrumb\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/install-suhosin-php-protection-security-patc-on-linux\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ownwebservers.com\/kb\/install-suhosin-php-protection-security-patc-on-linux\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/install-suhosin-php-protection-security-patc-on-linux\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/install-suhosin-php-protection-security-patc-on-linux\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/install-suhosin-php-protection-security-patc-on-linux\/\",\"name\":\"Install Suhosin PHP Protection Security Patc on Linux\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ba5db5841d48bd7517bb2583e13983e6d2fa56a4099a0b3c61ad2daefc321303?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/ownwebservers.com\/kb\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","_links":{"self":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/1299","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/comments?post=1299"}],"version-history":[{"count":4,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/1299\/revisions"}],"predecessor-version":[{"id":4201,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/1299\/revisions\/4201"}],"wp:attachment":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/media?parent=1299"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/categories?post=1299"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/tags?post=1299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}