{"id":1073,"date":"2021-09-08T17:15:42","date_gmt":"2021-09-08T20:15:42","guid":{"rendered":"https:\/\/nextflow.com.br\/?p=1073"},"modified":"2024-03-10T15:47:55","modified_gmt":"2024-03-10T18:47:55","slug":"como-alterar-o-tamanho-dos-anexos-no-glpi","status":"publish","type":"post","link":"https:\/\/nextflow.com.br\/index.php\/2021\/09\/08\/como-alterar-o-tamanho-dos-anexos-no-glpi\/","title":{"rendered":"Como alterar o tamanho dos anexos no GLPI?"},"content":{"rendered":"\n<p>Fala pessoal, tudo bem?<\/p>\n\n\n\n<p class=\"has-vivid-cyan-blue-color has-text-color has-link-color has-medium-font-size wp-elements-5d0b38bacd3fa29054b5bfbf9a94708b\" style=\"text-decoration:underline\">Aplic\u00e1vel ao GLPI 9.X e vers\u00f5es anteriores<\/p>\n\n\n\n<p>\u00c9 muito comum nos grupos e f\u00f3runs as pessoas perguntarem como podemos fazer para alterar o tamanho padr\u00e3o dos anexos do GLPI. Quando efetuamos a instala\u00e7\u00e3o padr\u00e3o do GLPI, ele herda as configura\u00e7\u00f5es padr\u00f5es do PHP, que \u00e9 de 2MB<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"903\" height=\"435\" src=\"https:\/\/nextflow.com.br\/wp-content\/uploads\/2021\/09\/image.png\" alt=\"\" class=\"wp-image-1074\" srcset=\"https:\/\/nextflow.com.br\/wp-content\/uploads\/2021\/09\/image.png 903w, https:\/\/nextflow.com.br\/wp-content\/uploads\/2021\/09\/image-300x145.png 300w, https:\/\/nextflow.com.br\/wp-content\/uploads\/2021\/09\/image-768x370.png 768w\" sizes=\"(max-width: 903px) 100vw, 903px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Alterando o arquivo PHP.INI <\/h2>\n\n\n\n<p>Para aumentar o valor conforme necessidade, basta localizarmos o arquivo <strong>php.ini<\/strong> do seu servidor. Caso n\u00e3o saiba o local do arquivo, em ambientes Linux basta executar o comando abaixo:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>php -i | grep 'php.ini'<\/strong><\/code><\/pre>\n\n\n\n<p>Ele ir\u00e1 te mostrar aonde est\u00e1 o php.ini default do seu sistema (normalmente fica em \/etc\/php.ini)<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"345\" height=\"52\" src=\"https:\/\/nextflow.com.br\/wp-content\/uploads\/2021\/09\/image-1.png\" alt=\"\" class=\"wp-image-1075\" srcset=\"https:\/\/nextflow.com.br\/wp-content\/uploads\/2021\/09\/image-1.png 345w, https:\/\/nextflow.com.br\/wp-content\/uploads\/2021\/09\/image-1-300x45.png 300w\" sizes=\"(max-width: 345px) 100vw, 345px\" \/><\/figure>\n\n\n\n<p>Abra o arquivo com seu editor de texto preferido, e localize o argumento &#8220;<strong>post_max_size<\/strong>&#8221; e &#8220;<strong>upload_max_filesize<\/strong>&#8221; e altere o valor de &#8220;<strong>2M<\/strong>&#8221; para o valor desejado, que neste caso alteramos para &#8220;<strong>8M<\/strong>&#8221; (8 MB)<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"649\" height=\"95\" src=\"https:\/\/nextflow.com.br\/wp-content\/uploads\/2021\/09\/image-2.png\" alt=\"\" class=\"wp-image-1076\" srcset=\"https:\/\/nextflow.com.br\/wp-content\/uploads\/2021\/09\/image-2.png 649w, https:\/\/nextflow.com.br\/wp-content\/uploads\/2021\/09\/image-2-300x44.png 300w\" sizes=\"(max-width: 649px) 100vw, 649px\" \/><figcaption class=\"wp-element-caption\"><strong><em>post_max_size<\/em><\/strong><\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"373\" height=\"59\" src=\"https:\/\/nextflow.com.br\/wp-content\/uploads\/2021\/09\/image-3.png\" alt=\"\" class=\"wp-image-1077\" srcset=\"https:\/\/nextflow.com.br\/wp-content\/uploads\/2021\/09\/image-3.png 373w, https:\/\/nextflow.com.br\/wp-content\/uploads\/2021\/09\/image-3-300x47.png 300w\" sizes=\"(max-width: 373px) 100vw, 373px\" \/><figcaption class=\"wp-element-caption\"><strong><em>upload_max_filesize<\/em><\/strong><\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Verificando no GLPI<\/h2>\n\n\n\n<p>Pronto, ap\u00f3s alterar os valores no arquivo php.ini, basta reiniciar o servi\u00e7o do seu servidor web (apache ou nginx) e o GLPI j\u00e1 ir\u00e1 apresentar os valores conforme desejado.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Apache: <strong>systemctl restart httpd<\/strong><\/li>\n\n\n\n<li>Nginx: <strong>systemctl restart nginx<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"813\" height=\"426\" src=\"https:\/\/nextflow.com.br\/wp-content\/uploads\/2021\/09\/image-4.png\" alt=\"\" class=\"wp-image-1078\" srcset=\"https:\/\/nextflow.com.br\/wp-content\/uploads\/2021\/09\/image-4.png 813w, https:\/\/nextflow.com.br\/wp-content\/uploads\/2021\/09\/image-4-300x157.png 300w, https:\/\/nextflow.com.br\/wp-content\/uploads\/2021\/09\/image-4-768x402.png 768w\" sizes=\"(max-width: 813px) 100vw, 813px\" \/><\/figure>\n\n\n\n<p>Bom, espero que tenham gostado&#8230; e at\u00e9 a pr\u00f3xima \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fala pessoal, tudo bem? Aplic\u00e1vel ao GLPI 9.X e vers\u00f5es anteriores \u00c9 muito comum nos grupos e f\u00f3runs as pessoas perguntarem como podemos fazer para alterar o tamanho padr\u00e3o dos anexos do GLPI. Quando efetuamos a instala\u00e7\u00e3o padr\u00e3o do GLPI, ele herda as configura\u00e7\u00f5es padr\u00f5es do PHP, que \u00e9 de 2MB Alterando o arquivo PHP.INI [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[1],"tags":[10,11,5,4],"class_list":["post-1073","post","type-post","status-publish","format-standard","hentry","category-glpi","tag-anexos-glpi","tag-arquivos-glpi","tag-glpi","tag-itsm"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/nextflow.com.br\/index.php\/wp-json\/wp\/v2\/posts\/1073","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nextflow.com.br\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nextflow.com.br\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nextflow.com.br\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nextflow.com.br\/index.php\/wp-json\/wp\/v2\/comments?post=1073"}],"version-history":[{"count":2,"href":"https:\/\/nextflow.com.br\/index.php\/wp-json\/wp\/v2\/posts\/1073\/revisions"}],"predecessor-version":[{"id":1230,"href":"https:\/\/nextflow.com.br\/index.php\/wp-json\/wp\/v2\/posts\/1073\/revisions\/1230"}],"wp:attachment":[{"href":"https:\/\/nextflow.com.br\/index.php\/wp-json\/wp\/v2\/media?parent=1073"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nextflow.com.br\/index.php\/wp-json\/wp\/v2\/categories?post=1073"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nextflow.com.br\/index.php\/wp-json\/wp\/v2\/tags?post=1073"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}