{"id":268,"date":"2019-05-16T20:43:43","date_gmt":"2019-05-16T23:43:43","guid":{"rendered":"http:\/\/hackerzone.com.br\/blog\/?p=268"},"modified":"2019-05-16T21:05:36","modified_gmt":"2019-05-17T00:05:36","slug":"instalando-o-lampp-no-linux-fedora-29-xampp","status":"publish","type":"post","link":"http:\/\/hackerzone.com.br\/blog\/instalando-o-lampp-no-linux-fedora-29-xampp\/","title":{"rendered":"Instalando o Lampp no Linux Fedora 29 (Xampp)"},"content":{"rendered":"<p>Tive alguns problemas para instalar o lampp no Linux Fedora 29, acredito que este artigo ir\u00e1 te ajudar.<\/p>\n<p>Primeiramente baixe o lampp e execute-o como root: <\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n[root@localhost opt]# .\/xampp-linux-x64-7.1.29-1-installer.run\r\n<\/pre>\n<p>Ap\u00f3s este comando ir\u00e1 abrir o instalador e basta ir dando next.<br \/>\nNo meu caso assim que terminou a instala\u00e7\u00e3o o apache foi o \u00fanico servi\u00e7o que n\u00e3o iniciou, n\u00e3o se desespere ainda, voc\u00ea deve ter se deparado com o seguinte erro:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\/usr\/bin\/sh: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory\r\n<\/pre>\n<p>Para resolver este problema voc\u00ea vai comentar o seguinte trecho do arquivo \/opt\/lampp\/lampp:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# do we have that new red hat linux 9 with posix native threads?\r\nif test $(osguess) = &quot;rh9&quot;\r\nthen\r\n        # for now disable PNTL. if PNTL gets more popular we will support it.$\r\n       export LD_ASSUME_KERNEL=2.2.5\r\n#       #echo &quot;XAMPP: DISABLE PNTL...&quot;\r\nfi\r\n<\/pre>\n<p>Pode comentar tudo, vai ficar assim:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# do we have that new red hat linux 9 with posix native threads?\r\n#if test $(osguess) = &quot;rh9&quot;\r\n#then\r\n        # for now disable PNTL. if PNTL gets more popular we will support it.$\r\n#       export LD_ASSUME_KERNEL=2.2.5\r\n#       #echo &quot;XAMPP: DISABLE PNTL...&quot;\r\n#fi\r\n<\/pre>\n<p>At\u00e9 onde entendi o lampp n\u00e3o consegue identificar exatamente qual sistema esta rodando, dai acaba ocasionando este erro.<\/p>\n<p>No meu caso eu n\u00e3o precisei comentar o trecho logo acima que fala do lampp 32bits, portanto fique atento, algumas pessoas precisam comentar isso tudo tamb\u00e9m:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# XAMPP is currently 32 bit only\r\ncase `uname -m` in\r\n        *_64)\r\n        if $XAMPP_ROOT\/bin\/php -v &gt; \/dev\/null 2&gt;&amp;1\r\n        then\r\n                :\r\n        else\r\n                $GETTEXT -s &quot;XAMPP is currently only availably as 32 bit appl$\r\n                exit 1\r\n        fi\r\n        ;;\r\nesac\r\n<\/pre>\n<p>Depois provavelmente voc\u00ea vai se deparar com este erro:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n[root@localhost opt]# \/opt\/lampp\/lampp start\r\nStarting XAMPP for Linux 7.1.29-1...\r\nXAMPP: Starting Apache...fail.\r\nhttpd: Syntax error on line 522 of \/opt\/lampp\/etc\/httpd.conf: Syntax error on line 10 of \/opt\/lampp\/etc\/extra\/httpd-xampp.conf: Cannot load \/opt\/lampp\/modules\/libphp7.so into server: libnsl.so.1: cannot open shared object file: No such file or directory\r\nXAMPP: Starting MySQL...already running.\r\nXAMPP: Starting ProFTPD...already running.\r\n<\/pre>\n<p>Voc\u00ea j\u00e1 deve ter tentado instalar o libnsl, se n\u00e3o tiver ira instalar, caso j\u00e1 instalado vai informar que o pacote j\u00e1 existe, por\u00e9m n\u00e3o \u00e9 exatamente este o pacote que precisamos, o pacote em que realmente precisamos \u00e9 o libnsl.x86_64, portanto instale:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\ndnf install libnsl.x86_64\r\n<\/pre>\n<p>Se ainda sim n\u00e3o funcionar instale o pacote:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\ndnf groupinstall 'Development Tools'\r\n<\/pre>\n<p>Pronto, seu lampp j\u00e1 deve funcionar, caso n\u00e3o funcionar algo saiu diferente de meu sistema, estou utilizando o Linux Fedora 29 com KDE.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tive alguns problemas para instalar o lampp no Linux Fedora 29, acredito que este artigo ir\u00e1 te ajudar. Primeiramente baixe o lampp e execute-o como root: Ap\u00f3s este comando ir\u00e1 abrir o instalador e basta ir dando next. No meu caso assim que terminou a instala\u00e7\u00e3o o apache foi o \u00fanico servi\u00e7o que n\u00e3o iniciou, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,74,2],"tags":[121,105,122,76],"class_list":["post-268","post","type-post","status-publish","format-standard","hentry","category-fedora","category-lampp","category-linux","tag-error-lampp","tag-fedora-29","tag-install-lampp","tag-lampp","cat-3-id","cat-74-id","cat-2-id"],"_links":{"self":[{"href":"http:\/\/hackerzone.com.br\/blog\/wp-json\/wp\/v2\/posts\/268","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/hackerzone.com.br\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/hackerzone.com.br\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/hackerzone.com.br\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/hackerzone.com.br\/blog\/wp-json\/wp\/v2\/comments?post=268"}],"version-history":[{"count":7,"href":"http:\/\/hackerzone.com.br\/blog\/wp-json\/wp\/v2\/posts\/268\/revisions"}],"predecessor-version":[{"id":275,"href":"http:\/\/hackerzone.com.br\/blog\/wp-json\/wp\/v2\/posts\/268\/revisions\/275"}],"wp:attachment":[{"href":"http:\/\/hackerzone.com.br\/blog\/wp-json\/wp\/v2\/media?parent=268"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/hackerzone.com.br\/blog\/wp-json\/wp\/v2\/categories?post=268"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/hackerzone.com.br\/blog\/wp-json\/wp\/v2\/tags?post=268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}