{"id":3055,"date":"2021-05-31T19:09:45","date_gmt":"2021-05-31T17:09:45","guid":{"rendered":"https:\/\/www.webhostingsrbija.rs\/?p=3055"},"modified":"2021-05-31T19:09:45","modified_gmt":"2021-05-31T17:09:45","slug":"promena-memory_limit-opcije-i-upload_max_filesize","status":"publish","type":"post","link":"https:\/\/www.webhostingsrbija.rs\/en\/promena-memory_limit-opcije-i-upload_max_filesize\/","title":{"rendered":"Changing memory_limit option and upload_max_filesize"},"content":{"rendered":"<p class=\"wp-block-paragraph\">If you have an error during the operation of the site, yes <em>critical error<\/em> or <em>Allowed memory size of<\/em>\u2026 that means you need to change the appropriate parameters in PHP.INI. To get there you need to log into cPanel.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>We find the MultiPHP INI Editor option, we simply start typing in the upper corner of Multi and the options will appear as in the picture below.<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"570\" height=\"227\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2021\/05\/multiphpinieditor.png\" alt=\"\" class=\"wp-image-3056\" title=\"\" srcset=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2021\/05\/multiphpinieditor.png 570w, https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2021\/05\/multiphpinieditor-300x119.png 300w\" sizes=\"(max-width: 570px) 100vw, 570px\" \/><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>Now that we have opened we need to choose <em>Domain<\/em> on which we are working.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"619\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2021\/05\/multiphpinieditor2-1024x619.png\" alt=\"\" class=\"wp-image-3057\" title=\"\" srcset=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2021\/05\/multiphpinieditor2-1024x619.png 1024w, https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2021\/05\/multiphpinieditor2-300x181.png 300w, https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2021\/05\/multiphpinieditor2-768x464.png 768w, https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2021\/05\/multiphpinieditor2.png 1475w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">When we choose we will get options as in the picture above. Among them is everything we need.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>If you received an error when uploading a theme or plugin<\/strong> you need to modify two fields <em>upload_max_filesize<\/em> and <em>post_max_size<\/em>. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the theme is 30mb in size that we want to seed and post then we need to post more than that, post say 50mb in both places and save<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>If you received the error Allowed memory size of<\/strong>\u2026 you need to edit the field <em>memory_limit<\/em>. Be careful here, it is not good to set a larger value than necessary, because your php processes and application use that value, so when you set a large value, other resources may be exceeded, which will again cause the site to be unavailable. <strong><em>Therefore, set the value as small as possible and the site will work. <\/em><\/strong>If 128M is not enough, put 256M, if that&#039;s not enough, try 382M, if that doesn&#039;t work, put 512M. Usually each theme will work with 256M. <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>When you&#039;re done save and that&#039;s it. Refresh your php page (the page you are working on) and try uploading or continuing work again.<\/li><\/ul>","protected":false},"excerpt":{"rendered":"<p>Ukoliko imate gre\u0161ku prilikom rada sajta da je kriti\u010dna gre\u0161ka ili Allowed memory size of&#8230; to zna\u010di da je potrebno da promenite odgovaraju\u0107e parametre u PHP.INI. Kako bi ste do\u0161li do toga potrebno je da u\u0111ete u cPanel. Na\u0111emo opciju MultiPHP INI Editor, jednostavno po\u010dnemo da kucamo u gornjem uglu Multi i iza\u0107i \u0107e nam [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3058,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[20],"tags":[],"class_list":["post-3055","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel"],"_links":{"self":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts\/3055","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/comments?post=3055"}],"version-history":[{"count":0,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts\/3055\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/media\/3058"}],"wp:attachment":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/media?parent=3055"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/categories?post=3055"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/tags?post=3055"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}