In this tutorial we’ll install WDDX php extension in php 7.4. This extension is DEPRECATED and REMOVED as of PHP 7.4. Lets find what is WDDX ? – WDDX (Web Distributed Data eXchange) is a programming language-, platform- and transport-neutral data interchange mechanism designed to pass data between different environments and different computers.
No worry we can still install WDDX extension in php 7.4 follow this easy guide to this :
Step 1 :
Building and installing WDDX php extension :
wget https://github.com/php/pecl-text-wddx/archive/master.zip -O wddx.zip unzip wddx.zip cd pecl-text-wddx-master phpize ./configure make make install
** find the proper path for phpize and add prefix for the php-config eg :
suppose you’ve installed php in /opt/alt/php/ then replace this
/opt/alt/php/usr/bin/phpize
./configure --with-php-config=/opt/alt/php/usr/bin/php-config
Step 2 :
Enabling WDDX php extension
In php.ini add this following line to enable WDDX :
extension=wddx.so
Restart apache/php-fpm/php-handler service done.
Step 3 :
Check wddx is installed correctly and loaded via this command :
php -m | grep wddx
If loaded successfully then result will look like :
[root@mysterydata]# php -m | grep wddx
wddx
Or check via php info page
wget https://github.com/php/pecl-text-wddx/archive/master.zip -O wddx.zip
unzip wddx.zip
cd pecl-text-wddx-master
phpize7.4 <— version of running php is imp
./configure
make
make install
Go to :
cd /etc/php/7.4/cli/conf.d
Create file :
vim 25-wddx.ini
past following lines in it :
extension=wddx.so
I got this error when compiling:
expat_compat.h
Anythoughts?
can you post full log here https://pastebin.com/ and share the link it seems some deps issue.