How to install Imagick on Ubuntu 16.04 LTS with XAMPP

Problems with the Linux version of XAMPP, questions, comments, and anything related.

How to install Imagick on Ubuntu 16.04 LTS with XAMPP

Postby ubuntuxampp » 05. December 2017 20:27


here's how I managed to add Imagick to XAMPP on fresh Ubuntu 16.04 LTS

Files I had to download:

I used this version of XAMPP
Code: Select all

Choose the version of PHP source code that matches the the version your XAMPP uses. In this case 7.1.11 = 7.1.11
Code: Select all

Code: Select all

Install these packages:
Code: Select all
sudo apt-get install php-pear
sudo apt-get install autoconf
sudo apt-get install libmagickwand-6.q16-dev

Extract the PHP source code to /opt/lampp/include/php - this folder wasn't on my pc. Probably because I installed XAMPP without 'developers files'. You might also have to change permissions in order to be able to copy something to /opt/lampp (or run
Code: Select all
sudo -i
to become root and then run
Code: Select all
to start the file manager with root rights and avoid changing permissions ;-)

Run these commands
Code: Select all
sudo -i
cd /opt/lampp/include/php/

Extract Imagick anywhere you want to - I used
Code: Select all

Code: Select all
cd /home/user/Downloads/imagick/imagick-3.4.3
sudo /opt/lampp/bin/phpize
./configure --with-php-config=/opt/lampp/bin/php-config
make install

Now add this line
Code: Select all
to /opt/lampp/etc/php.ini. I added it just above ; to line 1030

Start or restart XAMPP and you should see imagick in your PHP info


Other source that can help you

Enjoy :)
Posts: 1
Joined: 05. December 2017 18:53
XAMPP version: 7.1.1
Operating System: Ubuntu 16.04 LTS

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 4 guests