Page 1 of 2

PEAR Installationsprobleme

Posted: 2003-02-24 09:23
by Anonymous
Hi,

ich habe ein Problem mit PEAR, und zwar bekomme ich es einfach nicht installiert, bzw. geupdatet. In der Doku steht ich muss nur alle Dateien in das php-Verzeichniss kopieren (cp *.* /usr/share/php -r -f). Doch das tuts nicht, ich bekomme immer noch die alte Version angezeigt. Ich bekomme auch keine Module hinzuinstalliert...

Woran kann das liegen?

Daniel

Re: PEAR Installationsprobleme

Posted: 2003-02-24 16:21
by hbaes
liegt dein aktuelles php auch dort ?

nicht eventuell unter /usr/local/lib/php ????


Harald

Re: PEAR Installationsprobleme

Posted: 2003-02-24 17:01
by Anonymous
Die original-PEAR-Dateien liegen ja auch da...

Daniel

Re: PEAR Installationsprobleme

Posted: 2003-02-24 17:12
by hbaes
und wo liegt der include_dir pfad in der /etc/php.ini ????

wenn du nämlich schon mal ein eigenes upgrade von php gemacht hats (und das RPM vorher nicht komplett runtergeschmissen hast) dann kann es trotzdem 2 versionen geben ...

ansonsten ist

Code: Select all

pear config-show
Dein Freund

Harald

Re: PEAR Installationsprobleme

Posted: 2003-02-24 17:53
by Anonymous
; PEAR
include_path=".:/usr/share/pear"
include_path=".:/usr/bin"
include_path=".:/usr/share/php/PEAR"
include_path=".:/usr/bin/php"
include_path=".:/usr/bin/PEAR"

Das alles hab ich in die php.ini geschrieben, und dann mit apachectl graceful neugestartet, aber nix, immer noch der gleiche Fehler...

Daniel

Re: PEAR Installationsprobleme

Posted: 2003-02-24 18:01
by hbaes
gib mal in der Bash folgendes ein:

Code: Select all

locate PEAR.php
(PEAR wirklich groß geschrieben)

und poste mal das Ergebnis bitte !

Harald

PS.: was sagt:

Code: Select all

pear config-show
??

Re: PEAR Installationsprobleme

Posted: 2003-02-24 18:02
by Anonymous
locate PEAR.php
/usr/bin/PEAR/pear/PEAR.php
/usr/share/php/PEAR.php
/usr/share/php/PEAR/pear/PEAR.php
/usr/share/phpold1/PEAR.php
/usr/src/pear/PEAR.php
/usr/src/php-4.2.2/pear/PEAR.php



pear config-show
Configuration:
==============
+--------------------------------+-----------------+-------------------------+
| PEAR executables directory | bin_dir | /usr/bin |
| PEAR documentation directory | doc_dir | /usr/share/pear/docs |
| PHP extension directory | ext_dir | ./ |
| PEAR directory | php_dir | /usr/share/pear |
| PEAR Installer cache directory | cache_dir | /tmp/pear/cache |
| PEAR data directory | data_dir | /usr/share/pear/data |
| PHP CLI/CGI binary | php_bin | /usr/bin/php |
| PEAR test directory | test_dir | /usr/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 | <not set> |
| PEAR server | master_server | pear.php.net |
| PEAR password (for | password | <not set> |
| maintainers) | | |
| Signature Handling Program | sig_bin | /usr/bin/gpg |
| Signature Key Directory | sig_keydir | /usr/share/etc/pearkeys |
| Signature Key Id | sig_keyid | <not set> |
| Package Signature Type | sig_type | gpg |
| PEAR username (for | username | <not set> |
| maintainers) | | |
+--------------------------------+-----------------+-------------------------+


Daniel

Re: PEAR Installationsprobleme

Posted: 2003-02-24 18:12
by hbaes
also:

1.)jede Zeile die locate jetzt ausgegeben hat entspricht einer installierten PEAR Version :-) (PEAR.php kommt ja als Rumpf-Datei nur einmal vor).

2.) bei Deiner php.ini ist im include_path was schiefgegangen:

Code: Select all

include_path=".:/usr/share/pear:/usr/bin..."
wäre die richtige schreibweise.

so nimmt er immer nur das letzte verzeichnis (/usr/bin/PEAR)
[und ich trau mich wetten, daß da nicht die neueste Version drinnen liegt, oder ?]

3.) pear config zeigt daß FÃ?R PEAR das PEAR Verzeichnis /usr/share/pear (kleingeschrieben) ist ... passt nicht zu 2.) (dort ist PEAR großgeschrieben)

Re: PEAR Installationsprobleme

Posted: 2003-07-20 16:38
by daster
hallo,

leider komme ich auch nicht mit pear zurecht. horde bricht ab mit
PEAR
PEAR - No
Check your PHP include_path setting to make sure it has the PEAR library directory.
Recent PEAR - No
Mail - No
Log - No
DB - No
Net_Socket - No
Date - No
HTML_Common/HTML_Select - No
Unknown error: open_basedir restriction in effect. File is in wrong directory (/home/www/web10/html/test.php:199)
obwohl ich pear laufen habe und auch das safemode richtig gesetzt habe, bricht ein
pear config-show
<br />
<b>Fatal error</b>: Call to undefined function: getoptions() in <b>/usr/bin/pear</b> on line <b>34</b><br />
ab.


