To install RADIUS plugin for PHP on CentOS 6.3, do the following:
#pear install radius Auth_RADIUS
If you get this:
"No releases available for package "pear.php.net/radius"
"No releases available for package "pear.php.net/Auth_RADIUS"
Please update pear channel:
#pear channel-update pear.php.net
Update of Channel "pear.php.net" succeeded
Run the command again
# pear install radius Auth_RADIUS
Then you will get the sample output like this:
No releases available for package "pear.php.net/radius" - package pecl/radius can be installed with "pecl install radius"
WARNING: channel "pear.php.net" has updated its protocols, use "pear channel-update pear.php.net" to update
downloading Auth_RADIUS-1.0.7.tgz ...
Starting to download Auth_RADIUS-1.0.7.tgz (8,447 bytes)
.....done: 8,447 bytes
downloading radius-1.2.5.tgz ...
Starting to download radius-1.2.5.tgz (29,750 bytes)
...done: 29,750 bytes
16 source files, building
running: phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
building in /var/tmp/pear-build-root8pBNb3/radius-1.2.5
running: /var/tmp/radius/configure
...
...
...
Build process completed successfully
Installing '/usr/lib64/php/modules/radius.so'
install ok: channel://pecl.php.net/radius-1.2.5
install ok: channel://pear.php.net/Auth_RADIUS-1.0.7
configuration option "php_ini" is not set to php.ini location
Edit your php.ini file by adding 'extension=radius.so'
Then restart your httpd server
Check if the plugin is enable:
#php -m
[PHP Modules]
bz2
calendar
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
imap
intl
json
ldap
libxml
mbstring
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
radius
readline
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
sqlite3
standard
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib
[Zend Modules]
No comments:
Post a Comment