{"id":903,"date":"2022-09-09T16:26:19","date_gmt":"2022-09-09T16:26:19","guid":{"rendered":"https:\/\/sunucucozumleri.com\/?p=903"},"modified":"2022-10-09T19:35:52","modified_gmt":"2022-10-09T19:35:52","slug":"whm-cpanel-sunucularda-hosting-hesabina-ozel-php-konfigurasyonu-tanimlama","status":"publish","type":"post","link":"https:\/\/sunucucozumleri.com\/blog\/whm-cpanel-sunucularda-hosting-hesabina-ozel-php-konfigurasyonu-tanimlama\/","title":{"rendered":"WHM \/ cPanel Sunucularda Hosting Hesab\u0131na \u00d6zel PHP Konfig\u00fcrasyonu Tan\u0131mlama"},"content":{"rendered":"<p>Merhabalar,<br \/>\nE\u011fer\u00a0<strong>Select PHP<\/strong>\u00a0gibi bir eklenti kullanm\u0131yorsan\u0131z a\u015fa\u011f\u0131daki y\u00f6nergeleri uygulayarak her <a href=\"https:\/\/sunucucozumleri.com\/blog\/hosting\/fast-web-hosting\/\">hosting<\/a> hesab\u0131na \u00f6zel bir \u015fekilde php.ini konfig\u00fcrasyonu tan\u0131mlayabilirsiniz.<\/p>\n<p>\u00d6ncelikle orjinal php.ini dosyam\u0131z\u0131<br \/>\ncp\u00a0\/usr\/local\/lib\/php.ini cp\u00a0\/usr\/local\/lib\/php.ini__orjinal<br \/>\nkopyalayal\u0131m.<\/p>\n<p><strong>SuPHP kullananlar i\u00e7in,<\/strong><\/p>\n<p>php.ini dosyam\u0131z\u0131\u00a0\/home\/<strong>cpanlkullaniciadi<\/strong>\/public_html\/ izin vermek istedi\u011fimiz kullan\u0131c\u0131n\u0131n ana dizinine kopyal\u0131yoruz.<\/p>\n<p>cp\u00a0\/usr\/local\/lib\/php.ini \u00a0\/home\/<strong>cpanlkullaniciadi<\/strong>\/public_html\/php.ini<\/p>\n<div>Daha sonra kullan\u0131c\u0131n\u0131n kullanm\u0131\u015f oldu\u011fu .htaccess dosyas\u0131nda a\u015fa\u011f\u0131daki gibi de\u011fi\u015fikli\u011fi ger\u00e7ekle\u015ftirelim.<\/p>\n<pre>&lt;IfModule mod_suphp.c&gt;\r\n\tsuPHP_ConfigPath \/home\/<strong>cpanlkullaniciadi<\/strong>\/public_html\/php.ini\r\n&lt;\/IfModule&gt;\r\n&lt;Files php.ini&gt;\r\n\torder allow,deny\r\n\tdeny from all\r\n&lt;\/Files&gt;\r\n<\/pre>\n<p><strong>FCGI\/CGI Kullananlar i\u00e7in,<\/strong><\/p>\n<p>Orjinal php.ini dosyas\u0131n\u0131\u00a0cp \/usr\/local\/lib\/php.ini \/home\/<strong>cpanlkullaniciadi<\/strong>\/public_html\/cgi-bin\/ dizinine kopyalayal\u0131m<br \/>\ncp -frp \/usr\/local\/cpanel\/cgi-sys\/php5 \/usr\/local\/cpanel\/cgi-sys\/php5.bk dosyam\u0131z\u0131n yede\u011fini alal\u0131m.<br \/>\nnano \/usr\/local\/cpanel\/cgi-sys\/php5 komutuyla ilgili dosyam\u0131z\u0131 a\u015fa\u011f\u0131daki gibi d\u00fczenlememiz gerekmektedir.<\/p>\n<p>Orjinal dosya a\u015fa\u011f\u0131daki gibidir.<\/p>\n<pre>#!\/bin\/sh\r\n\r\n# If you customize the contents of this wrapper script, place\r\n# a copy at \/var\/cpanel\/conf\/apache\/wrappers\/php5\r\n# so that it will be reinstalled when Apache is updated or the\r\n# PHP handler configuration is changed\r\n\r\nexec \/usr\/bin\/php\r\n\r\n\r\n[[ -f ~\/public_html\/php.ini ]] &amp;&amp; exec \/usr\/bin\/php -c ~\/public_html\/php.ini komutunu eklememiz gerekmektedir.\r\n\r\nDosyam\u0131z\u0131n son hali a\u015fa\u011f\u0131daki gibi olacakt\u0131r.\r\n\r\n<\/pre>\n<pre>#!\/bin\/sh\r\n\r\n# If you customize the contents of this wrapper script, place\r\n# a copy at \/var\/cpanel\/conf\/apache\/wrappers\/php5\r\n# so that it will be reinstalled when Apache is updated or the\r\n# PHP handler configuration is changed\r\n\r\n[[ -f ~\/public_html\/php.ini ]] &amp;&amp; exec \/usr\/bin\/php -c ~\/public_html\/php.ini\r\nexec \/usr\/bin\/php\r\n \r\n<\/pre>\n<p>kaydedip \u00e7\u0131kal\u0131m.<\/p>\n<pre>mkdir -p \/var\/cpanel\/conf\/apache\/wrappers\r\n\r\ncp -frp \/usr\/local\/cpanel\/cgi-sys\/php5 \/var\/cpanel\/conf\/apache\/wrappers\/php5\r\n<\/pre>\n<p>komutlar\u0131n\u0131 \u00e7al\u0131\u015ft\u0131ral\u0131m.<\/p>\n<pre><strong>service httpd <a href=\"https:\/\/sunucucozumleri.com\/blog\/reboot-ve-restart-arasindaki-farklar-nedir\/\">restart<\/a><\/strong><\/pre>\n<p>komutu ile apache web server&#8217;i yeniden ba\u015flatal\u0131m.<\/p>\n<p>\u0130yi \u00e7al\u0131\u015fmalar dileriz.<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Merhabalar, E\u011fer\u00a0Select PHP\u00a0gibi bir eklenti kullanm\u0131yorsan\u0131z a\u015fa\u011f\u0131daki y\u00f6nergeleri uygulayarak her hosting hesab\u0131na \u00f6zel bir \u015fekilde php.ini konfig\u00fcrasyonu tan\u0131mlayabilirsiniz. \u00d6ncelikle orjinal php.ini dosyam\u0131z\u0131 cp\u00a0\/usr\/local\/lib\/php.ini cp\u00a0\/usr\/local\/lib\/php.ini__orjinal kopyalayal\u0131m. SuPHP kullananlar i\u00e7in, php.ini dosyam\u0131z\u0131\u00a0\/home\/cpanlkullaniciadi\/public_html\/ izin vermek istedi\u011fimiz kullan\u0131c\u0131n\u0131n ana dizinine kopyal\u0131yoruz. cp\u00a0\/usr\/local\/lib\/php.ini \u00a0\/home\/cpanlkullaniciadi\/public_html\/php.ini Daha sonra kullan\u0131c\u0131n\u0131n kullanm\u0131\u015f oldu\u011fu .htaccess dosyas\u0131nda a\u015fa\u011f\u0131daki gibi de\u011fi\u015fikli\u011fi ger\u00e7ekle\u015ftirelim. &lt;IfModule mod_suphp.c&gt; suPHP_ConfigPath \/home\/cpanlkullaniciadi\/public_html\/php.ini &lt;\/IfModule&gt; &hellip;<\/p>\n","protected":false},"author":1,"featured_media":1444,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[5,7],"tags":[],"class_list":["post-903","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-cpanel"],"acf":[],"_links":{"self":[{"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/posts\/903","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/comments?post=903"}],"version-history":[{"count":0,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/posts\/903\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/media\/1444"}],"wp:attachment":[{"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/media?parent=903"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/categories?post=903"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/tags?post=903"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}