CÀI ĐẶT IIS- PHP – MYSQL – PHPMYADMIN - APPSERV

14 1.2K 3
CÀI ĐẶT IIS- PHP – MYSQL – PHPMYADMIN - APPSERV

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

CÀI ĐẶT IIS- PHP MYSQL PHPMYADMIN - APPSERV Chuẩn bị: - Vào folder \\pcnn\web\software chép các file sau về máy (Desktop) o mysql-essential-4.1.22-win32_2.msi o php-4.4.6-Win32.zip o phpMyAdmin-2.11.2.1-english.zip o appserv-win32-2.5.9.exe - Vào folder \\pcnn\soft\ chép file wrar350.exe về Desktop - Chạy file wrar350.exe đề cài win rar (nếu máy có rồi thì thôi) 1. Cài đặt IIS a. Control Panel  Add Remove Program  Add Remove Windows Components. b. Chọn Application Server  Internet Information Service  World Wide Web Service  World Wide Web Service. c. Kiểm tra quá trình install thành công bằng cách mở IE  Nhập http://localhost  Lúc này, folder gốc của webserver IIS là C:\inetpub\wwwroot 2. Cài đặt PHP a. Giải nén file php-4.4.6-Win32.zip: Click phải tại tên file  Extract Here  Đổi tên folder php4.4.6 thành PHP  di chuyển folder PHP vào ổ C: b. Click phải My Computer  Property  Chọn Tab Advance  Chọn Environment Variables  Chọn Path  Edit  Thêm ;C:\PHP rồi nhắp 3 nút OK c. Copy file C:\PHP\sapi\php4isapi.dll vào C:\PHP. d. Rename file php.ini-dist thành php.ini. e. Vào Start  Run  nhập php.ini. Nếu báo lỗi nghĩa là bước Variables Path chưa thành công, cần kiểm tra lại. Edit thông số trong php.ini như sau: Tìm extension_dir = "./" Thay bằng : extension_dir = "C:\PHP\Extensions" f. Save file php.ini 3. Cấu hình IIS để sử dụng PHP a. Vào Administrative Tool  Mở Internet Information Services (IIS) Manager. b. Chọn Default Website  Properties  Home Directory  nhắp nút Configuration  tab Mappings  Nút Add:  Executable: C:\PHP\php4isapi.dll  Extension: .php  OK c. Restart IIS. d. Kiểm tra PHP đã hoạt động bằng cách tạo một file với nội dung như sau: <?php phpinfo(); ?> e. Save lại với tên phpinfo.php và đặt vào folder C:\Inetpub\wwwroot\ f. Mở IE, gõ http://localhost/phpinfo.php.  Hiển thị nội dung như hình bên dưới. g. Nếu IE báo lỗi "The page cannot be found", cần kiểm tra lại permission của file php4isapi.dll. Mở C:\PHP  Chọn file php4isapi.dll  Chọn Property. Kiểm tra quyền read các user cần thiết như NETWORK SERVICE, ISUR_computername. Nếu không có phải add vào. Xem hình bên dưới: 4. Cài đặt MySQL a. Cài đặt MySQL [...]... phpMyAdmin: Phải chuột tại phpMyAdmin  Security  chọn IUSR Internet Guest Account (IUSR_xxx)  cấp quyền Modify (hoặc ít nhất là quyền Read) e Mở IE  Nhập http://localhost /phpmyadmin 6 Cài Appserv Appserv bao gồm Apache (Webserver, PHP, MySQL, PHPMyAdmin) Cài rất tiện lợi Muốn dùng Appserv, phải remove IIS (vì đụng port 80) hoặc dùng port khác 80 (không tiện lắm) - Remove IIS - Nhắp đúp appserv- win3 2-2 .5.9.exe... b Start  All program  MySQLMySQL Server 4.1  MySQL Command line client  Nhập mật khẩu user root  Nhập dòng lệnh: set password for root@localhost=old_password(''); 5 Cài đặt phpMyAdmin a Click phải chuột tại file phpMyAdmin2 .11.2.1-english.zip  Extract Here  Đổi te6nj folder phpMyAdmin2 .11.2.1-english thành phpMyAdmin  Di chuyển folder vào C:\Inetpub\wwwroot\... dùng Appserv, phải remove IIS (vì đụng port 80) hoặc dùng port khác 80 (không tiện lắm) - Remove IIS - Nhắp đúp appserv- win3 2-2 .5.9.exe để cài Trong lúc cài , chú ý 2 mục sau: Mục Server Name: gõ localhost Check mục :  Old Password - Chú ý: lúc này , folder gốc của webserver là C: \Appserv\ www . CÀI ĐẶT IIS- PHP – MYSQL – PHPMYADMIN - APPSERV Chuẩn bị: - Vào folder \pcnnwebsoftware chép các file sau về máy (Desktop) o mysql- essential-4.1.22-win32_2.msi. mysql- essential-4.1.22-win32_2.msi o php- 4.4.6-Win32.zip o phpMyAdmin- 2.11.2.1-english.zip o appserv- win3 2-2 .5.9.exe - Vào folder \pcnnsoft chép file wrar350.exe về Desktop - Chạy

Ngày đăng: 27/10/2013, 19:15

Hình ảnh liên quan

3. Cấu hình IIS để sử dụng PHP - CÀI ĐẶT IIS- PHP – MYSQL – PHPMYADMIN - APPSERV

3..

Cấu hình IIS để sử dụng PHP Xem tại trang 2 của tài liệu.
f. Mở IE, gõ http://localhost/phpinfo.php.  Hiển thị nội dung như hình bên dưới. - CÀI ĐẶT IIS- PHP – MYSQL – PHPMYADMIN - APPSERV

f..

Mở IE, gõ http://localhost/phpinfo.php.  Hiển thị nội dung như hình bên dưới Xem tại trang 3 của tài liệu.

Từ khóa liên quan

Tài liệu cùng người dùng

Tài liệu liên quan