By Adam
HEIC support will not work on Nextcloud. I followed the tutorial for deploying a nextcloud server on an Ubuntu 18.04 droplet. Everything works well; I can access it through the web and the app. The functonality is there, aside from one issue. I cannot get the HEIC support to work. I keep getting the error “the library imagick is not available”. I found a few other tutorials and tried to install, reinstall and update imagick. I thought it went fine. When I do the GREP command it shows it there. The last step appears to be my issue. I cannot restart apache2. It says there is no service available. Any help is greatly appreciated.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello, @adamSnorkler
Have you completed the initial server configuration by following this tutorial?
You can also check on the status of the apache2 service using systemctl:
- sudo systemctl status apache2
The same article covers the PHP installation, but you can also check articles like:
Have you installed Imagick as PHP extension during the PHP installation? What happens when you execute the following commands on the server?
- php -i | grep -i imagick
- php -m | grep imagick
Can you share the output? Also what you can do is to create an info.php file. You can create a file named info.php (the name doesn’t really matter) and put the following content in the file:
- <?php
- phpinfo();
You can then check which is the configuration file - php.ini that is currently used and so we can edit it. You can also check this with the PHP -i command again:
- php -i | grep -i php.ini
Then you can edit the listed php.ini and add the following line:
extension=imagick
Note that this line can already exist there but might be commented out, e.g listed like this:
;extension=imagick
If that is the case just remove the ; and save the php.ini file.
Once this is done you can restart the Apache server and check again.
- sudo service apache2 restart
Hope that this helps! Regards, Alex
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.