On Tue, Aug 11, 2009 at 12:57 PM, dan nessett<dnessett(a)yahoo.com> wrote:
However, Dmitriy Sintsov makes the excellent point
that not everyone can change php.ini. So, I then put MWInit.php into the PEAR directory
and modified it as follows:
Um, I'm assuming the PEAR directory is not writable to the user of an
average shared webhost. Such users commonly have only FTP access to
some subdirectory of the web root. Even if it was writable, it's not
reasonable to require users to copy files into several different
directories if there's not a clear benefit. You should be able to
untar in your web root, run config/index.php, and have everything
work.
The question may arise, how do you get the value of
the MW root into MWInit.php in the first place? This can occur on MW installation.
Then you're doing almost exactly the same thing we're doing now,
except with MWInit.php instead of LocalSettings.php. $IP is normally
set in LocalSettings.php for most page views. Some places still must
figure it out independently in either case, e.g., config/index.php.
Of course, there may be a problem getting MWInit.php
into the PEAR directory, but I assume that is an easier task than modifying php.ini.
It's not, compared to not having to modify anything outside your web root.
However, if even this is a problem, then we can do
what Dmitry suggests, set an environmental variable to the MW root path.
How?