Browse Source

Update 'imagick-script.txt'

master
alamin 2 months ago
parent
commit
de6a0ffd0d
  1. 19
      imagick-script.txt

19
imagick-script.txt

@ -1,13 +1,13 @@
Part 1: Install the ImageMagick Package 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. 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 For Ubuntu/Debian based systems
bash
```bash
sudo apt update sudo apt update
sudo apt install imagemagick imagemagick-doc sudo apt install imagemagick imagemagick-doc
```
Install the imagick PHP Extension Install the imagick PHP Extension
```bash
sudo apt install php-imagick -y sudo apt install php-imagick -y
sudo apt install php7.2-imagick -y sudo apt install php7.2-imagick -y
sudo apt install php7.3-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.2-imagick -y
sudo apt install php8.3-imagick -y sudo apt install php8.3-imagick -y
sudo apt install php8.4-imagick -y sudo apt install php8.4-imagick -y
```
Restart Services and Verify Restart Services and Verify
After installation and configuration, restart your web server and PHP-FPM services for the changes to take effect. After installation and configuration, restart your web server and PHP-FPM services for the changes to take effect.
For Apache: For Apache:
bash
```bash
sudo systemctl restart apache2 # or sudo systemctl restart httpd sudo systemctl restart apache2 # or sudo systemctl restart httpd
```
For Nginx (using PHP-FPM): For Nginx (using PHP-FPM):
bash
```bash
sudo systemctl restart phpX.Y-fpm # e.g., sudo systemctl restart php8.2-fpm sudo systemctl restart phpX.Y-fpm # e.g., sudo systemctl restart php8.2-fpm
```
Verification: Verification:
Run the following command for each PHP version to confirm imagick is listed: Run the following command for each PHP version to confirm imagick is listed:
bash
```bash
php -m | grep imagick php -m | grep imagick
# or use phpinfo() in a web script to see the 'imagick' section # or use phpinfo() in a web script to see the 'imagick' section
```
Loading…
Cancel
Save