{"id":2570,"date":"2021-03-11T09:14:05","date_gmt":"2021-03-11T09:14:05","guid":{"rendered":"https:\/\/www.arzhost.com\/?p=1775"},"modified":"2025-09-04T11:08:10","modified_gmt":"2025-09-04T06:08:10","slug":"php-max-execution-time","status":"publish","type":"post","link":"https:\/\/arzhost.com\/blogs\/php-max-execution-time\/","title":{"rendered":"A Step-by-Step Guide to Changing PHP max_execution_time"},"content":{"rendered":"<p>When you install PHP it executes in the default setting. Sometimes it is good for many websites. Sometimes your website needs different settings then you can change PHP settings. E.g. your website required heavy files to upload. But the default setting allows you to limit the upload files. For changing the settings you will create a \u2018phprc\u2019 file and change values.<span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/arzhost.com\/blogs\/php-max-execution-time\/\"><strong> php Max_execution_time<\/strong><\/a><\/span> is the largest time in which a script is allowed to run before end. Default time is 30 seconds.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_74 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/arzhost.com\/blogs\/php-max-execution-time\/#php_max_execution_time\" >php max_execution_time:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/arzhost.com\/blogs\/php-max-execution-time\/#Creating_phprc_file_via_FTP\" >Creating phprc file via FTP:<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/arzhost.com\/blogs\/php-max-execution-time\/#If_you_have_already_phprc_file_then_follow_these_steps\" >If you have already phprc file then follow these steps:<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"php_max_execution_time\"><\/span><strong>php max_execution_time:<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Default time of execution is 30 seconds it will be too short for you. you can change this value by creating a phprc file. you can create a phprc file via FTP and SSH.<\/p>\n<p><iframe title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/VAS8jtcvcwA\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Creating_phprc_file_via_FTP\"><\/span><strong>Creating phprc file via FTP:<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ol>\n<li>you login to your web server via FTP client. you are using file zilla for this process.<\/li>\n<\/ol>\n<p><strong> <img decoding=\"async\" title=\"step 1 open file\" class=\"aligncenter wp-image-1776 size-full\" src=\"https:\/\/arzhost.com\/inc\/uploads\/2020\/11\/step-1-open-file.png\" alt=\"step 1 open file\" width=\"290\" height=\"121\" \/><\/strong><\/p>\n<ol start=\"2\">\n<li>Ensure that you are in our correct directory. Otherwise your small problem going to be big problem.<\/li>\n<li>Click on .PHP file which you see that already exit.<\/li>\n<\/ol>\n<p><img decoding=\"async\" title=\"Make Sure the File is in a NTFS Volume\" class=\"aligncenter wp-image-1777 size-full\" src=\"https:\/\/arzhost.com\/inc\/uploads\/2020\/11\/step-2-php-file.png\" alt=\"step 2 php file\" width=\"377\" height=\"119\" \/><\/p>\n<ol start=\"4\">\n<li>In .PHP folder you can see that there are several other folders. Which are representing the version of PHP. For choosing the version from this folder. you should ensure that which version your site is using. For example your site using 7.4 and you should click on 7.4.<\/li>\n<\/ol>\n<p><img fetchpriority=\"high\" decoding=\"async\" title=\"Make Sure the File is in a NTFS Volume\" class=\"aligncenter wp-image-1778 size-full\" src=\"https:\/\/arzhost.com\/inc\/uploads\/2020\/11\/step-4-php-versions.png\" alt=\"step 4 php versions\" width=\"429\" height=\"267\" \/><\/p>\n<ol start=\"5\">\n<li>In this directory you will see a phprc file. Right click on phprc file and choose <strong>view or edit.<\/strong><\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Step-by-Step Guide on How to Enable PHP Zip Archive in cPanel\" class=\"aligncenter wp-image-1779 size-full\" src=\"https:\/\/arzhost.com\/inc\/uploads\/2020\/11\/step-5-edit-phprc-file.png\" alt=\"step 5 edit phprc file\" width=\"386\" height=\"403\" \/><\/p>\n<ol start=\"6\">\n<li>After clicking on this file you can see the following lines of code which are open in your default editor. using this code you can change your <strong>php max_execution_time<\/strong>.<\/li>\n<li><a href=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/how-to-enable-pp-zip-archieve-in-cpanel.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-12673\" title=\"how to enable pp zip archieve in cpanel\" src=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/how-to-enable-pp-zip-archieve-in-cpanel-300x157.jpg\" alt=\"how to enable pp zip archieve in cpanel\" width=\"730\" height=\"382\" srcset=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/how-to-enable-pp-zip-archieve-in-cpanel-300x157.jpg 300w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/how-to-enable-pp-zip-archieve-in-cpanel-1024x536.jpg 1024w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/how-to-enable-pp-zip-archieve-in-cpanel-768x402.jpg 768w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/how-to-enable-pp-zip-archieve-in-cpanel.jpg 1200w\" sizes=\"(max-width: 730px) 100vw, 730px\" \/><\/a><\/li>\n<\/ol>\n<ol start=\"7\">\n<li>When you complete your task then you want to save your file then you see a pop up message. Which show that file is change and check box \u2018finish edit and delete local files\u2019. Now click on <strong>yes button<\/strong>.<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"cpanal\" class=\"aligncenter wp-image-1781 \" src=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2021\/12\/cpanal.jpg\" alt=\"step 7 save file\" width=\"791\" height=\"441\" srcset=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2021\/12\/cpanal.jpg 1102w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2021\/12\/cpanal-300x167.jpg 300w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2021\/12\/cpanal-1024x571.jpg 1024w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2021\/12\/cpanal-768x428.jpg 768w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2021\/12\/cpanal-848x472.jpg 848w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2021\/12\/cpanal-640x357.jpg 640w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2021\/12\/cpanal-400x223.jpg 400w\" sizes=\"(max-width: 791px) 100vw, 791px\" \/><\/p>\n<ol start=\"8\">\n<li>When you complete these steps then check that any PHP process is in running form or not. If process is running then kill off all these process. Which are running in PHP.<\/li>\n<li>When you have to complete all steps and kill the PHP process. Now confirm that your files update or not. you can check by using phpinfo.php file.<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"If_you_have_already_phprc_file_then_follow_these_steps\"><\/span>If you have already phprc file then follow these steps:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>10. Login to your server. Ensure that you are in correct directory to create file. Click right on file you see an option view and edit click on it.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"How to Enable PHP Zip Archive in cPanel?\" class=\"aligncenter wp-image-1782 size-full\" src=\"https:\/\/arzhost.com\/inc\/uploads\/2020\/11\/step-10-edit-file.png\" alt=\"step 10 edit file\" width=\"386\" height=\"403\" \/><\/p>\n<p>11. After click on edit next prompt open asking him to choose the editor. you choose our default window editor notepad.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"How to Enable PHP Zip Archive in cPanel?\" class=\"size-full wp-image-1783 aligncenter\" src=\"https:\/\/arzhost.com\/inc\/uploads\/2020\/11\/step-11-choose-editor.png\" alt=\"step 11 choose editor\" width=\"636\" height=\"389\" \/><\/p>\n<p>12. After choose the editor notepad open. you can write here code.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"DISM Source Files Could Not Be Downloaded: How to Fix\" class=\"size-full wp-image-1784 aligncenter\" src=\"https:\/\/arzhost.com\/inc\/uploads\/2020\/11\/step-12-write-code.png\" alt=\"step 12 write code\" width=\"653\" height=\"360\" \/><\/p>\n<p>13. When you write your code then click on file and save this file.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"DISM Error 0x800f0906\" class=\"size-full wp-image-1785 aligncenter\" src=\"https:\/\/arzhost.com\/inc\/uploads\/2020\/11\/step-13-save-edit-file.png\" alt=\"step 13 save edit file\" width=\"656\" height=\"366\" \/><\/p>\n<p>14. When you save your file within few seconds a new prompt open. you check the box and click on yes button.<\/p>\n<p><strong>Delete file:<\/strong><\/p>\n<p>15. Login to server via FTP.<\/p>\n<p>16. Very important thing is that ensure that you are in correct directory or not.<\/p>\n<p>17. Write click on file and click on delete.<\/p>\n<p>18. When you complete your task he asking him to confirm the file delete or not click on yes button.<\/p>\n<p><a href=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/dism-the-source-files-could-not-be-downloaded.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-12674\" title=\"dism the source files could not be downloaded\" src=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/dism-the-source-files-could-not-be-downloaded-300x157.jpg\" alt=\"dism the source files could not be downloaded\" width=\"730\" height=\"382\" srcset=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/dism-the-source-files-could-not-be-downloaded-300x157.jpg 300w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/dism-the-source-files-could-not-be-downloaded-1024x536.jpg 1024w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/dism-the-source-files-could-not-be-downloaded-768x402.jpg 768w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/dism-the-source-files-could-not-be-downloaded.jpg 1200w\" sizes=\"(max-width: 730px) 100vw, 730px\" \/><\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"DISM the Source Files Could Not Be Downloaded\" class=\"size-full wp-image-1787 aligncenter\" src=\"https:\/\/arzhost.com\/inc\/uploads\/2020\/11\/step-18-confirm-delete.png\" alt=\"step 18 confirm delete\" width=\"487\" height=\"153\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you install PHP it executes in the default setting. Sometimes it is good for many websites. Sometimes your website needs different settings then you can change PHP settings. E.g. your website required heavy files to upload. But the default setting allows you to limit the upload files. For changing the settings you will create [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":7748,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32,21,28,20,30,16,15],"tags":[],"table_tags":[],"class_list":["post-2570","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","category-buisness","category-cpanel","category-e-mail","category-mysql","category-tutorial","category-wordpress"],"_links":{"self":[{"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/posts\/2570","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/comments?post=2570"}],"version-history":[{"count":6,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/posts\/2570\/revisions"}],"predecessor-version":[{"id":12675,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/posts\/2570\/revisions\/12675"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/media\/7748"}],"wp:attachment":[{"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/media?parent=2570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/categories?post=2570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/tags?post=2570"},{"taxonomy":"table_tags","embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/table_tags?post=2570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}