Re: PEAR newbie looking for guidance!
| From: | Chuck Burgess | Date: | Fri, 25 Jan 2008 13:53:11 +0000 |
| Subject: | Re: PEAR newbie looking for guidance! | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-28464@lists.php.net to get a copy of this message | ||
On Jan 25, 2008 6:26 AM, Galloway Web Design <info@gallowaywebdesign.co.uk>
wrote:
> Hi,
>
> I'm now a reasonably competent PHP programmer and want to try my hand at
> working with PEAR, however, firstly I'm not sure whether it is already
> installed with PHP on my web host (how do I find out?) and I don't know how
> to access it in order to install new packages (help?).
>
> Hope there's someone out there with a lot of patience to help me!!
>
> Mike.
>
Hi Mike,
If you have shell access on that remote host, try running "pear help" or
"pear -V" to see if the pear command is available to you. If it is, there
is a PEAR installation already, but likely a system-wide installation that
you won't necessarily have permissions to alter.
If you find you do have permissions to alter the system-wide PEAR
installation that's already there, then look at the output of "pear help",
and then to look closer at any given command, do "pear help *command*".
That will show you info specifically about that command. Commands you'll
want to look at will be *install* and *upgrade*. Also note that if you find
you want to install or upgrade any packages that are themselves not marked
"stable", you'll need to add the package version's stability that you want
to the end of the package name -- "pear install mdb2" will get you the
current "stable" 2.4.1, while "pear install mdb2-alpha" would get you the
newer 2.5.0a2 alpha version. Most of the time, you'll find that there is a
beta package you want, so you'd use "pear install sompackage-beta". This
naming scheme also works with the *upgrade* command, in case you want to
take a stable version you already have installed and upgrade it to a newer
version that is still beta.
However, I'll bet if this is a hosting provider, you won't have access to
the system-wide PEAR installation, in which case you may want to look at
performing a local installation in your own home directory or webspace. The
best instructions for this are here (
http://pear.php.net/manual/en/installation.shared.php).
Hope that helps...
--
CRB