Publishing AJAX and PHP - part 27

Xin chúc mừng, bạn chỉ cần hoàn tất cài đặt Apache, MySQL, và PHP! Các cấu hình thiết lập chưa được hoàn tất. Nếu bạn đang chạy Windows (và có thể bạn đang có, kể từ khi bạn đang đọc này), xin vui lòng bỏ qua nix * Chuẩn bị sân chơi của bạn phần, và đi qua các phpMyAdmin Cài đặt và chuẩn bị cơ sở dữ liệu AJAX phần cuối của phụ lục này. | Preparing Your Working Environment 11. Create a folder called ajax under the htdocs folder by default c Program Files Apache Group Apache2 htdocs . 12. To make sure that your Apache instance can also correctly parse PHP code create a file named in the ajax folder and then add the following code to it php phpi nfo 13. Point your web browser to http localhost ajax or http localhost 8080 ajax if you installed Apache to work on port 8080 to test if everything went OK with the installation. You should get a page like this Figure PHP Installation Working Congratulations you just finished installing Apache MySQL and PHP The configuration set up isn t yet finished. If you re running Windows and you probably are since you re reading this please skip the Preparing Your nix Playground section and go through the Installing phpMyAdmin and Preparing the AJAX Database sections at the end of this appendix. 260 Appendix A Preparing Your nix Playground Almost all the UNIX and Linux distributions include Apache PHP and MySQL however you should check the versions of these programs. It would be good to have MySQL or newer and it s very important to have at least PHP 5. The code in this book will not work with older versions of PHP. Installing Apache To install Apache on your Unix-based server follow these simple steps 1. First download the latest Apache Unix Source code for your system from http httpd .apache .org and decompress it with a command such as tar -zxvf 2. To compile and install the Apache Web Server on your system go to the folder containing the sources and execute the following commands while logged in as root . configure prefix usr local apache2 enable-so enable-ssl with-ssl enable-auth-digest make make install Installing MySQL The official website of MySQL is http .com. At the time of this writing the latest stable version is MySQL and you can download it from http .com downloads

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
12    95    2    30-06-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.