<?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>Blog d&#039;Idriss Neumann &#187; Développement sous Linux</title>
	<atom:link href="https://blog.developpez.com/ineumann/pcategory/developpement-sous-linux/feed" rel="self" type="application/rss+xml" />
	<link>https://blog.developpez.com/ineumann</link>
	<description>Articles sur Linux et sur le développement sous Linux</description>
	<lastBuildDate>Mon, 14 Jul 2014 08:38:25 +0000</lastBuildDate>
	<language>fr-FR</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.42</generator>
	<item>
		<title>Initiation à la compilation en console avec gcc, g++, javac et make</title>
		<link>https://blog.developpez.com/ineumann/p11038/developpement-sous-linux/initiation_a_la_compilation_en_console_a</link>
		<comments>https://blog.developpez.com/ineumann/p11038/developpement-sous-linux/initiation_a_la_compilation_en_console_a#comments</comments>
		<pubDate>Tue, 22 May 2012 09:27:46 +0000</pubDate>
		<dc:creator><![CDATA[ok.Idriss]]></dc:creator>
				<category><![CDATA[Développement sous Linux]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Introduction GCC signifie &#171;&#160;Gnu Compiler Collection&#160;&#187;, il s&#8217;agit d&#8217;un compilateur libre créé par le projet GNU. Il rassemble une panoplie de logiciels libres intégrés capables de compiler pour divers langages de programmation, dont le C, C++, Objective-C, &#8230; GCC est à l&#8217;origine de la plupart des logiciels libres et est étroitement lié au noyau Linux. Il a été aussi porté sur quelques plateformes pour Windows comme MinGW qui est utilisé sur certains IDE comme Code::Blocks [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><strong>Introduction</strong></p>
<p>GCC signifie &laquo;&nbsp;Gnu Compiler Collection&nbsp;&raquo;, il s&rsquo;agit d&rsquo;un compilateur libre créé par le projet GNU. Il rassemble une panoplie de logiciels libres intégrés capables de compiler pour divers langages de programmation, dont le C, C++, Objective-C, &#8230; GCC est à l&rsquo;origine de la plupart des logiciels libres et est étroitement lié au noyau Linux. Il a été aussi porté sur quelques plateformes pour Windows comme MinGW qui est utilisé sur certains IDE comme Code::Blocks ou Dev C++.</p>
<p><strong>I &#8211; Installer <code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">gcc</span></span></code>, <code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">g++</span></span></code>, et <code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">make</span></span></code></strong></p>
<p>Pour Ubuntu/Debian :</p>
<p><strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> build-essential</span></code></strong></p>
<p>ou encore :</p>
<p><strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> build-essential</span></code></strong></p>
<p>Pour Fedora, RHEL et CentOS :</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">&#91;</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #c20cb9; font-weight: bold;">su</span> -<br />
root<span style="color: #000000; font-weight: bold;">\'</span>s password :<br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span> $<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #c20cb9; font-weight: bold;">yum install</span> <span style="color: #c20cb9; font-weight: bold;">gcc</span><br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span> $<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #c20cb9; font-weight: bold;">yum install</span> gcc-c++</div></div>
<p>Pour les autres distributions, renseignez-vous sur les différents paquets à installer et sur l&rsquo;utilisation de votre gestionnaire des paquets.</p>
<p><strong>II &#8211; Compiler en C avec <code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">gcc</span></span></code></strong></p>
<p>Pour compiler un seul fichier .c :</p>
<p><strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">gcc</span> nom_du_fichier.c <span style="color: #660033;">-o</span> nom_du_programme</span></code></strong></p>
<p>ou encore :</p>
<p><strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">cc</span> nom_du_fichier.c <span style="color: #660033;">-o</span> nom_du_programme</span></code></strong></p>
<p>cc étant désormais un alias de la commande gcc (à l&rsquo;origine c&rsquo;était le compilateur C sur Unix dont GCC est le clone GNU).</p>
<p>Pour exécuter le programme, faites <strong><code class="codecolorer bash default"><span class="bash">.<span style="color: #000000; font-weight: bold;">/</span>nom_du_programme</span></code></strong> en console (attention au chemin relatif).</p>
<p>Remarque : si vous faites uniquement <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">gcc</span> nom_du_fichier.c</span></code></strong> ou <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">cc</span> nom_du_fichier</span></code></strong>, vous aurez l&rsquo;apparition d&rsquo;un exécutable <strong><code class="codecolorer bash default"><span class="bash">a.out</span></code></strong>.</p>
<p>Pour compiler un projet composé des fichiers : main.c, fonctions.c et header.h :</p>
<p><strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">gcc</span> main.c fonctions.c <span style="color: #660033;">-o</span> nom_du_programme</span></code></strong></p>
<p>Il faut suivre l&rsquo;ordre : cible ; dépendances.</p>
<p>Remarques :</p>
<ul>
<li>Il faut parfois inclure l&rsquo;option <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #660033;">-lm</span></span></code></strong> dans la commande de compilation pour inclure certaines bibliothèques ou fichiers d’entêtes comme <strong><code class="codecolorer bash default"><span class="bash">math.h</span></code></strong>.</li>
<li>Pour afficher les Warnings, il faut utiliser certaines options comme -Wall, -Wextra, &#8230; voir la documentation de GCC ou la manpage de ce dernier</li>
<li>L&rsquo;option -c indique à GCC de ne pas linker, vous n&rsquo;aurez pas de fichier.o, exemple : <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">gcc</span> <span style="color: #660033;">-c</span> main.c <span style="color: #660033;">-o</span> nom_du_programme</span></code></strong>.</li>
</ul>
<p><strong>III &#8211; Compiler en C++ avec <code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">g++</span></span></code> et en java avec <code class="codecolorer bash default"><span class="bash">javac</span></code></strong></p>
<p>Pour compiler en C++, il s&rsquo;agit exactement du même processus sauf qu&rsquo;il faut remplacer la commande <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">gcc</span></span></code></strong> par <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">g++</span></span></code></strong> dans les commandes de compilation.</p>
<p>Exemples :</p>
<p><strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">g++</span> nom_du_fichier.cpp <span style="color: #660033;">-o</span> nom_du_programme</span></code></strong><br />
<strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">g++</span> main.cpp fonctions.cpp <span style="color: #660033;">-o</span> nom_du_programme</span></code></strong></p>
<p>Pour le cas de Java, les commandes sont légèrement plus simples :</p>
<p><strong><code class="codecolorer bash default"><span class="bash">javac nom_du_fichier.java</span></code></strong><br />
<strong><code class="codecolorer bash default"><span class="bash">java NomProgramme</span></code></strong></p>
<p><strong>IV &#8211; Compiler ses projet avec make</strong></p>
<p>Vous devez créer un fichier nommé <strong><code class="codecolorer bash default"><span class="bash">Makefile</span></code></strong> dans le répertoire des sources afin de pouvoir utiliser la commande <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">make</span></span></code></strong>. Il s&rsquo;agit du fichier d&rsquo;instruction dans lequel vous écrirez les commandes qui doivent être exécutée par la commande <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">make</span></span></code></strong>.</p>
<p>Les commandes doivent respecter cet ordre :</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cible: dépendances<br />
commandes<br />
...</div></div>
<p><strong>Attention :</strong> vous devez impérativement respecter les tabulations devant les commandes.</p>
<p>Voici un exemple de Makefile pour un projet en C composé d&rsquo;un fichier main.c, fonction.c et header.h :</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># Ceci est un commentaire</span><br />
<span style="color: #666666; font-style: italic;"># création de l'exécutable 'NomDuProgramme'</span><br />
<br />
NomDuProgramme: main.o fonctions.o<br />
<span style="color: #c20cb9; font-weight: bold;">gcc</span> main.o fonctions.o <span style="color: #660033;">-o</span> NomDuProgramme<br />
<br />
main.o: main.c<br />
<span style="color: #c20cb9; font-weight: bold;">gcc</span> <span style="color: #660033;">-c</span> main.c <span style="color: #660033;">-o</span> main.o<br />
<br />
fonctions.o: fonctions.c<br />
<span style="color: #c20cb9; font-weight: bold;">gcc</span> <span style="color: #660033;">-c</span> fonctions.c <span style="color: #660033;">-o</span> fonctions.o<br />
<br />
<span style="color: #666666; font-style: italic;"># suppression des fichiers.o</span><br />
clean:<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">*</span>.o</div></div>
<p>Les commandes à exécuter ensuite sont :</p>
<ul>
<li><strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">make</span></span></code></strong> ou <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">make</span> NomDuProgramme</span></code></strong> : compiler votre projet</li>
<li><strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">make</span> clean</span></code></strong> : supprimera tout les fichiers.o</li>
</ul>
<p>Mais pour l&rsquo;utilisation des warnings, l&rsquo;écriture deviendrait très laborieuse &#8230; c&rsquo;est pourquoi, il est préférable d&rsquo;utiliser une variable qui contient toutes les options de gcc souhaitées.</p>
<p>Exemple :</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># Déclaration de la variable &quot;warnings&quot;</span><br />
<br />
warnings = <span style="color: #660033;">-Wall</span> <span style="color: #660033;">-Wextra</span> - pedentic <span style="color: #660033;">-ansi</span> <span style="color: #660033;">-Wwrite-strings</span><br />
<span style="color: #660033;">-Wstrict-prototypes</span> <span style="color: #660033;">-Wuninitialized</span> <span style="color: #660033;">-Wunreachable-code</span><br />
<br />
<span style="color: #666666; font-style: italic;">#création de l'exécutable 'NomDuProgramme'</span><br />
<br />
NomDuProgramme: main.o fonctions.o<br />
<span style="color: #c20cb9; font-weight: bold;">gcc</span> main.o fonctions.o <span style="color: #660033;">-o</span> NomDuProgramme<br />
<br />
main.o: main.c<br />
<span style="color: #c20cb9; font-weight: bold;">gcc</span> <span style="color: #660033;">-c</span> main.c $<span style="color: #7a0874; font-weight: bold;">&#40;</span>warnings<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #660033;">-o</span> main.o<br />
<span style="color: #666666; font-style: italic;"># attention, les parenthèses sont importantes ici</span><br />
<br />
fonctions.o: fonctions.c<br />
<span style="color: #c20cb9; font-weight: bold;">gcc</span> <span style="color: #660033;">-c</span> fonctions.c $<span style="color: #7a0874; font-weight: bold;">&#40;</span>warnings<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #660033;">-o</span> fonctions.o<br />
<br />
<span style="color: #666666; font-style: italic;">#suppression des fichiers.o</span><br />
clean:<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">*</span>o</div></div>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installation et configuration minimale d&#8217;un serveur web Apache/PHP local sous Ubuntu/Debian</title>
		<link>https://blog.developpez.com/ineumann/p11036/developpement-sous-linux/installation_et_configuration_minimale_d</link>
		<comments>https://blog.developpez.com/ineumann/p11036/developpement-sous-linux/installation_et_configuration_minimale_d#comments</comments>
		<pubDate>Mon, 21 May 2012 20:38:07 +0000</pubDate>
		<dc:creator><![CDATA[ok.Idriss]]></dc:creator>
				<category><![CDATA[Développement sous Linux]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Ce billet a pour but de permettre l&#8217;installation et l&#8217;utilisation d&#8217;un serveur HTTP et d&#8217;un SGBD en local sur Debian ou Ubuntu. Il évite ainsi de passer par des outils du type easyPHP, LAMP/WAMP/MAMP, &#8230; Par ailleurs nous ne nous limiterons pas à la simple installation de MySQL comme SGBDR. Parmi toutes les distributions existantes, nous avons ici choisi Debian et Ubuntu pour plusieurs raisons : Elles sont aujourd&#8217;hui parmi les distributions les plus répandues. [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Ce billet a pour but de permettre l&rsquo;installation et l&rsquo;utilisation d&rsquo;un serveur HTTP et d&rsquo;un SGBD en local sur Debian ou Ubuntu. Il évite ainsi de passer par des outils du type easyPHP, LAMP/WAMP/MAMP, &#8230; Par ailleurs nous ne nous limiterons pas à la simple installation de MySQL comme SGBDR.</p>
<p>Parmi toutes les distributions existantes, nous avons ici choisi Debian et Ubuntu pour plusieurs raisons :</p>
<ul>
<li>Elles sont aujourd&rsquo;hui parmi les distributions les plus répandues.</li>
<li>Parler de toutes les distributions surchargerait l&rsquo;article.</li>
<li>Si vous êtes utilisateurs d&rsquo;une autre distribution, la démarche sera exactement la même et il faudra simplement adapter les commandes de gestion des paquets.</li>
</ul>
<p><strong>I &#8211; Mise à jour de la liste des dépôts</strong></p>
<p>Tout d&rsquo;abord, il faut mettre la liste des dépôts à jour, pour cela faites en console <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> update</span></code></strong> ou encore <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get update</span></span></code></strong> afin de mettre à jour les informations sur les paquets.</p>
<p><strong>II &#8211; Le serveur HTTP apache</strong></p>
<p>Les versions récentes d&rsquo;Ubuntu et dérivées embarquent automatiquement une version du serveur HTTP apache avec comme répertoire par défaut <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www</span></code></strong>. Ainsi pour vérifier si le serveur apache est présent et est lancé, il suffit d&rsquo;exécuter la commande <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 status</span></code></strong> ou <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>httpd status</span></code></strong> selon les versions.</p>
<p>En cas de besoin, vous pouvez lancer le deamon à l&rsquo;aide de la directive <strong><code class="codecolorer bash default"><span class="bash">start</span></code></strong> ou le relancer avec <strong><code class="codecolorer bash default"><span class="bash">restart</span></code></strong> de la même façon que <strong><code class="codecolorer bash default"><span class="bash">status</span></code></strong>. Pour stopper le serveur apache, vous pouvez enfin utiliser la directive <strong><code class="codecolorer bash default"><span class="bash">stop</span></code></strong>.</p>
<p>Si le deamon apache2 ou httpd n&rsquo;est pas présent, lancez l&rsquo;installation à l&rsquo;aide de la commande <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> apache2</span></code></strong> ou encore <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> apache2</span></code></strong>.</p>
<p>Pour une configuration minimale, le répertoire par défaut d&rsquo;apache est <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www</span></code></strong>. C&rsquo;est donc dans ce répertoire que devront être placés vos scripts PHP. Ainsi, pour une utilisation plus aisée :</p>
<ul>
<li>Vous pouvez rendre accessible ce répertoire aux autres comptes utilisateurs comme ceci <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">777</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www</span></code></strong> sinon vous serez obligés de coder et tester vos scripts via le compte root ou le compte d&rsquo;apache (totalement déconseillé).</li>
<li>Vous pouvez créer un lien symbolique de /var/www vers votre répertoire personnel de cette façon : <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www ~<span style="color: #000000; font-weight: bold;">/</span>www</span></code></strong>.</li>
</ul>
<p>Pour exécuter vos scripts PHP à partir de votre navigateur, il faut le faire à partir de ce type d&rsquo;URL : http://localhost/mon_fichier.php ou encore http://127.0.0.1/mon_fichier.php .</p>
<p><strong>III &#8211; MySQL et PHPMyAdmin</strong></p>
<p>MySQL est un SGBDR (système de gestion de bases de données relationnelles) libre et gratuit qui est aujourd&rsquo;hui le plus utilisé dans le domaine du web. Pour l&rsquo;installer, il faut lancer ces deux commandes <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> mysql-client</span></code></strong> (ou <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> mysql-client</span></code></strong>) et <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> mysql-server</span></code></strong> (ou <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> mysql-server</span></code></strong>).</p>
<p>Pour éviter de vous connecter via un client graphique vous pouvez utiliser cette commande :<br />
<strong><code class="codecolorer bash default"><span class="bash">mysql <span style="color: #660033;">-u</span> root <span style="color: #660033;">-p</span></span></code></strong> (si vous possédez un utilisateur root), puis <strong><code class="codecolorer bash default"><span class="bash">create database nom_base</span></code></strong> pour créer une base de données et enfin <strong><code class="codecolorer bash default"><span class="bash">use nom_base</span></code></strong> pour travailler sur la bdd &laquo;&nbsp;nom_base&nbsp;&raquo;.</p>
<p>Pour une utilisation plus simple, vous pouvez installer un client graphique tel que PHPMyAdmin, un client léger sous une interface PHP qui est aujourd&rsquo;hui l&rsquo;un des plus connus voire le plus connus. Pour l&rsquo;installer, exécutez la commande <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> phpmyadmin</span></code></strong> ou encore <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> phpmyadmin</span></code></strong>. Il faudra ensuite créer un lien symbolique de <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>phpmyadmin</span></code></strong> vers <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www</span></code></strong> de cette manière : <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>phpmyadmin <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>phpmyadmin</span></code></strong>. Ainsi, vous pourrez accéder à PHPMyAdmin à partir du navigateur via ces URLs : http://localhost/phpmyadmin ou encore http://127.0.0.1/phpmyadmin .</p>
<p><strong>IV &#8211; PostgreSQL et PHPPgAdmin</strong></p>
<p>PostgreSQL est un autre SGBDR libre et gratuit. En effet, il est assez apprécié en entreprise pour sa fiabilité, sa sécurité (notamment dû au respect des contraintes d&rsquo;intégrités référentielles, à la puissance de son langage de procédure stockée et de triggers proche de celui d&rsquo;Oracle, &#8230;) et sa stabilité. Il est souvent perçu comme une alternative à Oracle (autre SGBD très puissant, très utilisé en entreprise mais payant avec un ensemble de services qui vont autour). Pour l&rsquo;installer, il faut effectuer cette commande : <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> postgresql</span></code></strong> ou encore <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> postgresql</span></code></strong>.</p>
<p>De même que pour MySQL, vous pouvez vous connecter à PostgreSQL en console ou via un client graphique. Or, il existe un client léger sous une interface Web appelée PHPPgAdmin équivalent à PHPMyAdmin. Pour l&rsquo;installation, il s&rsquo;agit de la même procédure que pour PHPMyAdmin : lancez en console la commande <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> phppgadmin</span></code></strong> ou encore <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> phppgadmin</span></code></strong>. Créez ensuite un lien symbolique de <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>phppgadmin</span></code></strong> vers <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www</span></code></strong> de cette façon : <strong><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>phppgadmin <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>phppgadmin</span></code></strong>. Ainsi, vous pourrez enfin accéder à PHPPgAdmin à partir du navigateur via ces URLs : http://localhost/phppgadmin ou encore http://127.0.0.1/phppgadmin .</p>
<p><strong>Conclusion</strong></p>
<p>Vous disposez maintenant de tout ce qu&rsquo;il vous faut pour développer en PHP et SQL localement sur votre machine. Vous pouvez également aller plus loin en apprenant à administrer votre serveur HTTP (par exemple via le fichier httpd.conf ou apache2.conf pour apache2 sous Ubuntu).</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
