| Andre Hübner 2008-02-18, 8:09 am |
| Hi List,
i have a problem with package PEAR_Info. I call:
<?php
include_once "PEAR/Info.php";
$info = new PEAR_Info();
echo $info->info;
?>
All i got is: PEAR configuration files "/root/.pearrc",
"/usr//etc/pear.conf" does not exist
/usr//etc/pear.conf is existing but /root/.pearrc is not readable for
security reasons.
I tried to use:
pear config-set system_file /usr/share/php/pear.conf
But it is not accepted:
config-set (system_file, /usr/share/php/pear.conf, user) failed, channel
pear.php.net
I cannot change user_file and system_file.
Dont know what to do now, in want to give my users an overview over
installed pear-packages.
What to do now? Here result of pear config-show
Auto-discover new Channels auto_discover <not set>
Default Channel default_channel pear.php.net
HTTP Proxy Server Address http_proxy <not set>
PEAR server [DEPRECATED] master_server pear.php.net
Default Channel Mirror preferred_mirror pear.php.net
Remote Configuration File remote_config <not set>
PEAR executables directory bin_dir /usr/bin/
PEAR documentation directory doc_dir /usr/share//php/doc
PHP extension directory ext_dir
/usr/share//extensions/no-debug-non-zts-20020429
PEAR directory php_dir /usr/share//php
PEAR Installer cache directory cache_dir /tmp/pear/cache
PEAR configuration file cfg_dir /usr/share//php/cfg
directory
PEAR data directory data_dir /usr/share//php/data
PEAR Installer download download_dir /tmp/pear/download
directory
PHP CLI/CGI binary php_bin /usr/bin//php
php.ini location php_ini /etc/php.ini
PEAR Installer temp directory temp_dir /tmp/pear/temp
PEAR test directory test_dir /usr/share//php/test
PEAR www files directory www_dir /usr/share//php/www
Cache TimeToLive cache_ttl 3600
Preferred Package State preferred_state stable
Unix file mask umask 22
Debug Log Level verbose 1
PEAR password (for password <not set>
maintainers)
Signature Handling Program sig_bin /usr/bin/gpg
Signature Key Directory sig_keydir /usr//etc/pearkeys
Signature Key Id sig_keyid <not set>
Package Signature Type sig_type gpg
PEAR username (for username <not set>
maintainers)
User Configuration File Filename /root/.pearrc
System Configuration File Filename /usr//etc/pear.conf
Thank you
Andre
|