# Installation of the phone book

So, we shall start...
The following in advance adjusted services will be necessary For installation of the given program to you - web-server "Apache" (http://httpd.apache.org) with included support "PHP5" (http://www.php.net), library "GDlib" and "DOM XML" (or, as a variant - too most, but adjusted on work with "Microsoft IIS") and a server of databases "MySQL" 5.x version (http://www.mysql.org). If to potter with adjustment of all listed components it would not be desirable at all basically it is possible to lift the directory on an available cursor. For the given purposes for example the project "XAMPP" quite will approach (http://www.xampp.org).
I periodically use it.
For use applications of the "Phone book" in work it is better to configure certainly all necessary services by handles (this variant will be more correct, and it is more reliable; always you know that, where and as...).

Well and now it is direct about installation:
1. Unpack contents of archive in a corresponding folder of a web-server (for example at "Apache" it usually folder "htdocs"; at "IIS" more often "wwwroot". In general it seem to know better to you as the server is adjusted concrete, your.).
2. In a configuration file of a server "MySQL" (it is usual C:\WINDOWS\my.ini), "section [server]", well to add next lines (for correct sorting symbols)
[server]
default-character-set=utf8
collation-server=utf8_unicode_ci
skip-character-set-client-handshake
then restart service.
3. Edit files config.php (being folders personal and personal/admin), specify the address of server MySQL, is by default installed - localhost or 127.0.0.1 and change access rights to them on "only for reading". For Linux install chmod 444.

4. In a configuration file php.ini uncomment next lines:
extension=php_domxml.dll (for correct work parser weathers)
extension=php_gd2.dll (for correct work of the directory with pictures)
extension=php_pop3.dll (the directory uses standard function PHP - mail)
extension=php_smtp.dll (the directory uses standard function PHP - mail)
extension=php_mysql.dll (for work with a MySQL-server)
Then we restart an Apache-server.
5. Load databases on a server "MySQL". To make it it is simple enough:
5.1 It is possible use the console "MySQL" server (copy in the buffer - Personal\Admin\util\MakeBasePersonal.sql then insert it into console "MySQL");
5.2 It is possible use the special software, for example I use the program "SQLyog" (http://www.webyog.com). In it there is very useful function - "Restore from SQL Dump" in menu "Tools". Tell, that wish to restore dump from file Personal\Admin\util\MakeBasePersonal.sql and wait when you script execute.
5.3 But there is a way easier! Come on a page "personal/install.php", fill necessary fields and press button "Install". (after installation remove files "personal/install.php" and "personal/install_run.php"!)
6. We come on a page http://127.0.0.1 or http://127.0.0.1/admin
(the second reference login:admin, password:admin).
On it everything, the directory is established and ready to work.

P.S.: if you have taken advantage of the project "XAMPP" and anything in it did not recustomize, in the directory it will be possible to get to following http://127.0.0.1/personal