From de6a0ffd0d763c6ea33c0dd6cb8d344266a2b801 Mon Sep 17 00:00:00 2001 From: alamin Date: Mon, 22 Dec 2025 14:49:19 +0000 Subject: [PATCH] Update 'imagick-script.txt' --- imagick-script.txt | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/imagick-script.txt b/imagick-script.txt index 0057884..05f8ac3 100644 --- a/imagick-script.txt +++ b/imagick-script.txt @@ -1,13 +1,13 @@ Part 1: Install the ImageMagick Package The core ImageMagick library needs to be installed on your operating system. The command varies slightly depending on your Linux distribution. For Ubuntu/Debian based systems -bash +```bash sudo apt update sudo apt install imagemagick imagemagick-doc - +``` Install the imagick PHP Extension - +```bash sudo apt install php-imagick -y sudo apt install php7.2-imagick -y sudo apt install php7.3-imagick -y @@ -15,27 +15,30 @@ sudo apt install php8.1-imagick -y sudo apt install php8.2-imagick -y sudo apt install php8.3-imagick -y sudo apt install php8.4-imagick -y - +``` Restart Services and Verify After installation and configuration, restart your web server and PHP-FPM services for the changes to take effect. For Apache: - bash +```bash sudo systemctl restart apache2 # or sudo systemctl restart httpd +``` For Nginx (using PHP-FPM): -bash +```bash sudo systemctl restart phpX.Y-fpm # e.g., sudo systemctl restart php8.2-fpm - + ``` Verification: Run the following command for each PHP version to confirm imagick is listed: -bash + +```bash php -m | grep imagick -# or use phpinfo() in a web script to see the 'imagick' section \ No newline at end of file +# or use phpinfo() in a web script to see the 'imagick' section +``` \ No newline at end of file