Re: Configuration probleme
| From: | Firman Wandayandi | Date: | Tue, 09 Mar 2004 10:58:37 +0000 |
| Subject: | Re: Configuration probleme | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-11179@lists.php.net to get a copy of this message | ||
Hi JaBro!
Congratulations you success with PEAR. :)
Are you mean a package documentation? I think to see that, you just open it
directly by double clicking on Windows Explorer. Or are you mean PEAR_Info?
to run it just run pear client with filename as argument, but the output was
hard to read.
Anyway, I guess you now couldn't run PEAR_Frontend_Web (via Web), In my
opinion that's nice if you installing pear under your web server document
root, cause some package example source e.g "Image" and PEAR_Info the
output will be send to browser, and package e.g phpDocumentor provide web
interface and it's more easy than using command prompt.
For addittion, here my configuration:
Apache Document Root: D:\NET\www\release\htdocs (primary, 127.0.0.1:80)
Apache Document Root: D:\NET\www\development\htdocs (virtual, 127.0.0.2:80)
PHP Version: 4.3.4
PHP Directory: C:\Programs Files\PHP
PEAR Directory: D:\NET\www\release\htdocs\PEAR"
I hope information above may use for reference, however all of these are
back to you.
If you don't understand what said, or have any question, just leave me the
message. I will try to aswer it as best I can with my pleasure.
Regards,
Firman
----- Original Message -----
From: "JaBro" <jabro@web.de>
To: <fwd@vfemail.net>
Sent: Tuesday, March 09, 2004 4:18 PM
Subject: AW: [PEAR] Configuration probleme
> Hi Firman,
>
> thanks for helping me out here. I tried to configure it manually, but it
> didn't work out. So threw my php away (was an older version anyway) and
> got me the latest PHP 4.
> With that installing/ configuring PEAR was no problem at all. There are
> only one small questions regarding the handling of PEAR left.
>
> is there a way to go thru the documentation pages of the installed
packages?
> Right now, I've installed PEAR as default, which places the Doc Files
behind
> my PHP Directory and not under my document root. So seeing them is a
little
> difficult. Is there a method to see that documentation, or is there "only"
> the PEAR manual?
>
> thx
> JaBro
>
> -----Ursprüngliche Nachricht-----
> Von: fwd@vfemail.net [mailto:fwd@vfemail.net]
> Gesendet: Montag, 8. März 2004 08:30
> An: JaBro
> Cc: PEAR-GEN
> Betreff: Re: [PEAR] Configuration probleme
>
>
> Hi JaBro,
> I think I know what's your problem.
>
> Yes you right, pear packages will not shown because the configuration is
not
> correct.
> Pear_Info actually using PEAR_Config to grab configuration values,
> PEAR_Config actually will looking for pear configuration file.
>
> I found many vary directories where configuration file located, as below:
> 1. PHP_PEAR_SYSCONF_DIR (Environment Variables), filename = pear.ini,
layer
> = user.
> 2. SystemRoot (Enviroment Variables), e.g C:\Windows, filename = pear.ini,
> layer = user.
> 3. PHP_SYSCONFDIR = Where php.ini located, filename = pear.ini, layer =
> user.
> 4. bin_dir = PEAR installed directory, filename = pear.conf, layer =
system.
> 5. bin_dir/pear, filename = pear.conf, layer = system.
>
> If you set your configuration using via PEAR Web, you should be see at the
> top corner where the file "pear.conf" saved. After that try to run
> PEAR_Info(), this should be run properly, that's all.
>
> Note: There's some configuration may false again, to resolve it, just copy
> pear.conf and rename
> with pear.ini and save in the same directory where php.ini
> located.
>
> I hope I didn't forget something, someone please correct me if I'm wrong.
>
> Good Luck,
> Firman
>
> ----- Original Message -----
> From: "JaBro" <jabro@web.de>
> To: <fwd@vfemail.net>
> Sent: Monday, March 08, 2004 1:05 AM
> Subject: AW: [PEAR] Configuration probleme
>
>
> >
> > Hi Firman,
> > thx for helping me out here, I try to explain every step I've taken:
> >
> > I've created the little go-pear.php script and ran it.
> >
> > The configuration form asked me for my settings, this is what I've typed
> in:
> > PEAR Executable directory c:\internet\pear
> > PEAR documentation directory: c:\internet\webpages\pear\docs
> > PHP extension directory: c:\apache\php4\extensions
> > PEAR directory: c:\internet\PEAR
> > PEAR Installer cache directory: c:\internet\pear\cache
> > PEAR data directory: c:\internet\PEAR\data
> > PHP CLI/CGI binary: c:\apache\php4
> > PEAR test directory: c:\internet\webpages\pear\docs
> > Cache TimeToLive: 3600
> > Preferred Package State: stable
> > Unix file mask: 0
> > Debug Log Level: 1
> > HTTP Proxy Server Address:
> > PEAR server: pear.php.net
> > PEAR password (for maintainers):
> > Signature Handling Program: c:\internet\programme\gnupg\gpg.exe
> > Signature Key Directory: c:\windows\pearkeys
> > Signature Key Id:
> > Package Signature Type: gpg
> > PEAR username (for maintainers):
> >
> >
> > My Document Root under Apache is c:\internet\webpages. I didn't think
> > it's a good idea to have pear under document root so I've put it in
> > c:\internet\pear and included it under php.ini
> >
> >
> > after this i've run http://localhost/pear/index.php
> > to start the
> > webinstaller
> > and configuration mask. There I downloaded the pear_info? package to be
> able
> > to work with Pear.
> >
> > Next Step I created the little Script below to start pearinfo
> >
> > <?php
> > require_once 'PEAR\Info.php';
> >
> > /*
> > If you need to set a http_proxy value at run-time you can use the
> > following, this must be called BEFORE instantiating the PEAR_Info
> object
> > */
> >
> > PEAR_Info::setProxy('your.proxy.here');
> >
> > /*
> > Optional pear_dir variable, allows you to choose where your PEAR
> > install is, in case its not found
> > */
> >
> > $pear_dir = "";
> >
> > /*
> > Instantiate PEAR_Info object
> > */
> >
> > $info = new PEAR_Info($pear_dir);
> >
> > /*
> > Show PEAR_Info output
> > */
> >
> > $info->show();
> > ?>
> >
> > the output I get there is: all directories there are false for the PEAR
> > config table,
> > but the pear packages are not shown probably because all directories are
> > false.
> >
> > I hope I've explained every step and hope I didn't forget anything.
> >
> > Thanks for helping.
> > JaBro
> >
> > P.s. I'm not familiar with the command prompt with php. If I need that
> > please tell
> > me exactly what I need to get started there. PHP starts after
> > cd\apache\php4\php.exe
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Hi, JaBro
> >
> > I'm really sorry, I litte confussion with your message.
> > I want to help you, because I run PEAR on Windows XP too and no
problems.
> > Can you explain it more detail, or maybe someone understand about your
> > problem?.
> >
> > Regards,
> > Firman
> >
> > ----- Original Message -----
> > From: "JaBro" <jabro@web.de>
> > To: <pear-general@lists.php.net>
> > Sent: Sunday, March 07, 2004 3:23 PM
> > Subject: [PEAR] Configuration probleme
> >
> >
> > > Hi list,
> > > I hope this isn't a big thing. Whenever I start a Pear_Info() I get
> almost
> > > the expected result back. But:
> > >
> > > 1. in the PEAR Config block:
> > > None of the directories seem to be right e.g. bin_dir is
> c:\internet\pear
> > > (which is included in php.ini)
> > > but listed is c:\php4 which is nonsense php should be in
c:\apache\php4
> > >
> > > 2. in the PEAR Packages Block:
> > > It doesn't show any of the installed packages instead I receive the
> > > following warning:
> > >
> > > Invalid argument supplied for foreach() in
> c:\internet\pear\PEAR\Info.php
> > > on line 238
> > > which is probably a result of the above
> > >
> > > I've been trying to locate something like a configuration file, but
> > couldn't
> > > find anything. What do I have
> > > to do to get my System to run with pear?
> > >
> > > Here some additional information:
> > > I've got Apache 1.3.20 and PHP 4.3.1 on winXP. The PEAR Frontend is in
> > > c:\internet\webpages\pear where
> > > (c:\internet\webpages\ is root) pear itself is in c:\internet\pear
> > >
> > > thx
> > > Jabro
> > >
> > > --
> > > PEAR General Mailing List (http://pear.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> >
> >
> >
> >
> >
> >
> >
>
>
>
>
>