How To Install php-dapphp-radius on Debian 12

Learn how to install php-dapphp-radius on Debian 12 with this tutorial. php-dapphp-radius is pure PHP RADIUS client based on the SysCo/al implementation

Introduction

In this tutorial we learn how to install php-dapphp-radius on Debian 12.

What is php-dapphp-radius

php-dapphp-radius is:

Dapphp\Radius is a pure PHP RADIUS client for authenticating users against a RADIUS server in PHP. It currently supports basic RADIUS auth using PAP, CHAP (MD5), MSCHAP v1, and EAP-MSCHAP v2. The current 2.5.x branch is tested to work with Microsoft Windows Server 2012 to 2019 Network Policy Server and FreeRADIUS 2 and above.

PAP authentication has been tested on:

  • Microsoft Radius server IAS
  • Mideye RADIUS Server
  • Radl
  • RSA SecurID
  • VASCO Middleware 3.0 server
  • WinRadius
  • ZyXEL ZyWALL OTP

The PHP openssl extension is required if using MSCHAP v1 or v2. For older PHP versions that have mcrypt without openssl support, then mcrypt is used.

There are three methods to install php-dapphp-radius on Debian 12. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install php-dapphp-radius Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install php-dapphp-radius using apt-get by running the following command:

sudo apt-get -y install php-dapphp-radius

Install php-dapphp-radius Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install php-dapphp-radius using apt by running the following command:

sudo apt -y install php-dapphp-radius

Install php-dapphp-radius Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install php-dapphp-radius using aptitude by running the following command:

sudo aptitude -y install php-dapphp-radius

How To Uninstall php-dapphp-radius on Debian 12

To uninstall only the php-dapphp-radius package we can use the following command:

sudo apt-get remove php-dapphp-radius

Uninstall php-dapphp-radius And Its Dependencies

To uninstall php-dapphp-radius and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove php-dapphp-radius

Remove php-dapphp-radius Configurations and Data

To remove php-dapphp-radius configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge php-dapphp-radius

Remove php-dapphp-radius configuration, data, and all of its dependencies

We can use the following command to remove php-dapphp-radius configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge php-dapphp-radius

Dependencies

php-dapphp-radius have the following dependencies:

References

Summary

In this tutorial we learn how to install php-dapphp-radius package on Debian 12 using different package management tools: apt, apt-get and aptitude.