Why does PEAR get installed to my user directory?

Posted by webworm on Stack Overflow See other posts from Stack Overflow or by webworm
Published on 2010-03-19T23:30:18Z Indexed on 2010/03/19 23:31 UTC
Read the original article Hit count: 229

Filed under:
|
|

I am new to Linux and I am attempting to install the PHP PEAR library on a virtual server which is running Ubuntu. I am following a tutorial that covers installing PEAR but have run up against an area where I am confused. When running the PEAR installation program I am prompted as to what I want the INSTALL_PREFIX to be. Evidently the INSTALL_PREFIX, among other things, determines where PEAR will be installed. The tutorial suggest the value of INSTALL_PREFIX be the following path ...

"/home/MY_USER_NAME/pear"

where MY_USER_NAME = my user account

Having come from a Windows world, applications are installed on the system where everyone can use them. If I install PEAR underneath my user directory will other developers on the system be able to make use of PEAR in their PHP scripts? I want to make PEAR available to all users and not just myself.

Could someone explain to me the difference between installing for all users and installing just for myself? Does the install location matter? Should I be installing PEAR in a different location?

Thanks for any suggestions.

P.S. The tutorial I am following is located at the following URL ...

http://articles.sitepoint.com/article/getting-started-with-pear/2

© Stack Overflow or respective owner

Related posts about pear

Related posts about install