{"id":24750,"date":"2024-11-14T10:00:00","date_gmt":"2024-11-14T09:00:00","guid":{"rendered":"https:\/\/monraspberry.com\/?p=24750"},"modified":"2024-11-04T12:09:17","modified_gmt":"2024-11-04T11:09:17","slug":"creer-un-site-wordpress-sur-raspberry-pi","status":"publish","type":"post","link":"https:\/\/monraspberry.com\/es\/creer-un-site-wordpress-sur-raspberry-pi\/","title":{"rendered":"Cr\u00e9er un site WordPress sur Raspberry Pi"},"content":{"rendered":"<p>Cr\u00e9er un site WordPress sur un Raspberry Pi est une solution \u00e9conomique et \u00e9ducative pour h\u00e9berger votre propre site web. Ce guide d\u00e9taill\u00e9 vous accompagnera pas \u00e0 pas dans l&#8217;installation et la configuration de WordPress sur votre Raspberry Pi.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Pr\u00e9requis<\/h2>\n\n\n\n<p>Avant de commencer, assurez-vous de disposer des \u00e9l\u00e9ments suivants :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Raspberry Pi<\/strong> (mod\u00e8le 3 ou sup\u00e9rieur recommand\u00e9)<\/li>\n\n\n\n<li><strong>tarjeta microSD<\/strong> (16 Go minimum)<\/li>\n\n\n\n<li><strong>Alimentation appropri\u00e9e<\/strong> pour le Raspberry Pi<\/li>\n\n\n\n<li><strong>Conexi\u00f3n a Internet<\/strong><\/li>\n\n\n\n<li><strong>Teclado y rat\u00f3n<\/strong><\/li>\n\n\n\n<li><strong>Pantalla<\/strong><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u00c9tape 1 : Installation de Raspberry Pi OS<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>T\u00e9l\u00e9chargez Raspberry Pi Imager<\/strong> depuis le site officiel : <a>Raspberry Pi Imager<\/a>.<\/li>\n\n\n\n<li><strong>Installez Raspberry Pi OS<\/strong> sur la carte microSD en utilisant Raspberry Pi Imager.<\/li>\n\n\n\n<li><strong>Ins\u00e9rez la carte microSD<\/strong> dans le Raspberry Pi, connectez le clavier, la souris, l&#8217;\u00e9cran et l&#8217;alimentation.<\/li>\n\n\n\n<li><strong>D\u00e9marrez le Raspberry Pi<\/strong> et suivez les instructions \u00e0 l&#8217;\u00e9cran pour la configuration initiale.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">\u00c9tape 2 : Mise \u00e0 jour du syst\u00e8me<\/h2>\n\n\n\n<p>Ouvrez le terminal et ex\u00e9cutez les commandes suivantes pour mettre \u00e0 jour le syst\u00e8me :<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo apt update\nsudo apt upgrade -y\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">\u00c9tape 3 : Installation du serveur web Apache<\/h2>\n\n\n\n<p>Installez Apache en ex\u00e9cutant la commande suivante :<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo apt install apache2 -y\n<\/pre><\/div>\n\n\n<p>V\u00e9rifiez le bon fonctionnement en entrant l&#8217;adresse IP de votre Raspberry Pi dans un navigateur web. Vous devriez voir la page par d\u00e9faut d&#8217;Apache.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u00c9tape 4 : Installation de PHP<\/h2>\n\n\n\n<p>Installez PHP et les modules n\u00e9cessaires avec la commande suivante :<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo apt install php libapache2-mod-php php-mysql -y\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">\u00c9tape 5 : Installation de MariaDB<\/h2>\n\n\n\n<p>Installez le syst\u00e8me de gestion de bases de donn\u00e9es MariaDB :<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo apt install mariadb-server -y\n<\/pre><\/div>\n\n\n<p>S\u00e9curisez l&#8217;installation de MariaDB en ex\u00e9cutant :<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo mysql_secure_installation\n<\/pre><\/div>\n\n\n<p>Suivez les instructions \u00e0 l&#8217;\u00e9cran pour d\u00e9finir un mot de passe root et s\u00e9curiser votre installation.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u00c9tape 6 : Cr\u00e9ation de la base de donn\u00e9es WordPress<\/h2>\n\n\n\n<p>Connectez-vous \u00e0 MariaDB :<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo mysql -u root -p\n<\/pre><\/div>\n\n\n<p>Cr\u00e9ez une base de donn\u00e9es et un utilisateur pour WordPress :<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nCREATE DATABASE wordpress;\nCREATE USER &#039;wpuser&#039;@&#039;localhost&#039; IDENTIFIED BY &#039;votre_mot_de_passe&#039;;\nGRANT ALL PRIVILEGES ON wordpress.* TO &#039;wpuser&#039;@&#039;localhost&#039;;\nFLUSH PRIVILEGES;\nEXIT;\n<\/pre><\/div>\n\n\n<p>Remplacez <code>'votre_mot_de_passe'<\/code> par un mot de passe s\u00e9curis\u00e9.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u00c9tape 7 : T\u00e9l\u00e9chargement et installation de WordPress<\/h2>\n\n\n\n<p>T\u00e9l\u00e9chargez la derni\u00e8re version de WordPress :<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><\/li>\n<\/ol>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nwget https:\/\/wordpress.org\/latest.tar.gz\n<\/pre><\/div>\n\n\n<p>Extrayez l&#8217;archive :<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ntar xzf latest.tar.gz\n<\/pre><\/div>\n\n\n<p>D\u00e9placez les fichiers dans le r\u00e9pertoire web :<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo mv wordpress\/* \/var\/www\/html\/\n<\/pre><\/div>\n\n\n<p>Attribuez les permissions appropri\u00e9es :<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo chown -R www-data:www-data \/var\/www\/html\/\nsudo chmod -R 755 \/var\/www\/html\/\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">\u00c9tape 8 : Configuration de WordPress<\/h2>\n\n\n\n<p>Renommez le fichier de configuration :<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo mv \/var\/www\/html\/wp-config-sample.php \/var\/www\/html\/wp-config.php\n<\/pre><\/div>\n\n\n<ol class=\"wp-block-list\">\n<li><\/li>\n<\/ol>\n\n\n\n<p>\u00c9ditez le fichier de configuration :<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo nano \/var\/www\/html\/wp-config.php\n<\/pre><\/div>\n\n\n<p>Modifiez les lignes suivantes avec les informations de votre base de donn\u00e9es :<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ndefine(&#039;DB_NAME&#039;, &#039;wordpress&#039;);\ndefine(&#039;DB_USER&#039;, &#039;wpuser&#039;);\ndefine(&#039;DB_PASSWORD&#039;, &#039;votre_mot_de_passe&#039;);\ndefine(&#039;DB_HOST&#039;, &#039;localhost&#039;);\n<\/pre><\/div>\n\n\n<p>Enregistrez et fermez le fichier.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u00c9tape 9 : Finalisation de l&#8217;installation<\/h2>\n\n\n\n<p>Ouvrez un navigateur web et acc\u00e9dez \u00e0 l&#8217;adresse IP de votre Raspberry Pi. Suivez les instructions \u00e0 l&#8217;\u00e9cran pour terminer l&#8217;installation de WordPress.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusi\u00f3n<\/h2>\n\n\n\n<p>Vous avez maintenant un site WordPress fonctionnel h\u00e9berg\u00e9 sur votre Raspberry Pi. Cette configuration offre une solution \u00e9conomique pour h\u00e9berger un site web personnel ou pour des projets de d\u00e9veloppement.<\/p>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>Apprenez \u00e0 installer et configurer WordPress sur un Raspberry Pi avec ce guide d\u00e9taill\u00e9 pour cr\u00e9er votre propre site web \u00e9conomique.<\/p>","protected":false},"author":1,"featured_media":24753,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[308],"tags":[],"class_list":["post-24750","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutos"],"featured_image_src":{"landsacpe":["https:\/\/monraspberry.com\/wp-content\/uploads\/2024\/11\/DALL\u00b7E-2024-11-04-12.01.15-A-minimalistic-and-clean-illustration-representing-a-Raspberry-Pi-setup-for-hosting-a-WordPress-website.-The-design-should-show-a-Raspberry-Pi-next-to.webp",779,445,false],"list":["https:\/\/monraspberry.com\/wp-content\/uploads\/2024\/11\/DALL\u00b7E-2024-11-04-12.01.15-A-minimalistic-and-clean-illustration-representing-a-Raspberry-Pi-setup-for-hosting-a-WordPress-website.-The-design-should-show-a-Raspberry-Pi-next-to.webp",463,265,false],"medium":["https:\/\/monraspberry.com\/wp-content\/uploads\/2024\/11\/DALL\u00b7E-2024-11-04-12.01.15-A-minimalistic-and-clean-illustration-representing-a-Raspberry-Pi-setup-for-hosting-a-WordPress-website.-The-design-should-show-a-Raspberry-Pi-next-to-300x171.webp",300,171,true],"full":["https:\/\/monraspberry.com\/wp-content\/uploads\/2024\/11\/DALL\u00b7E-2024-11-04-12.01.15-A-minimalistic-and-clean-illustration-representing-a-Raspberry-Pi-setup-for-hosting-a-WordPress-website.-The-design-should-show-a-Raspberry-Pi-next-to.webp",1792,1024,false]},"jetpack_featured_media_url":"https:\/\/monraspberry.com\/wp-content\/uploads\/2024\/11\/DALL\u00b7E-2024-11-04-12.01.15-A-minimalistic-and-clean-illustration-representing-a-Raspberry-Pi-setup-for-hosting-a-WordPress-website.-The-design-should-show-a-Raspberry-Pi-next-to.webp","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/monraspberry.com\/es\/wp-json\/wp\/v2\/posts\/24750","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monraspberry.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/monraspberry.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/monraspberry.com\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/monraspberry.com\/es\/wp-json\/wp\/v2\/comments?post=24750"}],"version-history":[{"count":0,"href":"https:\/\/monraspberry.com\/es\/wp-json\/wp\/v2\/posts\/24750\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/monraspberry.com\/es\/wp-json\/wp\/v2\/media\/24753"}],"wp:attachment":[{"href":"https:\/\/monraspberry.com\/es\/wp-json\/wp\/v2\/media?parent=24750"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/monraspberry.com\/es\/wp-json\/wp\/v2\/categories?post=24750"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/monraspberry.com\/es\/wp-json\/wp\/v2\/tags?post=24750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}