optimal PEAR installation directory
| From: | Stephen Dewey | Date: | Sat, 14 Jun 2008 21:03:58 +0000 |
| Subject: | optimal PEAR installation directory | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-29010@lists.php.net to get a copy of this message | ||
Hi there,
I just installed PEAR in a subfolder called 'pear' in the web folder
for my website. However, I realized after I did this that it might not
have been the best location to install PEAR. 2 considerations on my
mind are:
1. It's generally not a good idea to put files in your web folder that
you don't intend outside users to view, even if you intend to deny
access with Apache.
2. I have 2 websites on this server, and I'd like both of them to run
PEAR. I was going to install PEAR separately in both of them, but that
doesn't seem to make much sense.
On the other hand, if I put the files elsewhere, PHP might not be able
to access them.
So I'm just wondering what the generally-recommended location for PEAR
installation is. Clearly it's contemplated that it might be in a web
directory since go-pear can be run from the web, but I'm wondering
about non-web locations
If it makes a difference, I'm running Red Hat Enterprise Linux 5.1 and
I have root access.
Thanks for your help!
Stephen