php + pear

Alles, was PHP betrifft, kann hier besprochen werden.

php + pear

Postby Olaf » 27. December 2002 11:18

Hallo!!

Kann mir evtl. mal jemand sagen, wie man die PEAR Klassen richtig installiert ohne auf die php.ini zugreifen zu müssen?

http://pear.php.net und etliche andere Seiten, habe ich schon durchforstet und leider nicht so richtig verstanden oder tote links gehabt :cry: .

Will es einmal bei meinem Hoster installieren und bei mir zuhause auffn LAMPP :wink: .

Danke + Gruß

Olaf
Olaf
 

Postby Oswald » 28. December 2002 20:17

Hallo Olaf!

Mit LAMPP sollte es eigentlich ganz einfach gehen.

Zum Beispiel zum Anzeigen aller PEAR-Pakete einfach folgendes aufrufen:

Code: Select all
/opt/lampp/bin/pear list-all


Oder zum Installieren eines PEAR-Pakets (hier das Pager Paket):

Code: Select all
/opt/lampp/bin/pear install pager


Gerade getestet mit den 0.9.6er Versionen von LAMPP.

Klappt's bei Dir?

Grüße,
Oswald ;)
User avatar
Oswald
Apache Friends
 
Posts: 2718
Joined: 26. December 2002 19:51
Location: Berlin, Germany
Operating System: Linux

THX, but..

Postby Olaf » 04. January 2003 10:17

Hi Kai,

sorry für die späte Antwort.
Ich würde lieber gerne wissen, wie ich pear bei meinem Hoster installieren kann. Habe keinen Shell Zugriff und ich glaube auch keinen php.ini zugriff.

Gibt es da irgendwie einen Trick oder muss ich den Hoster darum bitten??


Danke + Gruss
Olaf
Olaf
 
Posts: 32
Joined: 27. December 2002 11:15

könnte helfen...

Postby deep » 04. January 2003 10:31

.
hab dasselbe problem (allerdings unter win / lokal), weil ich phpwebsite 0.9 ausprobieren will - problem ist gleich...

von 'phpwebsite' habe ich eine problemlösung für non-root access auf hosterservern (pearlibs), die müsstest du nur auf deine problematik angleichen, dann sollte es funktionieren >>


PEAR:
---------------------------------------------------------
Here are the direction for installing the PEAR libs on PHP 4.X.

First download the newest copy from http://phpwebsite.appstate.edu/downloads/pear/
You do not need to worry about your php version. The pear libs do not need to match
your php version so download the newest one.

There are two different install methods you can do. It depends if you have root
access for the computer you are installing this on.

ROOT ACCESS
Look in your php.ini file and find the "include_path" variable. If you are unsure
where the php.ini file is located then place a file with this script <?php phpinfo(); ?>
in your webroot and run it. This will reveal the location of the file. THe php.ini
will have something like ".:/usr/local/lib/php" These are your paths for includes "."
- local folder and "/usr/local/lib/php" - pear libs location. You can ether add a new
location or put the pear stuff in "/usr/local/lib/php" if that is your path. It is save
to overwrite the old pear libs but you may want backups.

NON ROOT ACCESS
All you do is put all the pear stuff from the file in a "pear" directory in the root of your
website. Then create a .htaccess (apache only) file in the phpWebSite base with the following
line:

php_value include_path ".:/your_phpwebsite_dir/pear/"

Also remember this method will require you to do this for all phpwebsite sites. The previous
entry will be one set of code for your entire server.

HTML TEMPLATE PACKAGE
Once you have your pear stuff in place you will need to extract the HTML_Template_IT-1.0.0.tgz
into the HTML directory (path will look similar to this "/usr/local/lib/php/HTML/"), or the
pear/HTML directory will be your phpWebSite base if you followed instructions for NON ROOT
ACCESS. This extra step was added since pear libraries used by the new core were recently
updated (a new naming scheme for pear packages was implemented).

------------------

genauso etwa könntest du verfahren - hope that helps...

gruss
deep

PS:
helfen könnte unter umständen auch eine lokale testinstallation von 'phpwebsite 0.9', um erkennen zu können, wie genau das gemeint ist - weil das nicht ganz einfach zu verstehen ist... >>
http://phpwebsite.appstate.edu/download ... rc2.tar.gz
User avatar
deep
 
Posts: 23
Joined: 03. January 2003 16:14
Location: Cologne


Return to PHP

Who is online

Users browsing this forum: No registered users and 23 guests