{"id":3684,"date":"2021-12-13T12:35:55","date_gmt":"2021-12-13T12:35:55","guid":{"rendered":"https:\/\/ownwebservers.com\/kb\/?p=3684"},"modified":"2021-12-13T12:35:55","modified_gmt":"2021-12-13T12:35:55","slug":"error-500-htaccess-php_value-not-allowed-here","status":"publish","type":"post","link":"https:\/\/ownwebservers.com\/kb\/error-500-htaccess-php_value-not-allowed-here\/","title":{"rendered":"Error 500 .htaccess: php_value not allowed here"},"content":{"rendered":"<p>Q: To the side from Java application I use php and after my php application get install, I get these error in log and my website shows error 500:<br \/>\n.htaccess: php_value not allowed here<br \/>\n.htaccess: php_flag not allowed here<\/p>\n<p>A: By default php &#8211; as installed by cPanel &#8211; is set to suPHP so php_value and php_flag commands are not allowed in .htaccess and will result in the above error messages in webserver log.<\/p>\n<div class=\"tab-content support-tab tab-auto no-p\">\n<div id=\"tab1\" class=\"tab-pane active\">\n<div class=\"support-container knowledgebase\">\n<div class=\"padding\">\n<p>In case of suPHP you need to:<\/p>\n<p>1. remove all remove php_value and php_flag from your .htaccess files (also rom subdirectories of public_html)<br \/>\n2. in public_html\/.htaccess add the following (replace USERNAME with your user name):<\/p>\n<pre>suPHP_ConfigPath \/home\/USERNAME\/public_html\r\n&lt;Files php.ini&gt;\r\norder allow,deny\r\ndeny from all\r\n&lt;\/Files&gt;<\/pre>\n<p>3. copy system-wide php.ini to your public_html:<\/p>\n<pre>cp \/usr\/local\/lib\/php.ini ~\/public_html<\/pre>\n<p>4. add your custom php settings to your public_html\/php.ini for example:<\/p>\n<pre>register_globals = Off\r\npost_max_size = 10M\r\nupload_max_filesize = 10M<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Q: To the side from Java application I use php and after my php application get install, I get these error in log and my website shows error 500: .htaccess: php_value not allowed here .htaccess: php_flag not allowed here A: By default php &#8211; as installed by cPanel &#8211; is set to suPHP so php_value [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[],"class_list":["post-3684","post","type-post","status-publish","format-standard","hentry","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v15.2.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Error 500 .htaccess: php_value not allowed here - OWS KB<\/title>\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\/error-500-htaccess-php_value-not-allowed-here\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Error 500 .htaccess: php_value not allowed here - OWS KB\" \/>\n<meta property=\"og:description\" content=\"Q: To the side from Java application I use php and after my php application get install, I get these error in log and my website shows error 500: .htaccess: php_value not allowed here .htaccess: php_flag not allowed here A: By default php &#8211; as installed by cPanel &#8211; is set to suPHP so php_value [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ownwebservers.com\/kb\/error-500-htaccess-php_value-not-allowed-here\/\" \/>\n<meta property=\"og:site_name\" content=\"OWS KB\" \/>\n<meta property=\"article:published_time\" content=\"2021-12-13T12:35:55+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\/error-500-htaccess-php_value-not-allowed-here\/#webpage\",\"url\":\"https:\/\/ownwebservers.com\/kb\/error-500-htaccess-php_value-not-allowed-here\/\",\"name\":\"Error 500 .htaccess: php_value not allowed here - OWS KB\",\"isPartOf\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\"},\"datePublished\":\"2021-12-13T12:35:55+00:00\",\"dateModified\":\"2021-12-13T12:35:55+00:00\",\"author\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\"},\"breadcrumb\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/error-500-htaccess-php_value-not-allowed-here\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ownwebservers.com\/kb\/error-500-htaccess-php_value-not-allowed-here\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/error-500-htaccess-php_value-not-allowed-here\/#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\/error-500-htaccess-php_value-not-allowed-here\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/error-500-htaccess-php_value-not-allowed-here\/\",\"name\":\"Error 500 .htaccess: php_value not allowed here\"}}]},{\"@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\/3684","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=3684"}],"version-history":[{"count":1,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/3684\/revisions"}],"predecessor-version":[{"id":3685,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/3684\/revisions\/3685"}],"wp:attachment":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/media?parent=3684"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/categories?post=3684"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/tags?post=3684"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}