{"id":4954,"date":"2019-05-09T22:05:52","date_gmt":"2019-05-09T22:05:52","guid":{"rendered":"https:\/\/www.geekdecoder.com\/?p=4954"},"modified":"2019-05-09T22:05:52","modified_gmt":"2019-05-09T22:05:52","slug":"4954-2","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2019\/05\/09\/4954-2\/","title":{"rendered":"Using the MutiPHP Editor changes are overwritten for fopen and exec"},"content":{"rendered":"<p>Recently there was an issue where the fopen and curl function and shell_exec functions were reverting back to original values. Using the MutiPHP Editor was not working.<\/p>\n<p>the resolution was that the php-fmp handler was being used on a cpanel server. So the php-fpm config file needed to be changed.<\/p>\n<p>The line that needs to be edited is:in \/opt\/cpanel\/ea-php56\/root\/etc\/php-fpm.d\/$DOMAIN<\/p>\n<p>Remove the disable_functions which includes shell_exec<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">php_admin_value&#x5B;disable_functions] =\n\n<\/pre>\n<p>Then restart the following services.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">systemctl restart httpd.service\n\/scripts\/restartsrv_apache_php_fpm\n\/scripts\/restartsrv_cpanel_php_fpm\n\n<\/pre>\n<p>UPDATE; Seems the yaml files need to be updated:<br \/>\nhttps:\/\/forums.cpanel.net\/threads\/stop-cpanel-from-overwriting-php-fpm-settings-file.596527\/<\/p>\n<p>This information is for editing the yaml file which should result in permanent changes.<\/p>\n<p>More information here on php-fpm configurations:<br \/>\nhttps:\/\/documentation.cpanel.net\/display\/64Docs\/Configurations+Values+of+PHP-FPM#ConfigurationsValuesofPHP-FPM-Howtoremovedefaultvaluesfromaconfiguration<\/p>\n<p>UPDATE 2:<\/p>\n<p>Also, there was an issue with fopen where the changes in the MultiPHP Editor were being overwritten.<\/p>\n<p>If\u00a0 PHP handler is LSAPI, you can adjustment to your Apache configuration. Please ensure the setting is enabled for the site(s) in question under MultiPHP Ini Editor. If this still does not work, <span class=\"uiOutputText\" dir=\"ltr\">in whm from \u00a0\u00a0Home \u00bbSoftware \u00bbMultiPHP Manager there is a System PHP-FPM Configuration tab and from it you can change the user override ability for allow_url_fopen and other options.<\/span><\/p>\n<p><a href=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2019\/05\/renditionDownload.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4972\" src=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2019\/05\/renditionDownload.jpg\" alt=\"\" width=\"307\" height=\"480\" srcset=\"https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2019\/05\/renditionDownload.jpg 307w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2019\/05\/renditionDownload-192x300.jpg 192w\" sizes=\"auto, (max-width: 307px) 100vw, 307px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently there was an issue where the fopen and curl function and shell_exec functions were reverting back to original values. Using the MutiPHP Editor was not working. the resolution was that the php-fmp handler was being used on a cpanel server. So the php-fpm config file needed to be changed. The line that needs to &#8230; <a title=\"Using the MutiPHP Editor changes are overwritten for fopen and exec\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2019\/05\/09\/4954-2\/\" aria-label=\"Read more about Using the MutiPHP Editor changes are overwritten for fopen and exec\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,84],"tags":[],"class_list":["post-4954","post","type-post","status-publish","format-standard","hentry","category-cpanel","category-php"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/4954","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=4954"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/4954\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=4954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=4954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=4954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}