<?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>Pseudonerd &#187; php5</title>
	<atom:link href="http://pseudonerd.com/tag/php5/feed" rel="self" type="application/rss+xml" />
	<link>http://pseudonerd.com</link>
	<description>blog sobre tecnologia e nerdices em geral!</description>
	<lastBuildDate>Thu, 06 May 2010 14:22:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Instalar Apache, PHP5, MySQL5, ADODB no Debian Etch</title>
		<link>http://pseudonerd.com/linux/instalar-apache-php5-mysql5-adodb-no-debian-etch-2-143</link>
		<comments>http://pseudonerd.com/linux/instalar-apache-php5-mysql5-adodb-no-debian-etch-2-143#comments</comments>
		<pubDate>Wed, 16 Jan 2008 19:45:55 +0000</pubDate>
		<dc:creator>adlersd</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[banco de dados]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[adodb]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[mysql5]]></category>
		<category><![CDATA[php5]]></category>

		<guid isPermaLink="false">http://limitado.wordpress.com/2008/01/16/instalando-apache-php5-mysql5-adodb-no-debian-etch/</guid>
		<description><![CDATA[Instalando Apache2 no Debian: 1 Debian 4.0 : # apt-get -y install apache2 Instalando Apache2 + PHP5: 1 Debian 4.0 : # apt-get -y install libapache2-mod-php5 php5-cli php5-common php5-cgi Iniciando Apache: 1 Debian 4.0 : # /etc/init.d/apache2 start Parando Apache: 1 Debian 4.0 : # /etc/init.d/apache2 stop Reiniciando Apache: 1 Debian 4.0 : # /etc/init.d/apache2 [...]


Não existem posts relacionados.]]></description>
			<content:encoded><![CDATA[<p><b>Instalando Apache2 no Debian:</b></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">Debian <span style="color: #000000;">4.0</span> : <span style="color: #666666; font-style: italic;"># apt-get -y install apache2</span></pre></td></tr></table></div>

<p><b>Instalando Apache2 + PHP5:</b></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">Debian <span style="color: #000000;">4.0</span> : <span style="color: #666666; font-style: italic;"># apt-get -y install libapache2-mod-php5 php5-cli php5-common php5-cgi</span></pre></td></tr></table></div>

<p><b>Iniciando Apache:</b></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">Debian <span style="color: #000000;">4.0</span> : <span style="color: #666666; font-style: italic;"># /etc/init.d/apache2 start</span></pre></td></tr></table></div>

<p><b>Parando Apache:</b></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">Debian <span style="color: #000000;">4.0</span> : <span style="color: #666666; font-style: italic;"># /etc/init.d/apache2 stop</span></pre></td></tr></table></div>

<p><b>Reiniciando Apache:</b></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">Debian <span style="color: #000000;">4.0</span> : <span style="color: #666666; font-style: italic;"># /etc/init.d/apache2 restart</span></pre></td></tr></table></div>

<p><b>Habilitando Módulos no Apache2:</b></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">Debian <span style="color: #000000;">4.0</span> : <span style="color: #666666; font-style: italic;"># a2enmod</span>
Which module would you like to <span style="color: #7a0874; font-weight: bold;">enable</span>?
Your choices are: actions <span style="color: #7a0874; font-weight: bold;">alias</span> asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authnz_ldap authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta cgid cgi charset_lite dav_fs dav dav_lock dbd deflate <span style="color: #c20cb9; font-weight: bold;">dir</span> disk_cache dump_io <span style="color: #c20cb9; font-weight: bold;">env</span> expires ext_filter file_cache filter headers ident imagemap include info ldap log_forensic mem_cache mime mime_magic negotiation php5 proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http proxy rewrite setenvif speling ssl status suexec unique_id userdir usertrack version vhost_alias
Module name?</pre></td></tr></table></div>

<p><i>** Após habilitar algum módulo é necessário reiniciar o apache **</i></p>
<p><b>Desabilitando Módulos no Apache2:</b></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">Debian <span style="color: #000000;">4.0</span> : <span style="color: #666666; font-style: italic;"># a2dismod</span>
Which module would you like to disable?
Your choices are: <span style="color: #7a0874; font-weight: bold;">alias</span> auth_basic authn_file authz_default authz_groupfile authz_host authz_user autoindex cgi <span style="color: #c20cb9; font-weight: bold;">dir</span> <span style="color: #c20cb9; font-weight: bold;">env</span> mime negotiation php5 setenvif status
Module name?</pre></td></tr></table></div>

<p><i>** Após desabilitar algum módulo é necessário reiniciar o apache **</i></p>
<p><b>Instalando MySQL5:</b></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">Debian <span style="color: #000000;">4.0</span> : <span style="color: #666666; font-style: italic;"># apt-get -y install mysql-common mysql-server mysql-server-5.0</span></pre></td></tr></table></div>

<p><b>Definindo senha de root para o MySQL:</b></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">Debian <span style="color: #000000;">4.0</span> : <span style="color: #666666; font-style: italic;"># mysqladmin -u root -p password 'definir_senha_para_root'</span></pre></td></tr></table></div>

<p><b>Criando Banco de dados:</b></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">Debian <span style="color: #000000;">4.0</span> : <span style="color: #666666; font-style: italic;"># mysqladmin -p create nome_do_banco_de_dados</span>
Enter password:</pre></td></tr></table></div>

<p><b>Definindo novo usuário e garantindo permissões:</b></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">mysql <span style="color: #660033;">-u</span> root <span style="color: #660033;">-p</span>
Enter Password: <span style="color: #000000; font-weight: bold;">*****</span>
mysql<span style="color: #000000; font-weight: bold;">&gt;</span> create user <span style="color: #ff0000;">'NovoUsuario'</span><span style="color: #000000; font-weight: bold;">@</span>localhost identified by <span style="color: #ff0000;">'Password'</span>;
mysql<span style="color: #000000; font-weight: bold;">&gt;</span> GRANT ALL PRIVILEGES ON <span style="color: #000000; font-weight: bold;">&lt;/</span>i<span style="color: #000000; font-weight: bold;">&gt;&lt;</span>i<span style="color: #000000; font-weight: bold;">&gt;</span>nome_do_banco_de_dados . <span style="color: #000000; font-weight: bold;">*</span> TO NovoUsuario<span style="color: #000000; font-weight: bold;">@</span><span style="color: #ff0000;">'localhost'</span>;
mysql<span style="color: #000000; font-weight: bold;">&gt;</span> FLUSH PRIVILEGES;
mysql<span style="color: #000000; font-weight: bold;">&gt;</span> quit</pre></td></tr></table></div>

<p><b>Instalando Adodb:</b></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">Debian <span style="color: #000000;">4.0</span> : <span style="color: #666666; font-style: italic;"># apt-get -y install libphp-adodb</span></pre></td></tr></table></div>

<p><b>Reiniciando Apache para que todas as mudanças entrem em vigor:</b></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">Debian <span style="color: #000000;">4.0</span> : <span style="color: #666666; font-style: italic;"># /etc/init.d/apache2 restart</span></pre></td></tr></table></div>

<p><b>Testando php:</b></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">Debian <span style="color: #000000;">4.0</span> : <span style="color: #666666; font-style: italic;"># echo &quot;&lt;?php phpinfo(); ?&gt;&quot; &gt;&gt; /var/www/teste.php</span>
agora é só escolher o seu navegador e abrir http:<span style="color: #000000; font-weight: bold;">//</span>localhost<span style="color: #000000; font-weight: bold;">/</span>teste.php ou ip_do_seu_servidor<span style="color: #000000; font-weight: bold;">/</span>teste.php</pre></td></tr></table></div>

<p>abraço,<br />
t++</p>


<p>Não existem posts relacionados.</p>]]></content:encoded>
			<wfw:commentRss>http://pseudonerd.com/linux/instalar-apache-php5-mysql5-adodb-no-debian-etch-2-143/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
