← ServerPilot Docs

How to Install the PHP Pspell Extension

The Pspell extension was removed from PHP core in PHP 8.4.

  • For PHP 8.3 and older, the Pspell extension is installed by default so you should not use the instructions below.
  • For PHP 8.4+, use the instructions below to install the Pspell extension.

Installing the Pspell Extension on PHP 8.4

To install the PHP Pspell extension on PHP 8.4, SSH in to your server as root and run the following commands:

sudo apt-get -y install gcc make autoconf libc-dev pkg-config
sudo apt-get -y install libpspell-dev
yes '' | sudo pecl8.4-sp install pspell

Once installed, create a configuration file for the extension and restart PHP by running the following commands as root:

sudo bash -c "echo extension=pspell.so > /etc/php8.4-sp/conf.d/pspell.ini"
sudo service php8.4-fpm-sp restart

Using the PHP Pspell Extension

See the documentation for the PHP Pspell extension for usage information.

Uninstalling the Pspell Extension

To uninstall this extension, as root run the commands:

sudo rm /etc/php8.4-sp/conf.d/pspell.ini
sudo pecl8.4-sp uninstall pspell

Next, restart PHP-FPM with the command:

sudo service php8.4-fpm-sp restart
Last updated: October 28, 2024

Launch your first site in 5 minutes