LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 04-21-2022, 04:41 AM   #1
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,066

Rep: Reputation: 147Reputation: 147
Question SlackwareARM 15 PHP xmlrpc mismatch


My SlackwareARM 15 server (up-to-date minutes ago) says the below trying to run PHP stuff (GNU Social.)

Code:
PHP Warning:  PHP Startup: xmlrpc: Unable to initialize module
Module compiled with module API=20190902
PHP    compiled with module API=20210902
These options need to match
I want to upgrade it to 64-bit so am hoping for a stable release...
 
Old 04-22-2022, 07:11 AM   #2
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,543

Rep: Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313
Quote:
Originally Posted by dchmelik View Post
My SlackwareARM 15 server (up-to-date minutes ago) says the below trying to run PHP stuff (GNU Social.)

Code:
PHP Warning:  PHP Startup: xmlrpc: Unable to initialize module
Module compiled with module API=20190902
PHP    compiled with module API=20210902
These options need to match


What does this report?
Code:
 php --version
and
Code:
 php -i | egrep -i '(extension|API)'
Quote:
I want to upgrade it to 64-bit so am hoping for a stable release...
You'll have to wait a bit for 15.1! However, -current AArch64 will be quite stable. If you've built a lot of local packages from source a stable release definitely makes sense, but if not -current is typically a stable forward-moving OS.
 
Old 04-22-2022, 07:39 AM   #3
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,543

Rep: Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313
I think the issue is that you have the php package from /extra installed.
Try

Code:
removepkg php80 php81
upgradepkg --install-new --reinstall slackwarearm-15.0/patches/packages/php-*z
and restart httpd too if you're using it.
Code:
/etc/rc.d/rc.httpd restart

Last edited by drmozes; 04-22-2022 at 07:49 AM.
 
1 members found this post helpful.
Old 04-22-2022, 09:18 AM   #4
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,066

Original Poster
Rep: Reputation: 147Reputation: 147
Fixed it for now but I thought I needed PHP8 for something...
 
Old 04-22-2022, 01:15 PM   #5
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,543

Rep: Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313
Quote:
Originally Posted by dchmelik View Post
Fixed it for now but I thought I needed PHP8 for something...
I uploaded a new version of the php package anyway since I built it for debugging purposes.
If you want to use the newer PHP releases (8.0/8.1) you need to edit httpd's php module loader config -- the instructions are within the changelog for the last batch.

If you're using slackpkg to update, you'll want to configure it not to install these packages from /extra otherwise this will happen again.
There's probably a regex you can use to prevent it - I don't use slackpkg but I'm sure someone else can jump in who knows how to configure it if you need a hand.
 
1 members found this post helpful.
Old 04-22-2022, 03:47 PM   #6
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
It's pretty straight forward to black list all the php packages with:
Code:
php.*
Or just php80 / 81:
Code:
php80.*
php81.*
Or both php 8 but not the php 7 package:
Code:
php[0-9].*
Or only php 7:
Code:
php-[0-9].*
Just drop whichever you need into /etc/slackpkg/blacklist. Then run slackpkg update.
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install php-xmlrpc on CentOS 5.5 danndp Linux - Newbie 2 02-04-2011 09:14 AM
hldstart, php-xmlrpc & Updating - New Slackware User paulmcginniss20 Slackware 5 04-20-2008 09:54 AM
xmlrpc.php - webmaster strategies for battling botnets v00d00101 Linux - Security 15 02-07-2007 01:31 AM
Problems setting up XMLRPC with Apache and PHP eikeland Linux - Software 0 04-05-2006 07:59 PM
PHP xmlrpc problem. Jim44 Programming 0 02-20-2006 11:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 04:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration