Discussion:
PEAR COMMAND UNDER FIREWALL
Erico Henrique Guimaraes
2004-09-30 16:38:56 UTC
Permalink
Sirs,

After reinstalling PHP4.38 and some workarounds because of a firewall, I
manage to install PEAR-PACKAGES. And as some PEAR packages are not provided
during installation, I have to command 'pear install <package>' in DOS
PROMPT to install other packages, such as HTML and AUTH packages. However, I
get the message below whenever I try H:\php4\pear install Auth or
H:\php4\pear install HTML or any command which requires connection to a
remote server.

Warning: fsockopen(): unable to connect to pear.php.net:80 in
xml_rpc_client: Connection to RPC server pear.php.net failed

I know this problem happens because of the firewall. I opened RPC.php on
line 469 and insert the IP proxy and port parameters but kept on returning
the same error.
I wonder if I just download such packages and rename them
(eg.,Auth-1[1].3.0r3 for Auth) under my tree I would have any problems. Can
you help me out solving this?

Best regards

Érico
Michael Wallner
2004-09-30 17:28:57 UTC
Permalink
Post by Erico Henrique Guimaraes
I know this problem happens because of the firewall. I opened RPC.php
on line 469 and insert the IP proxy and port parameters but kept on
returning the same error.
You can configure your proxy settings.
Have a look at:

$ pear config-show
$ pear help config-set

Regards,
--
Michael - < mike(@)php.net >
Continue reading on narkive:
Loading...