TAILIEUCHUNG - The Essential Guide to Dreamweaver CS4 with CSS, Ajax, and PHP phần 2

Nếu bạn đã từng cài MySQL trên máy tính của bạn, ngăn chặn các máy chủ MySQL và thay đổi bất kỳ ưu đãi hệ thống bắt đầu nó sẽ tự động bất cứ khi nào máy tính của bạn khởi động. MySQL không phải là cài đặt sẵn trên hệ điều hành Mac OS X, vì vậy không có gì để lo lắng về việc nếu bạn chưa bao giờ cài đặt nó. | SETTING UP A SITE IN DREAMWEAVER 2. If you have ever installed MySQL on your computer stop the MySQL server and change any system preferences that start it automatically whenever your computer starts up. MySQL is not preinstalled on Mac OS X so there s nothing to worry about if you have never installed it. 3. Click the Preferences button on the MAMP control panel. In the dialog box that opens select Ports and click the button labeled Set to default Apache and MySQL ports. The values in Apache Port and MySQL Port should be the same as those shown in Figure 2-3. 2 Figure 2-3. The default MAMP settings need to be changed. 4. Click OK. Enter your Mac password when prompted. MAMP should restart both Apache and MySQL with the standard settings for Apache and MySQL. Creating virtual hosts on Apache When it s first installed Apache is capable of hosting only one website which is identified in a local testing environment by the URL http localhost . To get around this restriction it s common practice to develop websites in subfolders of the Apache server root. For example if you have two sites called sitel and site2 and create separate subfolders for them in the server root you access them in your testing environment as http localhost sitel and http localhost site2 . This works perfectly well as long as you use document-relative links all the time. However if you want to use links relative to the site root you need to create virtual hosts for each site. Virtual hosting is a technique that web servers use to host more than one website on the same machine. If you have bought a web-hosting package from a hosting company it s almost certainly on a shared server that uses virtual hosts. Continuing with the previous example once you create virtual hosts for sitel and site2 in Apache you can test them locally using http site1 and http site2 . This is essential for testing sites that use links relative to the site root. If you re serious about web development you should learn sooner

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.