There has been a critical error – Alpine, Nginx, MariaDB, PHP7
-
G’day,
I’m just starting to play with an Alpine Linux (latest) container on my Proxmox (latest) server instance. I want to run a few rather small WordPress site, and figured that as Alpine Linux was a really lightweight distro, that would be a good way to ensure I use no more resources than required.
So, I have worked out a procedure to get Nginx, MariaDB, PHP-7, Logrotate and Let’s Encrypt up and running, but am having issues with WordPress installing. I get the dreaded “There has been ac ritical error on this website” message and the following in the nginx/site_error.log:
Stack trace: #0 /var/www/site.org/wp-includes/blocks/archives.php(115): register_block_type_from_metadata() #1 /var/www/site.org/wp-includes/class-wp-hook.php(292): register_block_core_archives() #2 /var/www/site.org/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters() #3 /var/www/site.org/wp-includes/plugin.php(484): WP_Hook->do_action() #4 /var/www/site.org/wp-settings.php(560): do_action() #5 /var/www/site.org/wp-admin/setup-config.php(33): require('/var/www/site.org...') #6 {main} thrown in /var/www/site.org/wp-includes/blocks.php on line 203" while reading response header from upstream, client: 10.255.69.101, server: site.org, request: "GET /wp-admin/setup-config.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "site.org" 2021/06/16 19:00:17 [error] 702#702: *17 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function json_decode() in /var/www/site.org/wp-includes/blocks.php:203
I’m stumped at this point and really am unsure where to look next to see what I need to do to get this running…
This is the output from apk info:
alpine-baselayout alpine-keys ca-certificates-bundle libtls-standalone zlib scanelf libc-utils apk-tools busybox libcrypto1.1 libssl1.1 ssl_client alpine-conf busybox-suid busybox-initscripts alpine-base musl ifupdown-ng openrc musl-utils pcre nginx nginx-openrc php7-common argon2-libs ncurses-terminfo-base ncurses-libs libedit pcre2 xz-libs libxml2 php7 ca-certificates brotli-libs nghttp2-libs libcurl php7-curl php7-fpm libxau libbsd libxdmcp libxcb libx11 libxext libice libuuid libsm libxt libxpm libbz2 libpng freetype libjpeg-turbo libwebp php7-gd php7-openssl php7-mysqlnd php7-mysqli php7-opcache mariadb-common libaio libgcc linux-pam libstdc++ mariadb mariadb-openrc mariadb-client popt logrotate logrotate-openrc expat libffi gdbm readline sqlite-libs python3 py3-ordered-set py3-appdirs py3-parsing py3-six py3-packaging py3-setuptools py3-cparser py3-cffi py3-idna py3-asn1crypto py3-cryptography py3-openssl py3-josepy py3-pbr py3-mock py3-tz py3-pyrfc3339 py3-chardet py3-urllib3 py3-requests py3-requests-toolbelt py3-acme py3-configargparse py3-configobj py3-distro py3-distutils-extra py3-future py3-parsedatetime py3-zope-interface py3-zope-proxy py3-zope-deferredimport py3-zope-deprecation py3-zope-event py3-zope-hookable py3-zope-component certbot certbot-nginx icu-libs php7-intl oniguruma php7-mbstring php7-soap php7-xml php7-xmlrpc libzip php7-zip fcgi php7-cgi php7-ctype php7-dom libintl php7-gettext php7-iconv c-client php7-imap php7-json libsasl libldap php7-ldap libmcrypt php7-pecl-mcrypt php7-pdo php7-pdo_mysql php7-posix php7-session
- The topic ‘There has been a critical error – Alpine, Nginx, MariaDB, PHP7’ is closed to new replies.