tags:

views:

199

answers:

2

Hi, I need to install PEAR on a server which does not have outsite access to the net. There is no go-pear.bat in the php folder and even if it had go-pear.bat i think it needs access to the net.

I looked an the Installing PEAR from a local copy from the PEAR website. But it needs PEAR to be already installed for it to work.

So do any of you guys know how to install PEAR without access to internet?

+1  A: 

You don't need PEAR installed on the webhost, just on your local machine. The two main approches are

  • Track your dependencies manually, and copy all the appropriate files to the server yourself
  • With pear installed on your local machine, do pear install -R/my/root_dir -a PEAR. This will install the PEAR package and all dependencies to the specified root directory. Copy this installation to your webhost.

I think it's possible to use pear to manage an installation via FTP also. I never tried.

You should also have a look at "pear help" and "pear help install".

gnud
I just need to install PEAR. so can use `pear install -R /my/root_dir -a PEAR` ?
andho
Im getting this errorCould not download from "http://pear.php.net/get/PEAR-1.9.0.tgz", cannot download "pear/PEAR" (File http://pear.php.net:80/get/PEAR-1.9.0.tgz not valid (received: HTTP/1.1 500 ( The specified network name is no longer available. )))Error: cannot download "pear/PEAR"
andho
Ooopsie. The spreadsheet stuff was copy/pasted from an older answer of mine. Sorry, fixed.
gnud
Check if a normal pear installation works. The command I posted worked for me - it recreated a whole directory tree under `/my/root_dir`.
gnud
+1  A: 
Ngu Soon Hui