<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Arquivos apache2.php5.mysql - Remontti</title>
	<atom:link href="https://blog.remontti.com.br/tag/apache2-php5-mysql/feed" rel="self" type="application/rss+xml" />
	<link>https://blog.remontti.com.br/tag/apache2-php5-mysql</link>
	<description>rudimar@remontti</description>
	<lastBuildDate>Tue, 25 Aug 2020 12:47:04 +0000</lastBuildDate>
	<language>pt-BR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://blog.remontti.com.br/wp-content/uploads/2024/09/icone-rr-80x80.png</url>
	<title>Arquivos apache2.php5.mysql - Remontti</title>
	<link>https://blog.remontti.com.br/tag/apache2-php5-mysql</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Passo-a-passo como criar um servidor web Apache2, PHP5, MySQL, PHPMyAdmin &#8220;LAMP&#8221; no Debian 8</title>
		<link>https://blog.remontti.com.br/1296</link>
					<comments>https://blog.remontti.com.br/1296#comments</comments>
		
		<dc:creator><![CDATA[Rudimar Remontti]]></dc:creator>
		<pubDate>Sat, 24 Sep 2016 13:42:48 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutoriais]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache2.php5.mysql]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[mysql-server]]></category>
		<category><![CDATA[passo a passo]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[Server]]></category>
		<guid isPermaLink="false">http://blog.remontti.com.br/?p=1296</guid>

					<description><![CDATA[<p>Esse tutorial vai em especial para os estagiários! 😀 Distribuição utilizada: Debian 8 Jessie / Instalação Limpa Antes de começar  vamos atualizar nosso repositório / pacotes já instalado. # apt update # apt upgrade #&#46;&#46;&#46;</p>
<p>O post <a href="https://blog.remontti.com.br/1296">Passo-a-passo como criar um servidor web Apache2, PHP5, MySQL, PHPMyAdmin &#8220;LAMP&#8221; no Debian 8</a> apareceu primeiro em <a href="https://blog.remontti.com.br">Remontti</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Esse tutorial vai em especial para os estagiários! <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f600.png" alt="😀" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>Distribuição utilizada: Debian 8 Jessie / <a href="https://blog.remontti.com.br/1152">Instalação Limpa</a></p>
<p>Antes de começar  vamos atualizar nosso repositório / pacotes já instalado.</p>
<pre class="remontti-code"># apt update
# apt upgrade
# apt install apache2 libapache2-mod-php5 php5 mysql-server phpmyadmin</pre>
<p>Instale todos os pacotes dependentes. (S)</p>
<p><a href="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_092925.png" data-rel="lightbox-gallery-Z8PNAetb" data-rl_title="" data-rl_caption="" title=""><img fetchpriority="high" decoding="async" class="alignnone size-medium wp-image-1297" src="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_092925-300x205.png" alt="screenshot_20160924_092925" width="300" height="205" srcset="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_092925-300x205.png 300w, https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_092925-768x525.png 768w, https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_092925-1024x700.png 1024w, https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_092925.png 1047w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p>Sete a senha do root do mysql, está senha não é a senha do usuário root do sistema e sim uma senha que você vai estar criando para seu usuário root do mysql!</p>
<p><a href="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093012.png" data-rel="lightbox-gallery-Z8PNAetb" data-rl_title="" data-rl_caption="" title=""><img decoding="async" class="alignnone size-medium wp-image-1298" src="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093012-300x205.png" alt="screenshot_20160924_093012" width="300" height="205" srcset="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093012-300x205.png 300w, https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093012-768x525.png 768w, https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093012-1024x700.png 1024w, https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093012.png 1047w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p>Repita a senha.</p>
<p><a href="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093033.png" data-rel="lightbox-gallery-Z8PNAetb" data-rl_title="" data-rl_caption="" title=""><img decoding="async" class="alignnone size-medium wp-image-1299" src="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093033-300x205.png" alt="screenshot_20160924_093033" width="300" height="205" srcset="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093033-300x205.png 300w, https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093033-768x525.png 768w, https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093033-1024x700.png 1024w, https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093033.png 1047w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p>Selecione a opção apache2.</p>
<p><a href="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093047.png" data-rel="lightbox-gallery-Z8PNAetb" data-rl_title="" data-rl_caption="" title=""><img loading="lazy" decoding="async" class="alignnone size-medium wp-image-1300" src="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093047-300x205.png" alt="screenshot_20160924_093047" width="300" height="205" srcset="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093047-300x205.png 300w, https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093047-768x525.png 768w, https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093047-1024x700.png 1024w, https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093047.png 1047w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a><br />
Configurando o phpmyadmin:<br />
Responda sim.</p>
<p><a href="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093330.png" data-rel="lightbox-gallery-Z8PNAetb" data-rl_title="" data-rl_caption="" title=""><img loading="lazy" decoding="async" class="alignnone size-medium wp-image-1301" src="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093330-300x205.png" alt="screenshot_20160924_093330" width="300" height="205" srcset="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093330-300x205.png 300w, https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093330-768x525.png 768w, https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093330-1024x700.png 1024w, https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093330.png 1047w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p>Informe a senha do administrador que no caso é nosso usuário <strong>root do MYSQL </strong>que informamos<strong> </strong>anteriormente.</p>
<p><a href="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_103820.png" data-rel="lightbox-gallery-Z8PNAetb" data-rl_title="" data-rl_caption="" title=""><img loading="lazy" decoding="async" class="alignnone size-medium wp-image-1308" src="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_103820-300x205.png" alt="screenshot_20160924_103820" width="300" height="205" srcset="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_103820-300x205.png 300w, https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_103820-768x525.png 768w, https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_103820-1024x700.png 1024w, https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_103820.png 1047w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p>Agora você vai digitar uma senha para o usuário chamado phpmyadmin.</p>
<p><a href="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093509.png" data-rel="lightbox-gallery-Z8PNAetb" data-rl_title="" data-rl_caption="" title=""><img loading="lazy" decoding="async" class="alignnone size-medium wp-image-1302" src="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093509-300x205.png" alt="screenshot_20160924_093509" width="300" height="205" srcset="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093509-300x205.png 300w, https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093509-768x525.png 768w, https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093509-1024x700.png 1024w, https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093509.png 1047w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p>Repita a senha.</p>
<p><a href="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093530.png" data-rel="lightbox-gallery-Z8PNAetb" data-rl_title="" data-rl_caption="" title=""><img loading="lazy" decoding="async" class="alignnone size-medium wp-image-1303" src="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093530-300x205.png" alt="screenshot_20160924_093530" width="300" height="205" srcset="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093530-300x205.png 300w, https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093530-768x525.png 768w, https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093530-1024x700.png 1024w, https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_093530.png 1047w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p>Instalação concluída!</p>
<p>Acesse <strong>http://ip-do-seu-servidor/</strong></p>
<p><a href="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_094733.png" data-rel="lightbox-gallery-Z8PNAetb" data-rl_title="" data-rl_caption="" title=""><img loading="lazy" decoding="async" class="alignnone size-medium wp-image-1304" src="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_094733-300x225.png" alt="screenshot_20160924_094733" width="300" height="225" srcset="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_094733-300x225.png 300w, https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_094733-768x575.png 768w, https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_094733.png 959w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p>Acesse <strong>http://ip-do-seu-servidor/phpmyadmin</strong></p>
<p><a href="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_095016.png" data-rel="lightbox-gallery-Z8PNAetb" data-rl_title="" data-rl_caption="" title=""><img loading="lazy" decoding="async" class="alignnone size-medium wp-image-1305" src="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_095016-300x225.png" alt="screenshot_20160924_095016" width="300" height="225" srcset="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_095016-300x225.png 300w, https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_095016-768x575.png 768w, https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_095016.png 959w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p><a href="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_095023.png" data-rel="lightbox-gallery-Z8PNAetb" data-rl_title="" data-rl_caption="" title=""><img loading="lazy" decoding="async" class="alignnone size-medium wp-image-1306" src="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_095023-300x225.png" alt="screenshot_20160924_095023" width="300" height="225" srcset="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_095023-300x225.png 300w, https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_095023-768x575.png 768w, https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_095023.png 959w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a><br />
Agora vamos habilitar o <a href="http://httpd.apache.org/docs/current/mod/mod_rewrite.html">mod_rewrite</a> do Apache que é muito utilizado. Este é um módulo do Apache que utiliza um mecanismo baseado em regras de reescrita.</p>
<p>Diretório de configurações do Apache fica em <strong>/etc/apache2/</strong></p>
<p>Vamos ao comando para habilita-lo:</p>
<pre class="remontti-code"># a2enmod rewrite</pre>
<p>A página que vimos ao abri o ip do nosso servidor no navegador fica no diretório /var/www/html, isso está sendo informado no arquivo default do apache que fica em <em>/etc/apache2/sites-enabled/000-default.conf</em>, e para que nosso <a href="http://httpd.apache.org/docs/current/mod/mod_rewrite.html">mod_rewrite</a> funcione corretamente será necessário adicionar alguma linhas.</p>
<p>Edite o arquivo /etc/apache2/sites-enabled/000-default.conf (vou usar o editor vim, que não vem instalado por padrão no sistema, mas se você pode usar qualquer edito ex o nano)</p>
<pre class="remontti-code"># vim /etc/apache2/sites-enabled/000-default.conf</pre>
<p>Adicione abaixo de &#8220;<span style="color: #000080;"><strong>DocumentRoot /var/www/html</strong>&#8220;</span> o seguinte:</p>
<pre class="remontti-code">	
	&lt;Directory /var/www/html/&gt;
    		Options FollowSymLinks
    		AllowOverride All
	&lt;/Directory&gt;
</pre>
<p><a href="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_095440.png" data-rel="lightbox-gallery-Z8PNAetb" data-rl_title="" data-rl_caption="" title=""><img loading="lazy" decoding="async" class="alignnone size-medium wp-image-1307" src="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_095440-300x205.png" alt="screenshot_20160924_095440" width="300" height="205" srcset="https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_095440-300x205.png 300w, https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_095440-768x525.png 768w, https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_095440-1024x700.png 1024w, https://blog.remontti.com.br/wp-content/uploads/2016/09/Screenshot_20160924_095440.png 1047w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p>Agora precisamos restartar nosso apache para que tenha efeito nossas alterações.</p>
<pre class="remontti-code"># /etc/init.d/apache2 restart</pre>
<p>Existe também a opçao de restart um serviço utilizando o comando # service</p>
<pre class="remontti-code"># service apache2 restart</pre>
<p>Porém eu sou mais fã do velho /et/init.d/&#8230;</p>
<p>Pronto! Seu servidor está proto para a &#8220;diversão&#8221;.</p>
<p>O post <a href="https://blog.remontti.com.br/1296">Passo-a-passo como criar um servidor web Apache2, PHP5, MySQL, PHPMyAdmin &#8220;LAMP&#8221; no Debian 8</a> apareceu primeiro em <a href="https://blog.remontti.com.br">Remontti</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.remontti.com.br/1296/feed</wfw:commentRss>
			<slash:comments>8</slash:comments>
		
		
			</item>
	</channel>
</rss>
