How to do everything with PHP (phần 2)

Tham khảo tài liệu 'how to do everything with php (phần 2)', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 34 How to Do Everything with PHP MySQL FIGURE 2-6 Configuring the PHP source tree The PHP configuration process is extremely sophisticated enabling you to control many aspects of PHP s behavior. To see a complete list of available options use the command . configure - -help and visit http manual en for detailed explanations of what each option does. 7. Next compile and install PHP using make and make install root@host make root@host make install Figure 2-7 illustrates what you might see during the compilation process. PHP should now be installed to usr local php5 . 8. The next step in the installation process consists of configuring Apache to correctly recognize requests for PHP pages. This is accomplished by opening the Apache configuration file which is found in the conf subdirectory of the Apache installation directory in a text editor and adding the following line to it. AddType application x-httpd-php .php TEAM Line CHAPTER 2 Setting Up a PHP-MySQL Development Environment 35 FIGURE 2-7 Compiling PHP 2 9. Save the changes to the file. Also check to make sure this line appears somewhere in the file LoadModule php5_module libexec The PHP installation process should automatically add this line to the file but it has been known to fail. If you don t see it add it yourself. 10. Start the Apache server by manually running the apachectl script. root@host usr local apache bin apachectl start Apache should start up normally. Figure 2-8 demonstrates what you will see as the server starts up. Once installation is successfully completed and the server has started move down to the section entitled Testing Apache and PHP to verify that all is functioning as it should. Installing on Windows Compiling applications on Windows is a challenging process especially for novice developers. With this in mind it is advisable for Windows users to focus instead on installing and configuring prebuilt binary releases of MySQL PHP and Apache .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
187    27    1    30-11-2024
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.