<?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/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>Archives des lamp - La programmation sur le web</title>
	<atom:link href="https://programmation.surleweb-france.fr/tag/lamp/feed/" rel="self" type="application/rss+xml" />
	<link>https://programmation.surleweb-france.fr/tag/lamp/</link>
	<description>La programmation gratuite pour tous</description>
	<lastBuildDate>Tue, 08 Mar 2022 17:46:55 +0000</lastBuildDate>
	<language>fr-FR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2023/08/cropped-19518430-icone-de-programmation-pour-votre-site-web-mobile-presentation-et-conception-de-logo-gratuit-vectoriel.jpg?fit=32%2C32&#038;ssl=1</url>
	<title>Archives des lamp - La programmation sur le web</title>
	<link>https://programmation.surleweb-france.fr/tag/lamp/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">176210735</site>	<item>
		<title>Avec quoi créer son site</title>
		<link>https://programmation.surleweb-france.fr/avec-quoi-creer-son-site/</link>
					<comments>https://programmation.surleweb-france.fr/avec-quoi-creer-son-site/#respond</comments>
		
		<dc:creator><![CDATA[Zigomato]]></dc:creator>
		<pubDate>Sat, 16 May 2020 17:00:00 +0000</pubDate>
				<category><![CDATA[Développement Web]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[serveur]]></category>
		<category><![CDATA[site]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">https://programmation.surleweb-france.fr/?p=329</guid>

					<description><![CDATA[<p>Créer un site peut être facile encore faut-il savoir quoi utiliser, coder de bout en bout ou bien utiliser un CMS ?</p>
<p class="continue-reading-button"> <a class="continue-reading-link" href="https://programmation.surleweb-france.fr/avec-quoi-creer-son-site/">Continuer la lecture<i class="crycon-right-dir"></i></a></p>
<p>L’article <a href="https://programmation.surleweb-france.fr/avec-quoi-creer-son-site/">Avec quoi créer son site</a> est apparu en premier sur <a href="https://programmation.surleweb-france.fr">La programmation sur le web</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>On avance dans la série d&rsquo;article sur « <a rel="noreferrer noopener" href="https://programmation.surleweb-france.fr/comprendre-creer-site-internet/" target="_blank">Comprendre et créer son site</a>« . Je t&rsquo;invite d&rsquo;ailleurs à aller lire cette page, tu y apprendras ce que tu dois faire avant pour que tout soit prêt.</p>



<p>Tu auras le choix dans la manière dont tu veux créer ton site, tu pourras choisir :</p>



<ul class="wp-block-list"><li>de coder ton site ligne par ligne, cela te demandera beaucoup de connaissances que ce soit en PHP (ou Perl&#8230;), en javascript, en CSS. Pour un site statique, avec une présentation simple, cela peut être une bonne solution</li><li>d&rsquo;utiliser un <a href="https://www.journaldunet.fr/web-tech/dictionnaire-du-webmastering/1203349-cms-content-management-system-definition-traduction-et-acteurs/" target="_blank" rel="noreferrer noopener">CMS </a>tel que WordPress, l&rsquo;avantage est qu&rsquo;en quelques minutes, ton site peut être en ligne en prenant en compte les différents types de navigateur (ordinateur, tablette, téléphone) que les visiteurs utilisent</li></ul>



<p>Dans cet article, je te montrerai comment installer et utiliser WordPress qui sera installé sur ton serveur web tout frais (vu dans <a rel="noreferrer noopener" href="https://programmation.surleweb-france.fr/installer-serveur-web-complet/" target="_blank">cet article</a>).</p>



<h2 class="wp-block-heading">Installation de WordPress</h2>



<p>Une fois que ton serveur web est installé, je m&rsquo;appuie sur un LAMP (pour moi Linux, Apache2, MariaDB, PHP). L&rsquo;installation de WordPress est simple.</p>



<p>Je ferai une installation en ligne de commande.</p>



<h3 class="wp-block-heading">Création de la base de données et de son utilisateur</h3>



<p>WordPress utilise une base de données pour stocker la configuration de ton site, les différentes pages, les utilisateurs &#8230; En bref, tout le contenu de ton site. Tu auras donc besoin d&rsquo;une base avec son utilisateur. Dans ton terminal :</p>



<pre class="EnlighterJSRAW" data-enlighter-language="shell" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo mysql</pre>



<p>Ensuite, on crée la base et son utilisateur, en lui donnant les droits :</p>



<pre class="EnlighterJSRAW" data-enlighter-language="sql" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">CREATE DATABASE nom_base;
GRANT ALL PRIVILEGES ON nom_base.* TO 'utilisateur'@'localhost' IDENTIFIED BY 'mot_de_passe';
FLUSH  PRIVILEGES;
QUIT;</pre>



<p>Les apostrophes sont importantes.</p>



<h3 class="wp-block-heading">Mise en place de WordPress</h3>



<p>Maintenant que ta base et ton utilisateur est créé, passons à WordPress.</p>



<p>On commence par télécharger la dernière version de WordPress :</p>



<pre class="EnlighterJSRAW" data-enlighter-language="shell" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">wget https://fr.wordpress.org/wordpress-latest-fr_FR.zip</pre>



<p>On le décompresse et le place dans le dossier du serveur qui doit contenir le site :</p>



<pre class="EnlighterJSRAW" data-enlighter-language="shell" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo unzip wordpress-latest-fr_FR.zip -d /var/www</pre>



<p>Maintenant, on va donner les bons droits au dossier afin :</p>



<ul class="wp-block-list"><li>de limiter les actions des utilisateurs</li><li>s&rsquo;assurer que l&rsquo;installation via le navigateur fonctionne</li><li>les fichiers doivent être modifiés par le serveur (www-data)</li></ul>



<p>Dans le terminal, saisies :</p>



<pre class="EnlighterJSRAW" data-enlighter-language="shell" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo chown www-data:www-data /var/www/wordpress -R
sudo chmod -R -wx,u+rwX,g+rX,o+rX /var/www/wordpress</pre>



<p>Afin de modifier le nom de ton dossier qui contient ton site, actuellement le dossier se nomme <strong>wordpress</strong> :</p>



<pre class="EnlighterJSRAW" data-enlighter-language="shell" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo mv /var/www/wordpress /var/www/mon_site</pre>



<h3 class="wp-block-heading">Configuration du VirtualHost d&rsquo;Apache2</h3>



<p>Ecrire dans un nouveau fichier de configuration de virtual <strong>/etc/apache2/sites-available/mon_site.conf</strong> :</p>



<pre class="EnlighterJSRAW" data-enlighter-language="apache" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;VirtualHost *:80>
        ServerName mon_site
        DocumentRoot /var/www/mon_site
        &lt;Directory /var/www/mon_site>
                AllowOverride all
                Require all granted
        &lt;/Directory>
        ErrorLog /var/log/apache2/error.mon_site.log
        CustomLog /var/log/apache2/access.mon_site.log combined
&lt;/VirtualHost></pre>



<p>Maintenant, tu dois activer ce virtualhost :</p>



<pre class="EnlighterJSRAW" data-enlighter-language="shell" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo a2ensite mon_site.conf</pre>



<p>puis recharger le service :</p>



<pre class="EnlighterJSRAW" data-enlighter-language="shell" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo service apache2 reload</pre>



<h2 class="wp-block-heading">Conclusion</h2>



<p>Ton site est entièrement opérationnel. Abonnes-toi, je ferai une page sur l&rsquo;utilisation de WordPress.</p>
<p>L’article <a href="https://programmation.surleweb-france.fr/avec-quoi-creer-son-site/">Avec quoi créer son site</a> est apparu en premier sur <a href="https://programmation.surleweb-france.fr">La programmation sur le web</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://programmation.surleweb-france.fr/avec-quoi-creer-son-site/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">329</post-id>	</item>
	</channel>
</rss>
