[SOLVED] Internal server error after updates

hey guys, I’ve been trying to install Imagick as suggested on the overview page of Nextcloud.
I use Nextcloud v15 on FreeNAS and I didn’t know which Imagick exactly to install so I figured I try and started with

pkg install php73-pecl-imagick

after a restart of the jail, the following error occured:

Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the webserver log.

since I can’t access it anymore, it’s hard for me to get all the info. any idea where I can find the webserver log?

also I’m pretty sure the problem lies within the update that was made on the Apache package … is there anyway to roll back to a previous issue or figure out which one was installed before?

thanks for your help guys and BR

Looks like two separate issues to me. I don’t see how imagick could break your server access. This PHP extension only creates and modify images using the ImageMagick library. So, plenty of questions for you:

  1. Which version of PHP are you running?
  2. What is the web server you are using (logs path will vary…)?
  3. Did you install it manually?
  4. If so, have you looked in your history to see which version was installed?
  5. The following command did not work when trying to install Imagick?:
sudo apt-get install php-imagick
  1. What is the output of:
php -m | grep imagick

thanks for the fast answer

I’m a few days away but I’ll look into it as soon as I’m back!

BR, Silvan

so first of all, I’m using FreeNAS, so apt-get is not available but pkg

output of php -m | grep imagick is as follows:

[root@nextcloud ~]# php -m | grep imagick

