さんきゅう堂的_バックアップ
PHP_PEAR で大苦戦!
- Next Page: Maia Mailguard Changeset 1202
- Prev Page: 画像上任意の位置に画像とリンク
/etc/php5/apache2/php.ini
# pear config-show
Configuration (channel pear.php.net):
=====================================
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/docs
PHP extension directory ext_dir /usr/lib64/php5/extensions
PEAR directory php_dir /usr/share/php
PEAR Installer cache directory cache_dir /tmp/pear/cache
PEAR data directory data_dir /usr/share/php/data
PEAR Installer download download_dir /usr/temp/download
directory
PHP CLI/CGI binary php_bin /usr/bin/php5
php.ini location php_ini <not set>
PEAR Installer temp directory temp_dir /usr/temp
PEAR test directory test_dir /usr/share/php/tests
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/local/bin/gpg
Signature Key Directory sig_keydir /etc/php5/cli/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 /etc/php5/cli/pear.conf
# pear5 install Pear_Info
WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update
Did not download optional dependencies: pear/XML_RPC, use --alldeps to download automatically
pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0)
downloading PEAR_Info-1.7.0.tgz ...
Starting to download PEAR_Info-1.7.0.tgz (56,638 bytes)
..............done: 56,638 bytes
downloading PEAR-1.6.2.tgz ...
Starting to download PEAR-1.6.2.tgz (297,794 bytes)
...done: 297,794 bytes
downloading Archive_Tar-1.3.2.tgz ...
Starting to download Archive_Tar-1.3.2.tgz (17,150 bytes)
...done: 17,150 bytes
downloading Structures_Graph-1.0.2.tgz ...
Starting to download Structures_Graph-1.0.2.tgz (30,947 bytes)
...done: 30,947 bytes
downloading Console_Getopt-1.2.3.tgz ...
Starting to download Console_Getopt-1.2.3.tgz (4,011 bytes)
...done: 4,011 bytes
install ok: channel://pear.php.net/Archive_Tar-1.3.2
install ok: channel://pear.php.net/Structures_Graph-1.0.2
install ok: channel://pear.php.net/Console_Getopt-1.2.3
install ok: channel://pear.php.net/PEAR-1.6.2
install ok: channel://pear.php.net/PEAR_Info-1.7.0
PEAR: Optional feature webinstaller available (PEAR's web-based installer)
PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based installer)
PEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based installer)
PEAR: To install optional features use "pear install pear/PEAR#featurename"
# pear install Pear_Info
Ignoring installed package pear/Pear_Info
Nothing to install
pear_info.php
require_once "PEAR/Info.php";
$info =& new PEAR_Info();
$info->show();
?>
エラー
PEAR configuration files /var/lib/apache2/.pearrc, /etc/php5/apache2/pear.conf does not exist
# ln -s /etc/php5/cli/pear.conf /etc/php5/apache2/pear.conf
http://example.com/pear_info.php
OK