new post: Install PHP on Debian
1 files changed, 31 insertions(+), 0 deletions(-)

A => content/logs/2024-12-05-php-debian.html
A => content/logs/2024-12-05-php-debian.html +31 -0
@@ 0,0 1,31 @@ 
+<h1>Install PHP on Debian</h1>
+
+<section id="preamble">
+  <p>This is just quick note about how to install PHP in debian using
+    <a href="https://deb.sury.org/">deb.sury.org</a> repository</p>
+</section>
+
+
+<section id="setup-repo">
+  <p>First, setup debian PHP repository using this command
+
+    <pre><code># curl https://packages.sury.org/php/README.txt | sh</code></pre>
+
+    Make sure you're login as root when running this command.</p>
+</section>
+
+<section id="install">
+  <p>Now, install PHP and web server
+    <pre><code># apt install nginx php8.4-cli php8.4-fpm</code></pre>
+
+    This command install nginx (web server), php, php-fpm, and php's base
+    extensions. If you need additionnal extensions you can install it with
+    <code>apt install php[version]-[extension-name]</code>.
+  </p>
+
+  <p>Please note that if you just install <code>php8.4</code>, it will
+    automatically install apache web server.</p>
+</section>
+
+<tag>debian</tag>
+<tag>php</tag>