SlackBuilds Repository

15.0 > Libraries > php-ext-xz (1.2.2)

php-ext-xz (XZ compression support for PHP)

php-ext-xz is a PHP extension providing XZ (LZMA2) compression and
decompression functions.

By default, the xz extension is enabled in "/etc/php.d/xz.ini". If you
want to disable it without removing this package, you can comment out
the "extension=xz" line. If you do this, reinstalling the package will
not re-enable the extension (your xz.ini is preserved).

To check whether the extension is loaded, you can run this from the
shell:

$ php -r 'var_dump(extension_loaded("xz"));'

...if you see "bool(true)", it's loaded.

If you intend to permanently remove php-ext-xz, you should delete
its config file afterwards:

# removepkg php-ext-xz
# rm -f /etc/php.d/xz.ini

If you use PHP with Apache's mod_php, you'll have to restart Apache
after installing this, for PHP scripts to see the extension. E.g.:

# /etc/rc.d/rc.httpd restart

The same is true of PHP FastCGI (FPM), if you use it:

# /etc/rc.d/rc.php-fpm restart

Maintained by: B. Watson
Keywords: php module,php extension
ChangeLog: php-ext-xz

Homepage:
https://github.com/codemasher/php-ext-xz/

Source Downloads:
php-ext-xz-1.2.2.tar.gz (e39d0ca7d055d9a64a23ac9143c482f1)

Download SlackBuild:
php-ext-xz.tar.gz
php-ext-xz.tar.gz.asc (FAQ)

(the SlackBuild does not include the source)

Validated for Slackware 15.0

See our HOWTO for instructions on how to use the contents of this repository.

Access to the repository is available via:
ftp git cgit http rsync

© 2006-2026 SlackBuilds.org Project. All rights reserved.
Slackware® is a registered trademark of Patrick Volkerding
Linux® is a registered trademark of Linus Torvalds