Der Webserver bringt mir dann bei horde -> index.php aufruf folgendes:
Warning: open_basedir restriction in effect. File is in wrong directory in Unknown on line 0

Warning: Failed opening '/home/www/web10/html/index.php' for inclusion (include_path='.:/usr/share/php') in Unknown on line 0
Weiss jemand mehr?

Re: PEAR Installationsprobleme

Posted: 2003-11-07 08:38
by xamibor
nur mal so eine frage eines "änfängers" .... wo bekomme ich das pear und bzw. wenn ich auf pear.php.net komme welches packet ist das Bsic paket zum installieren?

Gruß
Andreas

Re: PEAR Installationsprobleme

Posted: 2003-11-07 08:44
by drucko
Am besten ist es der Pear Installationsanleitung zu folgen:

am besten ein: lynx -source http://go-pear.org/ | php
eingeben und den Schritten folgen.
Steht aber alles auf PEAR.php.net
WIr verwenden Pear schon sehr lange und habe es mit dieser Methode schon auf 20 Servern installiert.
Die Pfade schreibt der Installer normalerweise direkt in die php.ini .
Ansonsten einfach per hand eingebn.
Ich weiss manchmal lässt sich PEAR ganz schön bitten
Grüsse drucko

Re: PEAR Installationsprobleme

Posted: 2003-11-07 08:53
by xamibor
Danke das war ja einfach :-)

Re: PEAR Installationsprobleme

Posted: 2003-11-07 09:40
by xamibor
habe das gleiche Problem wie Daster ...horde gibt an das pear nicht läuft ....

muss man es speziell starten?

Gruß
Andreas

Re: PEAR Installationsprobleme

Posted: 2003-11-07 09:46
by drucko
horde hat sogra ein eigenes Paket: pear.horde.org. aber versuch einfach die installation eins weiter oben von mir
Greets Drucko

Re: PEAR Installationsprobleme

Posted: 2003-11-13 22:54
by xamibor
was mache ich wenn beim aufruf von Horde das kommt:

Some of Horde's configuration files are missing:


....

lg
Andreas

Re: PEAR Installationsprobleme

Posted: 2003-11-14 08:16
by drucko
Installier das PEAR Grundpaket wie ich es oben beschrieben habe

Re: PEAR Installationsprobleme

Posted: 2003-11-14 09:06
by captaincrunch
Das beiligende README lesen, und die Konfigurationsdatein erstellen.

Re: PEAR Installationsprobleme

Posted: 2003-11-14 17:52
by xamibor
wie solte folgendes idialerweise aushen?
include_path=".:/usr/share/pear:/usr/bin..."
meine php.ini scheint nicht richtig zu sein

lg
Andreas

Re: PEAR Installationsprobleme

Posted: 2003-11-14 20:31
by xamibor
würde gerne mal wissen wie ich pear testen kann ob es über haupt läuft .... gibt es übers web auch so eine art phpinfo() für pear ?

lg
Andreas

Re: PEAR Installationsprobleme

Posted: 2003-11-14 22:32
by captaincrunch

Re: PEAR Installationsprobleme

Posted: 2003-11-17 21:24
by xamibor
die URL http://www.btjc.de/mail/test.php


####
meine php.ini:

include_path=".:/usr/share/pear:/usr/bin..."

genau so habe ich es geschrieben ...

###
locate PEAR.php hat ergeben:

/usr/share/php/PEAR.php

####
pear config-show hat ergeben:
CONFIGURATION:
==============
PEAR executables directory bin_dir /usr/bin
PEAR documentation directory doc_dir /usr/share/php/docs
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 data directory data_dir /usr/share/php/data
PHP CLI/CGI binary php_bin /usr/bin/php
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
HTTP Proxy Server Address http_proxy <not set>
PEAR server master_server pear.php.net
PEAR password (for password <not set>
maintainers)
Signature Handling Program sig_bin /usr/bin/gpg
Signature Key Directory sig_keydir /usr/share/etc/pearkeys
Signature Key Id sig_keyid <not set>
Package Signature Type sig_type gpg
PEAR username (for username <not set>
maintainers)
ich weiß net mehr weiter :-(

lg
Andreas

Re: PEAR Installationsprobleme

Posted: 2003-11-18 09:40
by drucko
Das sollte eigentlich schon alles sagen:
open_basedir restriction in effect. File is in wrong directory (/home/www/web2/html/mail/test.php:198

Mit openbasedir funktioniert natürlich nichts da die Dateien in /usr/share/pear liegen, womit du kein Zugriffsrechte erhältst, steht aber auch auf php.net
greets Drucko[/b]

Re: PEAR Installationsprobleme

Posted: 2003-11-18 14:11
by xamibor
und wie bekome ich es hin das man zugriff drauf bekommt?

lg
Andreas

Re: PEAR Installationsprobleme

Posted: 2003-11-18 14:13
by drucko
open basedir in der php.ini ausschalten

Re: PEAR Installationsprobleme

Posted: 2003-11-18 16:12
by xamibor
hat das folgen für confixx?

lg
andreas