Databases Reference
In-Depth Information
We then click
Add
, and we get the
New server added
message. Now our setup
process knows about one MySQL server, and there are sections of the interface that
enable us to
Edit
or
Delete
these server settings:
We can have a look at the generated configuration lines by using the
Coniguration/
Display
button—then we can analyze these parameters using the explanations given
in
The config.inc.php File
section later in this chapter.
At this point, this configuration is still just in memory, so we need to save it.
This is done via the
Configuration/Save
button. It saves
config.inc.php
in the
special
config
directory we created previously. This is a directory strictly used for
configuration purposes.
The last step is to move
config.inc.php
from the
config
directory to the top-
level directory - the one that contains
index.php
. This can be done via FTP or by
commands such as
cd config
mv config.inc.php ..
As a security measure, it's recommended to change the
permission on the
config
directory - for example, with
the
chmod o-rwx config
command. This is to block any
non-authorized writing in this directory.
Other configuration parameters can be set with these web-based setup pages. To do
so, we would have to:
1.
Enable read and write access to the
config
directory
2.
Copy the
config.inc.php
there
3.
Start the web-based setup tool
In order to keep this topic's text lighter, we will only refer to the parameters' textual
values in the following chapters.
Search WWH ::
Custom Search