Tiny Core Base > TCB Q&A Forum
cannot find xmlrpc.so when using php via apache
Stefann:
Hi,
Using TC-15,
loaded latest apache2.4 & php8.3
I copied usr/local/etc/php/php.ini-sample-8.0 to usr/local/etc/php/php.ini
When starting apache using: apachectl -k start
It gives a warning that xmlrpc.so cannot be found.
PHP Warning: PHP Startup: Unable to load dynamic library 'xmlrpc' (tried: /usr/local/lib/php/extensions/xmlrpc (/usr/local/lib/php/extensions/xmlrpc: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/xmlrpc.so (/usr/local/lib/php/extensions/xmlrpc.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
After checking the php.ini file I also installed libxml2.tcz however, I do not see that when checking the apps tool> onboot maintenance
>> so looks like that install is not really happening
I did search the file from root using: find -name xmlrpc.so
>>No results
At this moment it's not really a problem because it's a warning, not an error and I'm not using xml.
I think I could comment this out in the php.ini file. And maybe that is what I will endup doing anyway, but that of course does not really fix it.
So,... It's "annoying" to have something non-functional
I'm a bit out of ideas
Rich:
Hi Stefann
Maybe it's looking for libxmlrpc.so found in xmlrpc-c.tcz ?
--- Quote from: Stefann on August 10, 2024, 02:50:10 AM --- ... After checking the php.ini file I also installed libxml2.tcz however, I do not see that when checking the apps tool> onboot maintenance
>> so looks like that install is not really happening ...
--- End quote ---
Try this.
First, remove any possible failed/partial downloads:
--- Code: ---rm -f /etc/sysconfig/tcedir/optional/libxml2.tcz
rm -f /etc/sysconfig/tcedir/optional/liblzma.tcz
--- End code ---
Then, try installing again and see if any error messages pop up:
--- Code: ---tce-load -wi libxml2.tcz
--- End code ---
andyj:
Xmlrpc was removed from the standard PHP as of version 8.0. It's a bug in the sample file. I'll fix it the next time I update the PHP extension. In the mean time just remove references to it from the ini files.
Stefann:
--- Quote from: andyj on August 10, 2024, 09:07:44 AM ---Xmlrpc was removed from the standard PHP as of version 8.0. It's a bug in the sample file. I'll fix it the next time I update the PHP extension. In the mean time just remove references to it from the ini files.
--- End quote ---
Thanks,
did that and issue resolved.
Thanks!!!!!
--- Quote from: Rich on August 10, 2024, 07:55:56 AM ---Hi Stefann
Maybe it's looking for libxmlrpc.so found in xmlrpc-c.tcz ?
--- Quote from: Stefann on August 10, 2024, 02:50:10 AM --- ... After checking the php.ini file I also installed libxml2.tcz however, I do not see that when checking the apps tool> onboot maintenance
>> so looks like that install is not really happening ...
--- End quote ---
Try this.
First, remove any possible failed/partial downloads:
--- Code: ---rm -f /etc/sysconfig/tcedir/optional/libxml2.tcz
rm -f /etc/sysconfig/tcedir/optional/liblzma.tcz
--- End code ---
Then, try installing again and see if any error messages pop up:
--- Code: ---tce-load -wi libxml2.tcz
--- End code ---
--- End quote ---
Thanks,
At the end I decided NOT to remove those.
Because I found out that my earlier comment "that these were not loaded" was wrong.
When I was doing above php.ini edit I noticed that libxml2.tcz was prerequisite for a lot more functions so I concluded that it "may got loaded anyway" (otherwise I would have had much more errors) and I double checked.
I use Tiny Core Base, with the desktop environment and apps-browser with GUI.
After I installed libxml2.tcz yesterday I did not find it in the "onboot maintenance right-panel",
However... I noticed it IS present in the left-pane.
I'm very new to tiny core so I'm still learning. I guess the left pane includes all packages that got loaded because of a dependancy while the right pane only shows the ones deliberately selected.
So... I guess it's just present. No reason to hobby around.
==
Cool!
I basically have it working!
tiny core, vnc, ssh, samba, apache, php, gcc, libusb.
And,... I was able to compile my homecontrol application which runs on my test-computer (but still without I/O).
Next step will be to test on the target computer. That will probably be next weekend.
with all of above experience....
big KUDO'S to the development team.
Apart from some hicks merely related to learning curve it works like a charm.
I REALLY like the frugal approach: no unnecessary disk actions, OS stays very clean.
I REALLY like the *.tcz approach from the tce/ondemand folder: very clean, very minimal on storage.
And I REALLY like to topnotch uptodate linux & gcc version.
The clean approach ensures that the system will not get cluttered with additions.
Rich:
Hi Stefann
--- Quote from: Stefann on August 10, 2024, 10:43:25 AM --- ... I guess the left pane includes all packages that got loaded because of a dependancy while the right pane only shows the ones deliberately selected. ...
--- End quote ---
The right panel is what's listed in onboot.lst. Those packages, and their direct and
indirect dependencies get loaded when Tinycore boots up.
The left panel just lists all of the packages in your tce/ directory not explicitly listed
in your onboot.lst file.
If you want a list of which of your extensions are loaded:
--- Code: ---tce-status -i
--- End code ---
If you want a list of which of your extensions are not loaded:
--- Code: ---tce-status -u
--- End code ---
If you want something specific, you can search on a full or partial name:
--- Code: ---tce-status -i | grep xml2
--- End code ---
This will return all loaded packages with xml2 anywhere in their name.
The | symbol in front of grep is called a pipe. It's on the \ key.
Navigation
[0] Message Index
[#] Next page
Go to full version