PEAR - Installation wird von HORDE nicht erkannt

Apache, Lighttpd, nginx, Cherokee
Post Reply
steelking
Posts: 13
Joined: 2003-11-03 05:06
 

PEAR - Installation wird von HORDE nicht erkannt

Post by steelking »

[PEAR - Installation wird von HORDE nicht erkannt]

Hallo,

ich wollte HORDE auf meinem Root-Server (Suse 8.1 / PHP 4.2.2) installieren. Leider gibt das HORDE-Testscipt "test.php" noch diverse Fehler aus. Fangen wir erstmal mit PEAR an:

PEAR wird vom Test-Script erst gar nicht erkannt, obwohl es vorhanden ist. Der Befehle "locate PEAR.php" gibt folgendes aus.

Code: Select all

p15xxxxxx:~ # locate PEAR.php
/usr/share/php/PEAR.php
Die "test.php" von Horde hingegen gibt folgendes aus:

Code: Select all

Horde Versions
Horde: 2.2.4 
PHP Version
View phpinfo() screen 
PHP Version: 4.2.2 
PHP Major Version: 4.2 
PHP Minor Version: 2 
PHP Version Classification: release 
You are running a supported version of PHP.

PHP Module Capabilities
DOM XML Support: Yes 
FTP Support: Yes 
Gettext Support: Yes 
IMAP Support: Yes 
LDAP Support: Yes 
MCAL Support: Yes 
Mcrypt Support: Yes 
MySQL Support: Yes 
PostgreSQL Support: Yes 
XML Support: Yes 

Miscellaneous PHP Settings
magic_quotes_runtime disabled: Yes 
file_uploads enabled: Yes 
safe_mode disabled: No 
If safe_mode is enabled, Horde cannot set enviroment variables, which means Horde will be unable to translate the user interface into different languages. 
trans_sid disabled: No 
Horde will work with session.trans_sid turned on, but you may see double session-ids in your URLs, and if the session name in php.ini differs from the session name configured in Horde, you may get two session ids and see other odd behavior. The URL-rewriting that trans_sid does also tends to break XHTML compliance. 

PHP Sessions
Session counter: 1 
To unregister the session: click here 

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/web5/html/horde/test.php:198) 
By the way:
Der include_path = ".:/usr/share/php" in meiner "php.ini" sollte wohl richtig sein, denke ich ?!

Ich habe den Apache bisher nur mit 'rcapache restart' neu gestartet. Kann es evt. daran liegen?

Wäre schön, wenn hier einer helfen könnte, um zumindest mal das erste Problem zu lösen !

mfg
steelking

Zu den Fehlern:

Code: Select all

Fehler: Unknown error: open_basedir restriction in effect. File is in wrong directory (/home/www/web5/html/horde/test.php:198)

Code: Select all

safe_mode disabled: No 
If safe_mode is enabled, Horde cannot set enviroment variables, which means Horde will be unable to translate the user interface into different languages.

Code: Select all

trans_sid disabled: No 
Horde will work with session.trans_sid turned on, but you may see double session-ids in your URLs, and if the session name in php.ini differs from the session name configured in Horde, you may get two session ids and see other odd behavior. The URL-rewriting that trans_sid does also tends to break XHTML compliance.
habe ich auch noch keine Ideen !
r00ty
Posts: 747
Joined: 2003-03-17 15:32
 

Re: PEAR - Installation wird von HORDE nicht erkannt

Post by r00ty »

hmm, also ich hatte auch die ganzen Probeme...
du musst dein basedir noch anpassen, dann wärst du einen Schritt weiter
poste mal deine phpinfo dieses Users....

ich hab mir allerdings jetzt suPhp installiert - damit kann ich den safemode ausschalten, da die php-geschichten jetzt mit den Rechten des Users laufen - da fallen viele viele Probleme weg...
nur läuft dann confixx nicht mehr richtig - dazu hab ich aber das Debianhowto hergenommen und nun läuft mod_php4 für confixx und der rest mit suPhp. Seit dem hab ich viele Probleme weniger
m18
Posts: 103
Joined: 2003-01-03 03:05
Contact:
 

Re: PEAR - Installation wird von HORDE nicht erkannt

Post by m18 »

