# HG changeset patch # User Sri Aspari # Date 1733370259 -25200 # Thu Dec 05 10:44:19 2024 +0700 # Node ID 951eba4b42a4ce9d74cebb75c749b02744caa9e2 # Parent 399ca2c0da153b264caf36eacb7c4bb9d5e428e2 new post: Install PHP on Debian diff --git a/content/logs/2024-12-05-php-debian.html b/content/logs/2024-12-05-php-debian.html new file mode 100644 --- /dev/null +++ b/content/logs/2024-12-05-php-debian.html @@ -0,0 +1,31 @@ +

Install PHP on Debian

+ +
+

This is just quick note about how to install PHP in debian using + deb.sury.org repository

+
+ + +
+

First, setup debian PHP repository using this command + +

# curl https://packages.sury.org/php/README.txt | sh
+ + Make sure you're login as root when running this command.

+
+ +
+

Now, install PHP and web server +

# apt install nginx php8.4-cli php8.4-fpm
+ + This command install nginx (web server), php, php-fpm, and php's base + extensions. If you need additionnal extensions you can install it with + apt install php[version]-[extension-name]. +

+ +

Please note that if you just install php8.4, it will + automatically install apache web server.

+
+ +debian +php