392 Part II: Developing Intranet Solutions . Your (Web design rates)

392 Part II: Developing Intranet Solutions . Your intranet Web server document root directory is /evoknow/intranet/ htdocs. Of course, if you have a different path, which is likely, you should change this path whenever you see it in a configuration file or instruction in this chapter. During the installation process, I will refer to this directory as %DocumentRoot%. . Finally I also assume that You have installed the PHPLIB and PEAR library. Normally, these gets installed during PHP installation. For your convenience, I have provided these in the lib/phplib.tar.gz and lib/pear.tar.gz directories on the CD-ROM. In these sample installation steps, we will assume that these are installed in the /%DocumentRoot%/phplib and /%DocumentRoot%/pear directories. Because your installation locations for these libraries are likely to differ, make sure you replace these paths in the configuration files. Here is how you can get your IRM applications up and running: . Install Base Intranet Applications. If you haven t yet installed the base intranet user home application and the messaging system discussed in Chapter 7, you must do so before proceeding further. . Install Intranet Calendar Database Tables. I make the assumption that you have already installed the INTRANET database (see Chapter 7 for details). You need to install the ch11/sql/irm.sql database. The quickest way to create the database is to run the following commands: mysqladmin u root p create IRM mysql u root p D IRM < irm.sql . Install IRM Applications. Now from the ch11 directory on the CD-ROM, extract ch11.tar.gz in %DocuemntRoot%. This will create irm in your document root. Configure %DocumentRoot%/irm/apps/irm.conf for path and database settings. The applications are installed in the %DocumentRoot%/ irm/apps directory and the templates are stored in %DocumentRoot%/irm/ apps/templates. Your MySQL server is hosted on the intranet Web server and, therefore, it can be accessed via localhost. However, if this is not the case, you can easily modify the database URLs in each application s configuration files. For example, the home.conf file has a MySQL database access URLs such as the following: $INTRA_DB_URL = mysql://root:foobar@localhost/INTRANET ; $IRM_DB_URL = mysql://root:foobar@localhost/CALENDAR ; $APP_DB_URL = mysql://root:foobar@localhost/auth ;

Leave a Reply