Dedicated Servers
Managed Dedicated Servers
Semi-Dedicated Hosting
Cheap Dedicated Servers
Hyper-V VPS Hosting
Hyper-V Virtual Private Servers
Linux VPS Hosting
VPS Hosting with Root Access
Windows VPS Hosting
Windows VPS Web Hosting
Reseller Hosting
Reseller Hosting India
cPanel Shared Hosting
Linux Shared Web Hosting
Windows Hosting
Windows Shared Web Hosting
Web Hosting Blog
Web Hosting Blog India
Hosting Knowledgebase
Web Hosting Knowledgebase




  #1 (permalink)  
Old 11-26-2003, 11:31 PM
Senior Member
 
Join Date: Jun 2004
Posts: 102
Default

PHP PEAR

pear install Log
pear install Mail_Mime
pear install Net_Socket

For Plesk

the "pear" program is in /usr/local/plesk/php/bin
pear itself should already be installed on the server and as far as i know the include_path setting should also already contain /usr/local/plesk/php/lib, where pear is located, so you do not need to install pear itself.
Reply With Quote
  #2 (permalink)  
Old 06-26-2005, 11:45 PM
Junior Member
 
Join Date: Jul 2004
Posts: 16
Default PHP Pear

1] Introduction

PEAR is short for "PHP Extension and Application Repository" and is pronounced just like the fruit. It is a framework and distribution system for reusable PHP components. PEAR provides the PHP components in the form of so called "Packages". Each package is a separate project with its own development team, version number, release cycle, documentation and a defined relation to other packages (including dependencies). Packages are distributed as gzipped tar files with a description file inside, and installed on your local system using the PEAR installer. Examples of package names are "MP3_Id", "Archive_Tar" and "HTTP_Post". Packages may relate to each other through explicit dependencies, but there is no automatic relation between for example a package and its "parent" in the package tree (for example, "HTTP_Post" is by default independent of "HTTP").

2]Command line installer

The command line installer is the easiest way to install PEAR packages on your system: It connects to the PEAR package server via a simple HTTP connection, loads the package on your system and installs it to the desired location. Simply run the following line on your shell:

pear install <package>

<package> has to be replaced with the name of the package you want to install (e.g. HTTP_Upload). To get a list of the available packages give the command

pear list-all

Here's a list of some commands available to the pear command line tool –
upgrade Upgrade Package
list List Installed Packages
install Install Package
uninstall Un-install Package
remote-list List remote packages
info Display information about a package

3]How do I install a package when I get the error message "No release with state equal to: 'stable' found for 'Packagename"?

The package in question does have releases, but none that are stable. There are two solutions.
1. Set preferred_state to alpha or beta and then install
$ pear config-set preferred_state alpha
$ pear install Packagename
2. Find out the stability or version number of the latest release and install it directly.
$ pear install Packagename-alpha
$ pear install Packagename-1.5.3

For more on PEAR please view the url -- http://pear.php.net/
Reply With Quote
Reply

Bookmarks
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT. The time now is 01:35 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0