<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ca">
	<id>https://www.binefa.com/index.php?action=history&amp;feed=atom&amp;title=Instal%C2%B7laci%C3%B3_d%27un_entorn_LAMP._Curs_2025-2026</id>
	<title>Instal·lació d'un entorn LAMP. Curs 2025-2026 - Historial de revisió</title>
	<link rel="self" type="application/atom+xml" href="https://www.binefa.com/index.php?action=history&amp;feed=atom&amp;title=Instal%C2%B7laci%C3%B3_d%27un_entorn_LAMP._Curs_2025-2026"/>
	<link rel="alternate" type="text/html" href="https://www.binefa.com/index.php?title=Instal%C2%B7laci%C3%B3_d%27un_entorn_LAMP._Curs_2025-2026&amp;action=history"/>
	<updated>2026-05-19T03:44:37Z</updated>
	<subtitle>Historial de revisió per a aquesta pàgina del wiki</subtitle>
	<generator>MediaWiki 1.33.0</generator>
	<entry>
		<id>https://www.binefa.com/index.php?title=Instal%C2%B7laci%C3%B3_d%27un_entorn_LAMP._Curs_2025-2026&amp;diff=10875&amp;oldid=prev</id>
		<title>Jordi Binefa: /* Instal·lació de MariaDB */</title>
		<link rel="alternate" type="text/html" href="https://www.binefa.com/index.php?title=Instal%C2%B7laci%C3%B3_d%27un_entorn_LAMP._Curs_2025-2026&amp;diff=10875&amp;oldid=prev"/>
		<updated>2025-09-15T14:55:14Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Instal·lació de MariaDB&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ca&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Versió més antiga&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revisió del 14:55, 15 set 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l54&quot; &gt;Línia 54:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 54:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;&quot;&gt;&lt;div&gt;  http://localhost/&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;&quot;&gt;&lt;div&gt;  http://localhost/&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;&quot;&gt;&lt;div&gt;== Instal·lació de MariaDB ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;&quot;&gt;&lt;div&gt;== Instal·lació de MariaDB ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; 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;&quot;&gt;&lt;div&gt;[[Instal·lació MariaDB. Curs &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;2024&lt;/del&gt;-&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;2025&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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;&quot;&gt;&lt;div&gt;[[Instal·lació MariaDB. Curs &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;2025&lt;/ins&gt;-&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;2026&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;&quot;&gt;&lt;div&gt;== Instal·lació de PHP ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;&quot;&gt;&lt;div&gt;== Instal·lació de PHP ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jordi Binefa</name></author>
		
	</entry>
	<entry>
		<id>https://www.binefa.com/index.php?title=Instal%C2%B7laci%C3%B3_d%27un_entorn_LAMP._Curs_2025-2026&amp;diff=10874&amp;oldid=prev</id>
		<title>Jordi Binefa: /* Instal·lació de Linux */</title>
		<link rel="alternate" type="text/html" href="https://www.binefa.com/index.php?title=Instal%C2%B7laci%C3%B3_d%27un_entorn_LAMP._Curs_2025-2026&amp;diff=10874&amp;oldid=prev"/>
		<updated>2025-09-15T14:54:25Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Instal·lació de Linux&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ca&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Versió més antiga&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revisió del 14:54, 15 set 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l15&quot; &gt;Línia 15:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 15:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;&quot;&gt;&lt;div&gt;L'entorn LAMP o LAMP Stack és possiblement una de les combinacions de tecnologia més populars i utilitzades per aplicacions web com WordPress, Joomla, MediaWiki i PrestaShop.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;&quot;&gt;&lt;div&gt;L'entorn LAMP o LAMP Stack és possiblement una de les combinacions de tecnologia més populars i utilitzades per aplicacions web com WordPress, Joomla, MediaWiki i PrestaShop.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;&quot;&gt;&lt;div&gt;== Instal·lació de Linux ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;&quot;&gt;&lt;div&gt;== Instal·lació de Linux ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; 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;&quot;&gt;&lt;div&gt;Feu una màquina virtual instal·lant una distribució de Linux Debian 13 ([https://www.debian.org/download descàrrega de la darrera versió de Debian]).&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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;&quot;&gt;&lt;div&gt;Feu una màquina virtual instal·lant una distribució de Linux &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'''&lt;/ins&gt;Debian 13&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;''' &lt;/ins&gt;([https://www.debian.org/download descàrrega de la darrera versió de Debian]).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;&quot;&gt;&lt;div&gt;Requisits que es demanen:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;&quot;&gt;&lt;div&gt;Requisits que es demanen:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jordi Binefa</name></author>
		
	</entry>
	<entry>
		<id>https://www.binefa.com/index.php?title=Instal%C2%B7laci%C3%B3_d%27un_entorn_LAMP._Curs_2025-2026&amp;diff=10873&amp;oldid=prev</id>
		<title>Jordi Binefa: Es crea la pàgina amb «= Instal·lació d'un entorn LAMP = == Què és un entorn LAMP? == &quot;LAMP&quot; són les sigles formades arran de les següents paraules &quot;Linux&quot;, &quot;Apache&quot;, &quot;MySQL&quot; o &quot;MariaD...».</title>
		<link rel="alternate" type="text/html" href="https://www.binefa.com/index.php?title=Instal%C2%B7laci%C3%B3_d%27un_entorn_LAMP._Curs_2025-2026&amp;diff=10873&amp;oldid=prev"/>
		<updated>2025-09-15T14:53:59Z</updated>

		<summary type="html">&lt;p&gt;Es crea la pàgina amb «= Instal·lació d&amp;#039;un entorn LAMP = == Què és un entorn LAMP? == &amp;quot;LAMP&amp;quot; són les sigles formades arran de les següents paraules &amp;quot;Linux&amp;quot;, &amp;quot;Apache&amp;quot;, &amp;quot;MySQL&amp;quot; o &amp;quot;MariaD...».&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Pàgina nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Instal·lació d'un entorn LAMP =&lt;br /&gt;
== Què és un entorn LAMP? ==&lt;br /&gt;
&amp;quot;LAMP&amp;quot; són les sigles formades arran de les següents paraules &amp;quot;Linux&amp;quot;, &amp;quot;Apache&amp;quot;, &amp;quot;MySQL&amp;quot; o &amp;quot;MariaDB&amp;quot; i &amp;quot;PHP&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Concretament, cadascuna d'aquestes inicials fa referència a una tecnologia que permet allotjar i executar aplicacions web:&lt;br /&gt;
&lt;br /&gt;
'''L'''inux: és el sistema operatiu del servidor.&lt;br /&gt;
&lt;br /&gt;
'''A'''pache: és un programa que gestiona les &amp;quot;peticions web&amp;quot;. És a dir, el que es coneix popularment com a servidor web.&lt;br /&gt;
&lt;br /&gt;
MySQL o '''M'''ariaDB: és un sistema de gestió de bases de dades que permet gestionar, crear i modificar bases de dades que emmagatzemaran la informació de la teva aplicació.&lt;br /&gt;
&lt;br /&gt;
'''P'''HP: és un llenguatge de programació en què estarà programada la teva aplicació.&lt;br /&gt;
&lt;br /&gt;
L'entorn LAMP o LAMP Stack és possiblement una de les combinacions de tecnologia més populars i utilitzades per aplicacions web com WordPress, Joomla, MediaWiki i PrestaShop.&lt;br /&gt;
== Instal·lació de Linux ==&lt;br /&gt;
Feu una màquina virtual instal·lant una distribució de Linux Debian 13 ([https://www.debian.org/download descàrrega de la darrera versió de Debian]).&lt;br /&gt;
&lt;br /&gt;
Requisits que es demanen:&lt;br /&gt;
&lt;br /&gt;
* Llengua del sistema operatiu: '''català'''&lt;br /&gt;
&lt;br /&gt;
* Contrasenya de root: '''fjeclot'''&lt;br /&gt;
&lt;br /&gt;
* Usuari: Dues lletres del vostre primer cognom, dues lletres del vostre segon cognom i dues lletres del vostre nom. Per exemple, l'usuari de '''Xa'''vier '''Ló'''pez '''Pu'''jol és ''lopuxa''.&lt;br /&gt;
&lt;br /&gt;
* Contrasenya d'usuari: '''clotfje'''&lt;br /&gt;
&lt;br /&gt;
* Connexió de xarxa en pont (''bridge'')&lt;br /&gt;
&lt;br /&gt;
* L'usuari ha de pertànyer al grup ''sudo''&lt;br /&gt;
&lt;br /&gt;
* Repositoris com l'any passat a ''/etc/apt/sources.list''&lt;br /&gt;
&lt;br /&gt;
* Nom de domini: ''ASIX2''&lt;br /&gt;
&lt;br /&gt;
* Servei ''ssh'' activat&lt;br /&gt;
&lt;br /&gt;
El primer cop que poseu en marxa el vostre Linux:&lt;br /&gt;
 jordi@iot-clot:~$ '''sudo apt update'''&lt;br /&gt;
 jordi@iot-clot:~$ '''sudo apt upgrade'''&lt;br /&gt;
&lt;br /&gt;
Exemple de ''/etc/apt/sources.list'':&lt;br /&gt;
 deb http://deb.debian.org/debian bookworm main contrib non-free-firmware&lt;br /&gt;
 deb http://security.debian.org/debian-security bookworm-security main contrib non-free-firmware&lt;br /&gt;
 deb http://deb.debian.org/debian bookworm-updates main contrib non-free-firmware&lt;br /&gt;
&lt;br /&gt;
== Instal·lació d'Apache ==&lt;br /&gt;
 jordi@iot-clot:~$ '''sudo apt update'''&lt;br /&gt;
 jordi@iot-clot:~$ '''sudo apt install apache2'''&lt;br /&gt;
podeu verificar la instal·lació anant al navegador visitant la URL:&lt;br /&gt;
 http://127.0.0.1/&lt;br /&gt;
o&lt;br /&gt;
 http://localhost/&lt;br /&gt;
== Instal·lació de MariaDB ==&lt;br /&gt;
[[Instal·lació MariaDB. Curs 2024-2025]]&lt;br /&gt;
&lt;br /&gt;
== Instal·lació de PHP ==&lt;br /&gt;
 jordi@iot-clot:~$ '''sudo apt update'''&lt;br /&gt;
 jordi@iot-clot:~$ '''sudo apt install -y php libapache2-mod-php php-cli php-fpm php-json php-pdo php-mysql php-zip php-gd php-mbstring php-curl php-xml php-pear php-bcmath'''&lt;br /&gt;
Verifiqueu que el vostre PHP ha estat instal·lat:&lt;br /&gt;
 jordi@iot-clot:~$ '''php -v'''&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
== Instal·lació de PhpMyAdmin ==&lt;br /&gt;
PhpMyAdmin és una aplicació web que ens permetrà gestionar les nostres bases de dades directament des del navegador, cosa que resulta pràctica i còmoda.&lt;br /&gt;
 jordi@iot-clot:~$ sudo apt install phpmyadmin&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
= Prova d'instal·lació del PHP =&lt;br /&gt;
Creeu aquest nou arxiu '''info.php''':&lt;br /&gt;
 jordi@iot-clot:~$ echo &amp;quot;&amp;lt;?php phpinfo(); ?&amp;gt;&amp;quot; | sudo tee /var/www/html/info.php&lt;br /&gt;
Aneu a [http://localhost/info.php http://localhost/info.php] i verifiqueu que surt la informació del PHP que acabeu d'instal·lar.&lt;/div&gt;</summary>
		<author><name>Jordi Binefa</name></author>
		
	</entry>
</feed>