Chapter 7: Intranet (Simple web server) System 239 . You have

Chapter 7: Intranet System 239 . You have installed the PHPLIB and PEAR libraries. Normally, these are installed during PHP installation. For your convenience, we have provided these in the lib/phplib.tar.gz and lib/pear.tar.gz directories on the CD-ROM. In the sample installation steps, we assume that these are installed in the /evoknow/phplib and /evoknow/pear directories. Because your installation locations for these libraries is likely to differ, make sure that you replace these paths in the configuration files. Here is how to get your intranet applications up and running: 1. Install the framework. You need to extract the framework.tar.gz file from the ch4 directory on the CD-ROM. This file should be placed in your %DocumentRoot% directory and extracted. Once you extract it by using tar xvzf framework.tar.gz, the framework.tar.gz will install the PHP Application Framework in the %DocumentRoot%/framework directory. 2. Install the central user-authentication applications. If you have not yet installed ch5.tar.gz from the CD-ROM (in the ch05 directory), you should extract the ch5.tar.gz file using tar xvzf ch5.tar.gz command in your %DocumentRoot% directory. This installs central login/logout applications in the %DocumentRoot%/ login and %DocumentRoot%/logout applications. Make sure that you create the auth database and an administrative user as discussed in Chapter 5. The quickest way to create this database, with an administrative user account called carol and password mysecret, is to run the following commands: mysqladmin u root p create auth mysql u root p D auth < auth.sql mysql u root p D auth mysql> insert into users (EMAIL, PASSWORD, ACTIVE, TYPE) values( carol@example.com , ENCRYPT( mysecret ), 1, 9); mysql> exit The auth.sql file can be found in the ch5/sql directory on the CD-ROM. Make sure that you configure the login and logout applications using %DocumentRoot%/login/login.conf and %DocumentRoot%/logout/ logout.conf files, respectively. In most cases, you should need to change only paths and database access information. 3. Install the central user-management system. From the ch6 directory of the CD-ROM, extract the user_mngr.tar.gz file using tar xvzf user_mngr.tar.gz in your %DocumentRoot% directory.

WordPress database error: [Table 'armadillowebhosting_com_-_jsp.wp_comments' doesn't exist]
SELECT * FROM wp_comments WHERE comment_post_ID = '302' AND comment_approved = '1' ORDER BY comment_date

Leave a Reply