Nam G VU
Nam G VU

Reputation: 35444

Installing pear path definitions

While installing pear by following this guide, I run into choices of paths which I have no idea what they are:

  1. Public Web Files directory and
  2. Name of configuration file

i.e. the #9 and #11 when executing <php.exe> -c <path-to-your-php.ini-location> <path to>\go-pear.phar

I found the definition here but that seems to be outdated.

So my question is what are the 1) Public Web Files directory and 2) Name of configuration file?

Thank you!

Upvotes: 1

Views: 1362

Answers (2)

Soph
Soph

Reputation: 2915

May I suggest this guide? Helped me a great deal. I accepted all default configurations, and in case you have any problem afterwards, you can (for example) change the location of you public web files with the command

pear config-set www_dir /new/myPath

The configuration file (you actually specify both path and configuration file name) is the file which will contain all pear settings such as where will PEAR executables reside, if the preferred state is stable or beta, and more.

Again, I would just go with the default configurations, knowing that with the command "config-set" you can change them at any time. This wiki is quite good, hope this helps.

You are right though, I searched the Pear documentation from head to toes and couldn't find a specific explanation of what those 2 configuration settings are.

Upvotes: 3

cweiske
cweiske

Reputation: 31146

Public Web Files directory

Directory where files for web applications get installed to. You seldom come across packages that use them.

When you use such a package/application, you need to point your web server's document root directory to it.

Configuration file name

You need to create a custom configuration file for your shared host setup.

How to do it is shown on the top of the page:

$ pear config-create /home/user/pear .pearrc

Use the full path to this file as config file name.

Upvotes: 2

Related Questions