Đang chuẩn bị liên kết để tải về tài liệu:
Securing and Optimizing Linux RedHat Edition phần 9
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
chúng ta phải thử nghiệm các tính năng mới PHP4 để chắc chắn nó làm việc. Chúng tôi sẽ tạo một file PHP nhỏ có tên "php.php" trong DocumentRoot của chúng tôi, và sau đó điểm broswer web của chúng tôi để tài liệu này để xem PHP4 PHP làm việc | Server Software Web Network Services CHAPTER 1 9 Step 2 You must restart the Apache web server for the changes to take effect To restart Apache use the following commands root@deep etc rc.d init.d httpd restart Shutting down http OK Starting httpd OK Step 3 Once the above lines have been included in our httpd.conf file we must test the new PHP4 feature to be sure it s working. We ll create a small PHP file named php.php in our DocumentRoot and then point our web broswer to this PHP document to see if PHP4 work on the server. Create the php.php file in your DocumentRoot touch home httpd ona php.php and add the following lines in the PHP file body bgcolor FFFFFF php phpinfo body NOTE These lines will inform PHP4 program to display various pieces of information about the configuration of our Linux server. Step 4 Now point your web browser to the following address http my-web-server php.php The my-web-server is the address where your Apache web server lives and php.php is the PHP document we have created above to display the information and configuration of our Linux server. 386 Copyright 1999 - 2000 Gerhard Mourani Open Network Architecture and OpenDocs Publishing Server Software Web Network Services CHAPTER 1 9 If you see something like the above page appearing in your web browser. congratulations Your PHP module is working. Perl module Devel Symdump If you intend to use the mod_perl programming language support with your Apache web server it can be interesting to install the small perl module program named Devel Symdump . This third party module will allow you to inspect perl s symbol table and the class hierarchies within a running program. To build and install it follow these steps. Packages Devel-Symdump Homepage http www.perl.com CPAN modules by-module Devel You must be sure to download Devel-Symdump-2_00_tar.gz Devel-Symdump version number is 2.00 root@deep cp Devel-Symdump-version.tar.gz var tmp root@deep cd var tmp root@deep tmp tar xzpf .