PDA

View Full Version : PHP PEAR *** UPDATE *** Now Working - See Post



stonix
08-10-2004, 08:12 PM
I strongly suggest to have PHP Pear enabled in the near future
:)

Alex

<mark />
08-11-2004, 01:07 PM
I'll second that.

alou
08-19-2004, 11:42 AM
I'll Third That Having PHP Pear would be great!

ErickJensen
09-11-2004, 06:59 PM
I fourth that.

<-- R O B -->
09-29-2004, 10:06 AM
can i add a fifth? - these request are getting fractionally smaller each time!

Tom Howard
09-29-2004, 05:00 PM
For anyone who doesn't know what PEAR is, here's a link:
http://pear.php.net/

I agree. It would be great.

jalal
10-01-2004, 06:38 AM
On my server I have a bunch of PEAR scripts in /lib/php/PEAR.

Is that not what you guys mean?

squidier
10-04-2004, 08:18 AM
Yes all the files seem to be in the php dir, but when I try pear on the command line the command is unknown. The command should be in the bin dir - anyone know where it is?

sarr
10-08-2004, 08:52 AM
Maybe WH wants to control what is actually installed (reasons: supportability, security, etc.). I, too, would very much like to see PEAR available. Count my vote too, please.

Hmm... has anyone TRIED a PEAR-based script?

WestHost - RSimpkins
10-08-2004, 09:54 AM
It would be helpful to WestHost if someone can post specific cases where PEAR is not working. What commands they are running, and what they are trying to do would be great. If someone can develop a set of simple test cases I'll be happy to look into it and see if we can't get PEAR going in accounts (or at least see what it will take).

Does anyone have tickets related to PEAR not working in the VPS? Can you please PM me those so I can look into them?

WestHost - RSimpkins
10-08-2004, 03:08 PM
Working with a client I did the following to get the PEAR binary:

This method obsolete and has been removed.

In order to get PEAR working please read this procedure:
http://forums.westhost.com/phpBB2/viewtopic.php?p=13362#13362

wildjokerdesign
10-08-2004, 04:36 PM
Thought I would re-post this from a thread here:
http://forums.westhost.com/phpBB2/viewtopic.php?p=13145#13145


Just a quick follow-up:
I took a PEAR-using script from my home machine, changed the first line to "#! /bin/php" and it worked like a charm. PEAR is already installed and working fine (for me).
-- Steve G.

<-- R O B -->
10-12-2004, 02:52 AM
4) /bin/php go-pear

[/code]

Can anyone confirm if this works for them also (or doesn't)?

Point 4 just hangs for me when I type it into putty do I need to be in a specific folder when I download go-pear? Or when I call /bin/php?

Cheers
Rob C

Tom Howard
10-13-2004, 01:45 PM
Same thing here, it just seems to hang.

kolinahr
10-17-2004, 07:45 PM
go-pear hangs when executed from the command line, but works find when run from a web browser. Just rename the go-pear file to go-pear.php and move to your www directory.

Sadly pear will still not install extensions because the following directories (minimum) must be writable:


/usr/local/lib/php/.registry
/usr/local/lib/php/docs

WestHost - RSimpkins
10-18-2004, 10:18 AM
If you are trying to get PEAR operating in your account please submit a support request referencing this post. Technical Support will then escalate the ticket to me. I will be happy to work one-on-one with each of you until you have a working PEAR installation.

When making support requests regarding this please include any details you can. This will help to speed up the resolution of your ticket.

If you already have a ticket in relation to this please feel free to PM me the ticket number, or to create a new request.

Please allow a few days for a response.

WestHost - RSimpkins
10-19-2004, 01:49 PM
IMPORTANT: These instructions are for the older WestHost version of PHP (4.3.0). The newer version of PHP we offer (4.3.10) now has a working pear installation by default and does not require any additional configuration. The old instructions are included below for reference.

How to get PEAR working the right way.

I have worked with several clients and the following method appears to be the best way to get PEAR working in a WestHost VDS. Many of these steps can be changed to match your specific needs and requirements.
TIMTOWTDI



1&#41; SSH into the account.
2&#41; cd /var/www/html
3&#41; wget http&#58;//pear.php.net/go-pear
4&#41; mv go-pear go-pear.php
5&#41; Browse to http&#58;//yourdomain/go-pear.php
6&#41; Configure and install PEAR. These are the options we have been using&#58;
Installation Prefix&#58; /usr/local
PHP Code Directory&#58; $prefix/share/pear
7&#41; Edit /etc/php.ini and set the include_path to something like this&#58;
include_path = "./&#58;/usr/local/share/pear";
Having '/usr/local/lib/php' in the include_path can cause problems with PEAR, so you may not want that depending on how you prioritize it.
8&#41; Edit the "pear" script to call the PHP binary directly&#58;
pico /usr/local/bin/pear
exec /bin/php -C -q $INCARG -d output_buffering=1 $INCDIR/pearcmd.php "$@"
9&#41; run 'pear remote-list' -- if all is well you should get a list of available PEAR packages to install.
10&#41; rm /var/www/html/go-pear.php


Next you need to configure additional PEAR options. You can get more details from the PEAR site, but it should match the following:


&#91;user&#93;&#91;/var/www/html&#93;$ pear config-show
Configuration&#58;
==============
PEAR executables directory bin_dir /usr/local/bin
PEAR documentation directory doc_dir /usr/local/share/pear/docs
PHP extension directory ext_dir /usr/local/apache/libexec/modules
PEAR directory php_dir /usr/local/share/pear
PEAR Installer cache directory cache_dir /tmp/pear/cache
PEAR data directory data_dir /usr/local/share/pear/data
PHP CLI/CGI binary php_bin /usr/local/bin/php
PEAR test directory test_dir /usr/local/share/pear/tests
Cache TimeToLive cache_ttl 3600
Preferred Package State preferred_state stable
Unix file mask umask 22
Debug Log Level verbose 1
HTTP Proxy Server Address http_proxy &lt;not set>
PEAR server master_server pear.php.net
PEAR password &#40;for password &lt;not set>
maintainers&#41;
Signature Handling Program sig_bin /usr/local/bin/gpg
Signature Key Directory sig_keydir /usr/local/etc/pearkeys
Signature Key Id sig_keyid &lt;not set>
Package Signature Type sig_type gpg
PEAR username &#40;for username &lt;not set>
maintainers&#41;


Please feel free to create a support request if you require additional assistance.

medlinke
03-28-2005, 06:28 AM
These steps would be great...if we had root access...

What would be cool is if you guys made a revised version that included paths that weren't owned by ROOT.

jalal
03-28-2005, 07:52 AM
Which paths are not accessible on your site?

They're all writable on my servers.
:)

racerx_is_alive
04-11-2005, 10:27 AM
I don't have access to write in /usr/local/share, or to chmod /usr/local/share . I guess for newer accounts that directory is set to R-X by default. Does it need to be set to 775 or 755 in order to install PEAR?

WestHost - RSimpkins
04-11-2005, 10:41 AM
The latest version of PHP (4.3.10) available in the WestHost site manager (site applications section) now has a working PEAR installation. We recommended you use this version rather than the older 4.3.0 version which required additional configuration to get PEAR working.