Hello,
i'm on master r13583 (based on hnyman's build)
i installed nginx, and it works good
then i added php7-fpm, and also this is working, with default config.
The problems come when i try adding some modules.
I have now this startup error adding the DOM pagkage
[30-Aug-2020 09:52:33] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library 'dom.so' (tried: /usr/lib/php/dom.so (Error relocating /usr/lib/php/dom.so: php_libxml_node_decrement_resource: symbol not found), /usr/lib/php/dom.so.so (Error loading shared library /usr/lib/php/dom.so.so: No such file or directory)) in Unknown on line 0
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library 'dom.so' (tried: /usr/lib/php/dom.so (Error relocating /usr/lib/php/dom.so: php_libxml_node_decrement_resource: symbol not found), /usr/lib/php/dom.so.so (Error loading shared library /usr/lib/php/dom.so.so: No such file or directory)) in <b>Unknown</b> on line <b>0</b><br />
[30-Aug-2020 09:52:33] NOTICE: PHP message: PHP Warning: Cannot load module 'xml' because required module 'libxml' is not loaded in Unknown on line 0
<br />
<b>Warning</b>: Cannot load module 'xml' because required module 'libxml' is not loaded in <b>Unknown</b> on line <b>0</b><br />
and i have no idea where this comes from and how to debug this further.. any help?
the content of the lib folder is this:
/usr/lib/php# ls
curl.so dom.so gd.so mbstring.so pdo.so sqlite3.so xml.so zip.so
i just upgraded to SNAPSHOT r14522, hoping this would fix something.
nothing, still all broken with added modules.
am i missing something? anyone using php modules with success?
thanks
root@RUTTO:/usr/lib/php# /etc/init.d/php7-fpm restart
[19-Sep-2020 10:05:30] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library 'dom.so' (tried: /usr/lib/php/dom.so (Error relocating /usr/lib/php/dom.so: php_libxml_node_decrement_resource: symbol not found), /usr/lib/php/dom.so.so (Error relocating /usr/lib/php/dom.so.so: php_libxml_node_decrement_resource: symbol not found)) in Unknown on line 0
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library 'dom.so' (tried: /usr/lib/php/dom.so (Error relocating /usr/lib/php/dom.so: php_libxml_node_decrement_resource: symbol not found), /usr/lib/php/dom.so.so (Error relocating /usr/lib/php/dom.so.so: php_libxml_node_decrement_resource: symbol not found)) in <b>Unknown</b> on line <b>0</b><br />
[19-Sep-2020 10:05:30] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library 'simplexml.so' (tried: /usr/lib/php/simplexml.so (Error relocating /usr/lib/php/simplexml.so: php_libxml_node_decrement_resource: symbol not found), /usr/lib/php/simplexml.so.so (Error loading shared library /usr/lib/php/simplexml.so.so: No such file or directory)) in Unknown on line 0
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library 'simplexml.so' (tried: /usr/lib/php/simplexml.so (Error relocating /usr/lib/php/simplexml.so: php_libxml_node_decrement_resource: symbol not found), /usr/lib/php/simplexml.so.so (Error loading shared library /usr/lib/php/simplexml.so.so: No such file or directory)) in <b>Unknown</b> on line <b>0</b><br />
[19-Sep-2020 10:05:30] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library 'xmlreader.so' (tried: /usr/lib/php/xmlreader.so (Error relocating /usr/lib/php/xmlreader.so: php_dom_create_object: symbol not found), /usr/lib/php/xmlreader.so.so (Error loading shared library /usr/lib/php/xmlreader.so.so: No such file or directory)) in Unknown on line 0
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library 'xmlreader.so' (tried: /usr/lib/php/xmlreader.so (Error relocating /usr/lib/php/xmlreader.so: php_dom_create_object: symbol not found), /usr/lib/php/xmlreader.so.so (Error loading shared library /usr/lib/php/xmlreader.so.so: No such file or directory)) in <b>Unknown</b> on line <b>0</b><br />
[19-Sep-2020 10:05:30] NOTICE: PHP message: PHP Warning: Cannot load module 'xml' because required module 'libxml' is not loaded in Unknown on line 0
<br />
<b>Warning</b>: Cannot load module 'xml' because required module 'libxml' is not loaded in <b>Unknown</b> on line <b>0</b><br />
hello again,
so i tried to get thos modules already built inside the image.
i get an error when i try to add the DOM module to my image, and the error is:
configure: error: DOM extension requires LIBXML extension, add --with-libxml
now, the libxml2 is SELECTED
i also tried adding php7 mods:
xml
simplexml
xmlreader
xmlwriter
same error always
then i tried adding a "different" php than the FPM i use and.. magic, a new menu item for libxml appeared
i don't know if this is correct, but it seams to work. probably also php-fpm should trigger the libxml menu..
but now, started back the system, opkg shows me only the already installed php packages and nothing more
why the hell??
root@RUTTO:/mnt/sda1/web/cms/inc/core# opkg update
Downloading https://downloads.openwrt.org/snapshots/targets/ipq806x/generic/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading https://downloads.openwrt.org/snapshots/targets/ipq806x/generic/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading https://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/base/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading https://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/luci/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading https://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading https://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/routing/Packages.sig
Signature check passed.
root@RUTTO:/mnt/sda1/web/cms/inc/core# opkg list | grep -e php7
php7 - 7.4.10-1
php7-cgi - 7.4.10-1
php7-cli - 7.4.10-1
php7-fastcgi - 7.4.10-1
php7-fpm - 7.4.10-1
php7-mod-curl - 7.4.10-1
php7-mod-dom - 7.4.10-1
php7-mod-gd - 7.4.10-1
php7-mod-mbstring - 7.4.10-1
php7-mod-openssl - 7.4.10-1
php7-mod-pdo - 7.4.10-1
php7-mod-session - 7.4.10-1
php7-mod-sqlite3 - 7.4.10-1
php7-mod-zip - 7.4.10-1
root@RUTTO:/mnt/sda1/web/cms/inc/core# opkg install php7-mod-pdo-sqlite
Unknown package 'php7-mod-pdo-sqlite'.
Collected errors:
* opkg_install_cmd: Cannot install package php7-mod-pdo-sqlite.
https://github.com/openwrt/packages/blob/master/lang/php7/Makefile#L455-L456
However, I don't think that OpenWrt is a good choice for web-hosting/development.
You should be able to achieve your goal much simpler with a general-purpose distribution.
Use virtualization if there's no suitable hardware to install/run it.
hello,
i'm just testing it since it is supported.. why not?
but this does not explain why i can't have libxml with php7-fpm (if not changing makefile, ok)
or why i can no more see php packages in opkg.. probably i should report directly in github
maybe your out of space or other disk-path issue... the packages are ok here (snapshot) and the error on your top post is a common one... ( been around for 1year + ) when php.ini is not setup right...
that said... i've never used fpm but i'm doubting that's the issue...
to have libxml, you can't have just php7-fpm, you also need to take cgi or cli (i got cli) and select the libxml option
this done, all the modules built work flawlessly
i have not understood why i can no longer see any php7-mod package. @tmomas do you mean their build could have failed for everyone? i just used them yesterday.. i'll wait tomorrow..
thanks all, next fight will be installing flask-ask under python