http://wiki.projetoroot.com.br/index.php?title=LAMP&feed=atom&action=history
LAMP - Histórico de revisão
2024-03-28T23:21:18Z
Histórico de revisões para esta página neste wiki
MediaWiki 1.39.3
http://wiki.projetoroot.com.br/index.php?title=LAMP&diff=659&oldid=prev
Diegocosta: /* Sobre */
2020-10-01T14:24:45Z
<p><span dir="auto"><span class="autocomment">Sobre</span></span></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="pt-BR">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Edição anterior</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Edição das 14h24min de 1 de outubro de 2020</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l6">Linha 6:</td>
<td colspan="2" class="diff-lineno">Linha 6:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>https://www.kernel.org/</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>https://www.kernel.org/</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>https://<del style="font-weight: bold; text-decoration: none;">www</del>.apache.org/</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>https://<ins style="font-weight: bold; text-decoration: none;">httpd</ins>.apache.org/</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>https://mariadb.org/</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>https://mariadb.org/</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l15">Linha 15:</td>
<td colspan="2" class="diff-lineno">Linha 15:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>https://www.postgresql.org/</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>https://www.postgresql.org/</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"></del></div></td><td colspan="2" class="diff-side-added"></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Vídeo ==</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Vídeo ==</div></td></tr>
</table>
Diegocosta
http://wiki.projetoroot.com.br/index.php?title=LAMP&diff=657&oldid=prev
Diegocosta em 20h51min de 30 de setembro de 2020
2020-09-30T20:51:33Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="pt-BR">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Edição anterior</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Edição das 20h51min de 30 de setembro de 2020</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l154">Linha 154:</td>
<td colspan="2" class="diff-lineno">Linha 154:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> udp6 0 0 ::1:42562 ::1:42562 ESTABELECIDA 30167/postmaster </div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> udp6 0 0 ::1:42562 ::1:42562 ESTABELECIDA 30167/postmaster </div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> udp6 0 0 :::5355 :::* 1124/systemd-resolv</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> udp6 0 0 :::5355 :::* 1124/systemd-resolv</div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">== phpMyAdmin ==</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">Para instalação do software phpMyAdmin, veja este [https://wiki.projetoroot.com.br/index.php?title=PhpMyAdmin link], onde documentamos o processo de instalação nas três distribuições listadas nesta documentação (Ubuntu Server 20.04, Debian 10 e CentOS 8).</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">https://wiki.projetoroot.com.br/index.php?title=PhpMyAdmin</ins></div></td></tr>
</table>
Diegocosta
http://wiki.projetoroot.com.br/index.php?title=LAMP&diff=653&oldid=prev
Diegocosta: Criou página com '== Sobre == Olá! Visitante, reunimos aqui, informações sobre a Instalação de um servidor LAMP (Linux Apache Mysql PHP,Perl), este servidor por natureza precisa ter alguns...'
2020-09-25T19:02:22Z
<p>Criou página com '== Sobre == Olá! Visitante, reunimos aqui, informações sobre a Instalação de um servidor LAMP (Linux Apache Mysql PHP,Perl), este servidor por natureza precisa ter alguns...'</p>
<p><b>Página nova</b></p><div>== Sobre ==<br />
Olá! Visitante, reunimos aqui, informações sobre a Instalação de um servidor LAMP (Linux Apache Mysql PHP,Perl), este servidor por natureza precisa ter alguns requisitos básicos de conjuntos de softwares instalados, como servidor web Apache, ou seja,um software capaz de armazenar páginas estáticas ou dinâmicas, assim como módulos para suportar as linguagens de programação HTML, PHP, PERL entre outras e naturalmente um banco de dados para armazenar informações de acesso, cadastro de usuários, produtos e etc no site que será armazenado neste servidor, caso o servidor não tenha nele o banco de dados, ainda é possivel utilizar este mesmo para se conectar em um host que tenha o serviço de banco de dados (denominado: end point, através da chamada de sistema mysql connector ou semelhante em caso de outro SGBD. <br />
<br />
Sites Oficiais: <br />
<br />
https://www.kernel.org/<br />
<br />
https://www.apache.org/<br />
<br />
https://mariadb.org/<br />
<br />
https://www.php.net/<br />
<br />
https://www.perl.org/<br />
<br />
https://www.postgresql.org/<br />
<br />
<br />
== Vídeo ==<br />
<embedvideo service="youtube">https://youtu.be/Lv_bDnjdJ3Q</embedvideo><br />
https://youtu.be/Lv_bDnjdJ3Q<br />
<br />
== Preparação dos Sistemas ==<br />
*Ubuntu/Debian<br />
apt-get update && apt-get upgrade && apt-get dist-upgrade && apt-get autoremove && apt-get autoclean && apt-get clean<br />
*CentOS/RHEL<br />
yum update && yum clean all<br />
<br />
== Ubuntu 20.04 - Server ==<br />
<br />
*** Server WEB(APACHE) '''Light''' <br />
apt-get install apache2 php7.4 libapache2-mod-php7.4<br />
<br />
systemctl enable apache2.service<br />
systemctl start apache2.service<br />
<br />
*** Server WEB(APACHE) '''Full''' <br />
apt-get install ca-certificates apache2 bzip2 curl php7.4-json php7.4-bz2 libapache2-mod-php7.4 libmariadbd-dev php-soap php-cas php7.4 php-apcu php7.4-cli php7.4-common php7.4-curl php7.4-gd php7.4-imap php7.4-ldap php7.4-mysql php7.4-snmp php7.4-xmlrpc php7.4-xml php7.4-mbstring php7.4-bcmath php7.4-zip php7.4-intl php7.4-bz2 php-pear php-imagick php-memcache php7.4-pspell php7.4-tidy php7.4-xsl<br />
<br />
systemctl enabled apache2.service<br />
systemctl start apache2.service<br />
<br />
=== Install mysql-server (MariaDB) ===<br />
apt-get install mysql-server<br />
<br />
=== Install Postgresql ===<br />
apt-get install postgresql postgresql-contrib<br />
<br />
=== Verificação dos Serviços: === <br />
<br />
root@ubuntu-server:~# netstat -pultan <br />
Active Internet connections (servers and established)<br />
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name <br />
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 619/systemd-resolve <br />
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 777/sshd: /usr/sbin <br />
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 25441/postgres <br />
tcp 0 0 192.168.201.157:22 192.168.201.156:47116 ESTABLISHED 853/sshd: diegocost <br />
tcp 0 0 192.168.201.157:54284 200.236.31.4:80 TIME_WAIT - <br />
tcp6 0 0 :::80 :::* LISTEN 17660/apache2 <br />
tcp6 0 0 :::22 :::* LISTEN 777/sshd: /usr/sbin <br />
tcp6 0 0 :::33060 :::* LISTEN 23304/mysqld <br />
tcp6 0 0 :::3306 :::* LISTEN 23304/mysqld <br />
udp 0 0 127.0.0.53:53 0.0.0.0:* 619/systemd-resolve <br />
udp 0 0 192.168.201.157:68 0.0.0.0:* 617/systemd-network <br />
udp 0 0 127.0.0.1:56767 127.0.0.1:56767 ESTABLISHED 25441/postgres <br />
root@ubuntu-server:~# <br />
<br />
<br />
== Debian 10 - Server ==<br />
*** Server WEB(APACHE) '''Light''' <br />
apt-get install apache2 php7.3 libapache2-mod-php7.3<br />
<br />
*** Server WEB(APACHE) '''Full''' <br />
apt-get install ca-certificates apache2 bsdtar bzip2 curl php7.3-json php7.3-bz2 libapache2-mod-php7.3 libmariadbd-dev php-soap php-cas php7.3 php-apcu php7.3-cli php7.3-common php7.3-curl php7.3-gd php7.3-imap php7.3-ldap php7.3-mysql php7.3-snmp php7.3-xmlrpc php7.3-xml php7.3-mbstring php7.3-bcmath php7.3-zip php7.3-intl php7.3-bz2 php-pear php-imagick php-memcache php7.3-pspell php7.3-recode php7.3-tidy php7.3-xsl php-gettext <br />
<br />
<br />
=== Install mysql-server (MariaDB) ===<br />
apt-get install mariadb-server<br />
<br />
=== Install Postgresql ===<br />
apt-get install postgresql postgresql-contrib<br />
<br />
<br />
=== Verificação dos Serviços: === <br />
<br />
root@debian:/home/diegocosta# netstat -pultan<br />
Conexões Internet Ativas (servidores e estabelecidas)<br />
Proto Recv-Q Send-Q Endereço Local Endereço Remoto Estado PID/Program name <br />
tcp 0 0 0.0.0.0:22 0.0.0.0:* OUÇA 413/sshd <br />
tcp 0 0 127.0.0.1:5432 0.0.0.0:* OUÇA 12385/postgres <br />
tcp 0 0 127.0.0.1:3306 0.0.0.0:* OUÇA 16134/mysqld <br />
tcp 0 36 192.168.201.132:22 192.168.201.156:51610 ESTABELECIDA 575/sshd: diegocost <br />
tcp6 0 0 :::22 :::* OUÇA 413/sshd <br />
tcp6 0 0 ::1:5432 :::* OUÇA 12385/postgres <br />
tcp6 0 0 :::80 :::* OUÇA 18927/apache2 <br />
udp 0 0 0.0.0.0:68 0.0.0.0:* 368/dhclient <br />
udp6 0 0 ::1:18862 ::1:18862 ESTABELECIDA 12385/postgres <br />
<br />
<br />
<br />
== CentOS ==<br />
yum install -y wget php-ldap php php-gd php-pear php-pecl-zendopcache php-mbstring php-mysqli php-cli php-json php-mbstring php-pdo php-pecl-zip php-curl php-xmlrpc php-apcu php-pecl-zendopcache httpd httpd-devel gcc <br />
<br />
=== Ajustes no sistema ===<br />
* Permitir no firewall o acesso as portas 80 e 443<br />
firewall-cmd --permanent --add-service=http<br />
firewall-cmd --permanent --add-service=https<br />
firewall-cmd --reload<br />
<br />
* Caso queira desativar o Firewall<br />
systemctl stop firewall-cmd<br />
<br />
* Habilitar no sistema e iniciar o serviço<br />
systemctl enable httpd<br />
systemctl start httpd<br />
<br />
<br />
=== Install mysql-server (MariaDB) ===<br />
<br />
yum install mysql-server<br />
<br />
* Habilitando e inicializando o serviço<br />
systemctl enable mysqld<br />
systemctl start mysqld<br />
<br />
=== Install Postgresql ===<br />
<br />
yum install postgresql-server<br />
* Criando um banco de dados inicial (Vazio)<br />
postgresql-setup initdb<br />
<br />
* Habilitando e inicializando o serviço<br />
systemctl enable postgresql<br />
systemctl start postgresql<br />
<br />
=== Verificação dos Serviços: === <br />
<br />
[root@centos diegocosta]# netstat -pultan<br />
Conexões Internet Ativas (servidores e estabelecidas)<br />
Proto Recv-Q Send-Q Endereço Local Endereço Remoto Estado PID/Program name <br />
tcp 0 0 127.0.0.1:5432 0.0.0.0:* OUÇA 30167/postmaster <br />
tcp 0 0 0.0.0.0:5355 0.0.0.0:* OUÇA 1124/systemd-resolv <br />
tcp 0 0 0.0.0.0:22 0.0.0.0:* OUÇA 905/sshd <br />
tcp 0 0 192.168.201.230:22 192.168.201.156:39622 ESTABELECIDA 1477/sshd: diegocos <br />
tcp6 0 0 ::1:5432 :::* OUÇA 30167/postmaster <br />
tcp6 0 0 :::33060 :::* OUÇA 30711/mysqld <br />
tcp6 0 0 :::3306 :::* OUÇA 30711/mysqld <br />
tcp6 0 0 :::5355 :::* OUÇA 1124/systemd-resolv <br />
tcp6 0 0 :::80 :::* OUÇA 30224/httpd <br />
tcp6 0 0 :::22 :::* OUÇA 905/sshd <br />
udp 0 0 127.0.0.53:53 0.0.0.0:* 1124/systemd-resolv <br />
udp 0 0 192.168.201.230:68 192.168.201.1:67 ESTABELECIDA 889/NetworkManager <br />
udp 0 0 0.0.0.0:5355 0.0.0.0:* 1124/systemd-resolv <br />
udp6 0 0 ::1:42562 ::1:42562 ESTABELECIDA 30167/postmaster <br />
udp6 0 0 :::5355 :::* 1124/systemd-resolv</div>
Diegocosta