PHP Warning: Failed loading Zend extension ‘opcache.so’ (tried: /usr/local/lib/php/20180731/opcache.so (Cannot open “/usr/local/lib/php/20180731/opcache.so”),/usr/local/lib/php/20180731/opcache.so.so (Cannot open “/usr/local/lib/php/20180731/opcache.so.so”)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘apcu.so’ (tried: /usr/local/lib/php/20180731/apcu.so (Cannot open “/usr/local/lib/php/20180731/apcu.so”), /usr/local/lib/php/20180731/apcu.so.so (Cannot open “/usr/local/lib/php/20180731/apcu.so.so”)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘bz2.so’ (tried: /usr/local/lib/php/20180731/bz2.so (Cannot open “/usr/local/lib/php/20180731/bz2.so”), /usr/local/lib/php/20180731/bz2.so.so (Cannot open “/usr/local/lib/php/20180731/bz2.so.so”)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘ctype.so’ (tried: /usr/local/lib/php/20180731/ctype.so (Cannot open “/usr/local/lib/php/20180731/ctype.so”), /usr/local/lib/php/20180731/ctype.so.so (Cannot open “/usr/local/lib/php/20180731/ctype.so.so”)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘exif.so’ (tried: /usr/local/lib/php/20180731/exif.so (Cannot open “/usr/local/lib/php/20180731/exif.so”), /usr/local/lib/php/20180731/exif.so.so (Cannot open “/usr/local/lib/php/20180731/exif.so.so”)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘fileinfo.so’ (tried:/usr/local/lib/php/20180731/fileinfo.so (Cannot open “/usr/local/lib/php/20180731/fileinfo.so”), /usr/local/lib/php/20180731/fileinfo.so.so (Cannot open “/usr/local/lib/php/20180731/fileinfo.so.so”)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘filter.so’ (tried: /usr/local/lib/php/20180731/filter.so (Cannot open “/usr/local/lib/php/20180731/filter.so”), /usr/local/lib/php/20180731/filter.so.so (Cannot open “/usr/local/lib/php/20180731/filter.so.so”)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘ftp.so’ (tried: /usr/local/lib/php/20180731/ftp.so (Cannot open “/usr/local/lib/php/20180731/ftp.so”), /usr/local/lib/php/20180731/ftp.so.so (Cannot open “/usr/local/lib/php/20180731/ftp.so.so”)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘hash.so’ (tried: /usr/local/lib/php/20180731/hash.so (Cannot open “/usr/local/lib/php/20180731/hash.so”), /usr/local/lib/php/20180731/hash.so.so (Cannot open “/usr/local/lib/php/20180731/hash.so.so”)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘imap.so’ (tried: /usr/local/lib/php/20180731/imap.so (Cannot open “/usr/local/lib/php/20180731/imap.so”), /usr/local/lib/php/20180731/imap.so.so (Cannot open “/usr/local/lib/php/20180731/imap.so.so”)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘intl.so’ (tried: /usr/local/lib/php/20180731/intl.so (Cannot open “/usr/local/lib/php/20180731/intl.so”), /usr/local/lib/php/20180731/intl.so.so (Cannot open “/usr/local/lib/php/20180731/intl.so.so”)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘json.so’ (tried: /usr/local/lib/php/20180731/json.so (Cannot open “/usr/local/lib/php/20180731/json.so”), /usr/local/lib/php/20180731/json.so.so (Cannot open “/usr/local/lib/php/20180731/json.so.so”)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘ldap.so’ (tried: /usr/local/lib/php/20180731/ldap.so (Cannot open “/usr/local/lib/php/20180731/ldap.so”), /usr/local/lib/php/20180731/ldap.so.so (Cannot open “/usr/local/lib/php/20180731/ldap.so.so”)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘mbstring.so’ (tried:/usr/local/lib/php/20180731/mbstring.so (Cannot open “/usr/local/lib/php/20180731/mbstring.so”), /usr/local/lib/php/20180731/mbstring.so.so (Cannot open “/usr/local/lib/php/20180731/mbstring.so.so”)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘mysqli.so’ (tried: /usr/local/lib/php/20180731/mysqli.so (Cannot open “/usr/local/lib/php/20180731/mysqli.so”), /usr/local/lib/php/20180731/mysqli.so.so (Cannot open “/usr/local/lib/php/20180731/mysqli.so.so”)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘openssl.so’ (tried: /usr/local/lib/php/20180731/openssl.so (Cannot open “/usr/local/lib/php/20180731/openssl.so”), /usr/local/lib/php/20180731/openssl.so.so (Cannot open “/usr/local/lib/php/20180731/openssl.so.so”)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘pcntl.so’ (tried: /usr/local/lib/php/20180731/pcntl.so (Cannot open “/usr/local/lib/php/20180731/pcntl.so”), /usr/local/lib/php/20180731/pcntl.so.so (Cannot open “/usr/local/lib/php/20180731/pcntl.so.so”)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘pdo.so’ (tried: /usr/local/lib/php/20180731/pdo.so (Cannot open “/usr/local/lib/php/20180731/pdo.so”), /usr/local/lib/php/20180731/pdo.so.so (Cannot open “/usr/local/lib/php/20180731/pdo.so.so”)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘posix.so’ (tried: /usr/local/lib/php/20180731/posix.so (Cannot open “/usr/local/lib/php/20180731/posix.so”), /usr/local/lib/php/20180731/posix.so.so (Cannot open “/usr/local/lib/php/20180731/posix.so.so”)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘zip.so’ (tried: /usr/local/lib/php/20180731/zip.so (Cannot open “/usr/local/lib/php/20180731/zip.so”), /usr/local/lib/php/20180731/zip.so.so (Cannot open “/usr/local/lib/php/20180731/zip.so.so”)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘pdo_mysql.so’ (tried: /usr/local/lib/php/20180731/pdo_mysql.so (Cannot open “/usr/local/lib/php/20180731/pdo_mysql.so”), /usr/local/lib/php/20180731/pdo_mysql.so.so (Cannot open “/usr/local/lib/php/20180731/pdo_mysql.so.so”)) in Unknown on line 0
imagick

php version I’m not sure as I really don’t know much about FreeNAS / FreeBSD architechture … webserver is apache

ImageMagick6-nox11-6.9.10.22_1,1 >
apache24-2.4.39 >

does that help you?

I’m pretty sure everything broke down as a new apache version got installed while installing Imagick …

anyone any idea at all? I’d really appreciate it :slight_smile:

well it works again … I re-installed all the packages from danb35’s script, i.e.

“pkgs”:[
“nano”,“curl”,“sudo”,“redis”,“php72-ctype”,
“php72-dom”,“php72-gd”,“php72-iconv”,“php72-json”,“php72-mbstring”,
“php72-posix”,“php72-simplexml”,“php72-xmlreader”,“php72-xmlwriter”,
“php72-zip”,“php72-zlib”,“php72-hash”,“php72-xml”,
“php72-session”,“php72-wddx”,“php72-xsl”,“php72-filter”,
“php72-curl”,“php72-fileinfo”,“php72-bz2”,“php72-intl”,“php72-openssl”,
“php72-ldap”,“php72-ftp”,“php72-imap”,“php72-exif”,“php72-gmp”,
“php72-memcache”,“php72-opcache”,“php72-pcntl”, “php72-pecl-imagick”, “php72”,“bash”,“perl5”,
“p5-Locale-gettext”,“help2man”,“texinfo”,“m4”,“autoconf”,“socat”,“git”,“apache24”

and voilà …

thanks for the help braka47!

sorry, wasnt aware of pkg for freenas. doesnt know anything about freenas. glad to hear that its working now.

to make sure I understand correctly, you reinstalled all the needed php packages and it fixed your internal server error?

got the same problem, I know my way around Linux but I never took my time to do the same for FreeBSD

yeah … somehow when I installed the php imagick package it seemed to have removed one of them …

anyway, reinstalled and worked

1 Like