Hab genau das gleiche Problem mit Horde und PEAR. Es ist alles installiert, php wurde mit pear installiert, hab den include pfad in der php.ini angepasst, trotzdem funktionierts ned :(

Weiß dazu einer ne Lösung?
m18
Posts: 103
Joined: 2003-01-03 03:05
Contact:
 

Re: PEAR - Installation wird von HORDE nicht erkannt

Post by m18 »

Habs gelöst, hätte nur zuerst die andren beiträge lesen sollen ;)

Du musst es beim entsprechenden vhost beim php admin flag open_basedir hinzufügen. also so z.b.:

Code: Select all

php_admin_value open_basedir /var/www/web1/m18.de/:/usr/lib/php/
salnet
Posts: 50
Joined: 2002-07-14 00:59
Location: Bonn
 

Re: PEAR - Installation wird von HORDE nicht erkannt

Post by salnet »

Hallo!
Ich habe das gleiche Problem. Deine Lösung hat bei mir nicht geholfen.
sascha
Posts: 1325
Joined: 2002-04-22 23:08
 

Re: PEAR - Installation wird von HORDE nicht erkannt

Post by sascha »

Dann prüfe doch mal ob der PEAR Pfad überhaupt stimmt.
salnet
Posts: 50
Joined: 2002-07-14 00:59
Location: Bonn
 

Re: PEAR - Installation wird von HORDE nicht erkannt

Post by salnet »

Ja, die Pfade stimmen.

Code: Select all

php_admin_value open_basedir /srv/www/htdocs/web0/html/:/usr/share/php/
Testseite von Horde
sascha
Posts: 1325
Joined: 2002-04-22 23:08
 

Re: PEAR - Installation wird von HORDE nicht erkannt

Post by sascha »

Da bekomme ich überhaupt keine Ausgabe. Steht was in den Logfiles?
salnet
Posts: 50
Joined: 2002-07-14 00:59
Location: Bonn
 

Re: PEAR - Installation wird von HORDE nicht erkannt

Post by salnet »

Ich habe jetzt php_admin_value open_basedir /srv/www/htdocs/web0/html/:/usr/share/php/ rausgenommen; die Anzeige der Testseite funktioniert jetzt. Ã?ndert aber nichts am Problem.
In den logs steht nichts, was passt
sascha
Posts: 1325
Joined: 2002-04-22 23:08
 

Re: PEAR - Installation wird von HORDE nicht erkannt

Post by sascha »

Ich sehe auf der phpinfo() Seite überhaupt nichts von Pear. Vermutlich ist das bei SuSE in einem extra Paket ausgelagert und muss noch installiert werden.
salnet
Posts: 50
Joined: 2002-07-14 00:59
Location: Bonn
 

Re: PEAR - Installation wird von HORDE nicht erkannt

Post by salnet »

Eine Abfrage mit 'pear list' hat bei mir folgendes ergeben:

Code: Select all

Configuration:
==============
PEAR executables directory     bin_dir         /usr/bin
PEAR documentation directory   doc_dir         /root/pear/docs
PHP extension directory        ext_dir         /root/pear/ext
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/local/bin/gpg
Signature Key Directory        sig_keydir      /etc/pearkeys
Signature Key Id               sig_keyid       <not set>
Package Signature Type         sig_type        gpg
PEAR username (for             username        <not set>
maintainers)
Komme immer noch nicht weiter...
mav1000
Posts: 30
Joined: 2003-05-16 16:55
Location: Mönchengladbach
 

Re: PEAR - Installation wird von HORDE nicht erkannt

Post by mav1000 »

@salnet

Also, wenn ich mich nicht ganz irre jetzt bekommt man mit dem Aufruf
"pear list" eine Auflistung der installierten Pear-Pakete. Die Konfiguration die du hier zeigst erhält man doch wenn man "pear config-show" tippert. 8O
Desweiteren ist PEAR doch eine Art Paketmanager ähnlich CPAN, oder ist das jetzt so nicht richtig :?:

Versuche doch mal mit "pear install...." und so weiter alle fehlenden Pakete aus der "test.php" zu installieren, oder hast du das schon gemacht :?:

gruß

mav1000
salnet
Posts: 50
Joined: 2002-07-14 00:59
Location: Bonn
 

Re: PEAR - Installation wird von HORDE nicht erkannt

Post by salnet »

Stimmt, pear config-show ist der richtige Befehl. Hab mich vertippt.
Die Pakete, die Horde braucht sind installiert, auch in einer ausreichend aktuellen Version.

Was ist PEAR?
PEAR is a repository of reusable, object oriented PHP code. PEAR provides PHP packages and classes for your PHP installation.
Post Reply