WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: cannot find xmlrpc.so when using php via apache  (Read 551 times)

Offline Stefann

  • Jr. Member
  • **
  • Posts: 78
cannot find xmlrpc.so when using php via apache
« on: August 10, 2024, 02:50:10 AM »
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



Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11576
Re: cannot find xmlrpc.so when using php via apache
« Reply #1 on: August 10, 2024, 07:55:56 AM »
Hi Stefann
Maybe it's looking for  libxmlrpc.so  found in  xmlrpc-c.tcz ?

... 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 ...
Try this.

First, remove any possible failed/partial downloads:
Code: [Select]
rm -f /etc/sysconfig/tcedir/optional/libxml2.tcz
rm -f /etc/sysconfig/tcedir/optional/liblzma.tcz

Then, try installing again and see if any error messages pop up:
Code: [Select]
tce-load -wi libxml2.tcz

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: cannot find xmlrpc.so when using php via apache
« Reply #2 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.

Offline Stefann

  • Jr. Member
  • **
  • Posts: 78
Re: cannot find xmlrpc.so when using php via apache
« Reply #3 on: August 10, 2024, 10:43:25 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.
Thanks,
did that and issue resolved.

Thanks!!!!!


Hi Stefann
Maybe it's looking for  libxmlrpc.so  found in  xmlrpc-c.tcz ?

... 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 ...
Try this.

First, remove any possible failed/partial downloads:
Code: [Select]
rm -f /etc/sysconfig/tcedir/optional/libxml2.tcz
rm -f /etc/sysconfig/tcedir/optional/liblzma.tcz

Then, try installing again and see if any error messages pop up:
Code: [Select]
tce-load -wi libxml2.tcz
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.
« Last Edit: August 10, 2024, 10:47:30 AM by Stefann »

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11576
Re: cannot find xmlrpc.so when using php via apache
« Reply #4 on: August 10, 2024, 02:20:30 PM »
Hi Stefann
... 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. ...
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: [Select]
tce-status -i
If you want a list of which of your extensions are not loaded:
Code: [Select]
tce-status -u
If you want something specific, you can search on a full or partial name:
Code: [Select]
tce-status -i | grep xml2This 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.

Offline Stefann

  • Jr. Member
  • **
  • Posts: 78
Re: cannot find xmlrpc.so when using php via apache
« Reply #5 on: August 11, 2024, 01:28:58 AM »
Hi Stefann
... 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. ...
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: [Select]
tce-status -i
If you want a list of which of your extensions are not loaded:
Code: [Select]
tce-status -u
If you want something specific, you can search on a full or partial name:
Code: [Select]
tce-status -i | grep xml2This 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.
Thanks,
That helped
I found "not loaded extensions" that I thought I had deleted but in fact I only had removed from the onboot list.
> caused by misunderstanding the delete process > so now I understand  :D

And... But... with that said....
how could I have know about this command? And more... "how can/could I have known the meaning of the option arguments"?
I did my reading duty but was not really able to find it.

Note,
The mode of operation I'm hunting:
- Use Tiny Core Base (not plus, not micro)
- operate headless by vnc, ssh & samba from my MacBook.
- Boot with desktop and VNC for maintenance purposes. That allows to use the GUI on apps tool, control panel and tc-install (for making backup USB's). These are "less used" essentials that require quite precise operation for which I'm very happy visual tools exist.
- Boot in text mode for day-to-day use. Use ssh to control compiler, start/stop application, nano for small config edits, basic command line use. Use samba to have all files available as network drive on my MacBook. Do all source file editing with text editor on MacBook.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11576
Re: cannot find xmlrpc.so when using php via apache
« Reply #6 on: August 11, 2024, 11:07:15 AM »
Hi Stefann
... how could I have know about this command? And more... "how can/could I have known the meaning of the option arguments"? ...

A lot of the Tinycore specific commands are scripts and most can be found
in /usr/bin/. Scripts are human readable, so you can examine their contents
with an editor or using less (less /usr/bin/calc). Some of them contain help
messages and/or comments, and others not so much.

Here is a list of the scripts in /usr/bin/ if you're interested:
Code: [Select]
tc@E310:~$ ls -1 /usr/bin/ | while read F; do ./FindMagic /usr/bin/$F 2>&1 | grep Script; done
Script  /usr/bin/backup
Script  /usr/bin/bbcheck.sh
Script  /usr/bin/bigHomeFiles.sh
Script  /usr/bin/calc
Script  /usr/bin/chkonboot.sh
Script  /usr/bin/cliorx
Script  /usr/bin/exitcheck.sh
Script  /usr/bin/exittc
Script  /usr/bin/filetool.sh
Script  /usr/bin/fromISOfile
Script  /usr/bin/getTime.sh
Script  /usr/bin/getdisklabel
Script  /usr/bin/history
Script  /usr/bin/ldd
Script  /usr/bin/mountables.sh
Script  /usr/bin/ondemand
Script  /usr/bin/provides.sh
Script  /usr/bin/search.sh
Script  /usr/bin/seekWinPartition
Script  /usr/bin/select
Script  /usr/bin/sethostname
Script  /usr/bin/showbootcodes
Script  /usr/bin/tc-terminal-server
Script  /usr/bin/tce
Script  /usr/bin/tce-ab
Script  /usr/bin/tce-audit
Script  /usr/bin/tce-fetch.sh
Script  /usr/bin/tce-load
Script  /usr/bin/tce-remove
Script  /usr/bin/tce-run
Script  /usr/bin/tce-setdrive
Script  /usr/bin/tce-setup
Script  /usr/bin/tce-size
Script  /usr/bin/tce-status
Script  /usr/bin/tce-update
Script  /usr/bin/tcemirror.sh
Script  /usr/bin/text2lp0
Script  /usr/bin/uuid
Script  /usr/bin/version
tc@E310:~$

Offline Stefann

  • Jr. Member
  • **
  • Posts: 78
Re: cannot find xmlrpc.so when using php via apache
« Reply #7 on: August 11, 2024, 11:41:42 AM »
Thanks!
Great!
That works.