PHP拡張モジュール

OpenWrtのWordPressダッシュボードのRSSフィードが配信されていない
事に気づきました。サイトヘルスには何も表示されていなかったため、気づきませんでした。
RSS エラー XML or PCRE extensions not loaded!
となっています。
PHPの拡張モジュール php7-mod-xml php7-mod-simplexml php7-mod-xmlreaderをインストールしましたが、RSSエラーのままです。
Xサーバーではセキュリティのため、phpinfoを実行できませんが、次のPHPを実行することででPHP拡張モジュールを表示することができます。
<?php
print_r( get_loaded_extensions() )
?>
以下のPHP拡張モジュールが入っていました。

apcu,bcmath,bz2,calendar,cgi-fcgi,Core,ctype,curl,date,dba,dom,exif,fileinfo,filter,ftp,gettext,gd,gmp,hash,iconv,imagick,imap,intl,json,ldap,libxml,mcrypt,mbstring,mysqli,openssl,pcre,PDO,pdo_mysql,pdo_pgsql,pdo_sqlite,pgsql,posix,pspell,Phar,Reflection,session,shmop,SimpleXML,sockets,SPL,standard,soap,sockets,sqlite3,sysvmsg,sysvsem,sysvshm,tokenizer,wddx,xml,xmlreader,xmlrpc,xmlwriter,xsl,Zend OPcache,zip,zlib

OpenWrtでは現在以下のPHP拡張モジュールを入れています。

cgi-fcgi,Core,ctype,curl,date,dom,exif,fileinfo,filter,gd,hash,iconv,json,libxml,mbstring,mysqli,mysqlnd,openssl,pcre,posix,Reflection,SimpleXML,SPL,standard,XML,Zend OPcache,zip,zlib

差分は

apcu,bcmath,bz2,calendar,dba,ftp,gettxet,gmp,imagick,imap,intl,ldap,mcrypt,PDO,pdo_mysql,pdo_pgsql,pdo_sqlite,pgsql,pspell,Phar,session,shmop,soap,sockets,sqlite3,sysvmsg,sysvsem,sysvshm,tokenizer,xmlreader,xmlrpc,xmlwriter,xsl,wddx

以下は、OpenwrtのPHP7モジュール一覧です。。

php7-mod-bcmath – 7.4.9-1 – Bcmath shared module
php7-mod-calendar – 7.4.9-1 – Calendar shared module
php7-mod-ctype – 7.4.9-1 – Ctype shared module
php7-mod-curl – 7.4.9-1 – cURL shared module
php7-mod-dom – 7.4.9-1 – DOM shared module
php7-mod-exif – 7.4.9-1 – EXIF shared module
php7-mod-fileinfo – 7.4.9-1 – Fileinfo shared module
php7-mod-filter – 7.4.9-1 – Filter shared module
php7-mod-ftp – 7.4.9-1 – FTP shared module
php7-mod-gd – 7.4.9-1 – GD graphics shared module
php7-mod-gettext – 7.4.9-1 – Gettext shared module
php7-mod-gmp – 7.4.9-1 – GMP shared module
php7-mod-iconv – 7.4.9-1 – iConv shared module
php7-mod-imap – 7.4.9-1 – IMAP shared module
php7-mod-intl – 7.4.9-1 – Note that this package depends in ICU library which is built without data by default. This is to satisfy programs build and run depend encies but to keep the installed footprint small on the target system(s). Howeve r, the data is required to make the ICU library useful – and thus directly affec ts PHPs ICU extension, too – so consider to also select/install package 'icu-ful l-data’.
php7-mod-json – 7.4.9-1 – JSON shared module
php7-mod-ldap – 7.4.9-1 – LDAP shared module
php7-mod-mbstring – 7.4.9-1 – MBString shared module
php7-mod-mysqli – 7.4.9-1 – MySQL Improved Extension shared module
php7-mod-mysqlnd – 7.4.9-1 – MySQL Native Driver shared module
php7-mod-opcache – 7.4.9-1 – OPcache shared module
php7-mod-openssl – 7.4.9-1 – OpenSSL shared module
php7-mod-pcntl – 7.4.9-1 – PCNTL shared module
php7-mod-pdo – 7.4.9-1 – PHP Data Objects shared module
php7-mod-pdo-mysql – 7.4.9-1 – PDO driver for MySQL shared module
php7-mod-pdo-pgsql – 7.4.9-1 – PDO driver for PostgreSQL shared module
php7-mod-pdo-sqlite – 7.4.9-1 – PDO driver for SQLite 3.x shared module
php7-mod-pgsql – 7.4.9-1 – PostgreSQL shared module
php7-mod-phar – 7.4.9-1 – Phar Archives shared module
php7-mod-session – 7.4.9-1 – Session shared module
php7-mod-shmop – 7.4.9-1 – Shared Memory shared module
php7-mod-simplexml – 7.4.9-1 – SimpleXML shared module
php7-mod-snmp – 7.4.9-1 – SNMP shared module
php7-mod-soap – 7.4.9-1 – SOAP shared module
php7-mod-sockets – 7.4.9-1 – Sockets shared module
php7-mod-sqlite3 – 7.4.9-1 – SQLite3 shared module
php7-mod-sysvmsg – 7.4.9-1 – System V messages shared module
php7-mod-sysvsem – 7.4.9-1 – System V shared memory shared module
php7-mod-sysvshm – 7.4.9-1 – System V semaphore shared module
php7-mod-tokenizer – 7.4.9-1 – Tokenizer shared module
php7-mod-xml – 7.4.9-1 – XML shared module
php7-mod-xmlreader – 7.4.9-1 – XMLReader shared module
php7-mod-xmlwriter – 7.4.9-1 – XMLWriter shared module
php7-mod-zip – 7.4.9-1 – ZIP shared module

PHP拡張モジュール関連の不具合だと思いますが、もっと検証が必要そうです。

OpenWrt

Posted by taroumaru