JavaScript Editor Javascript source editor     Web programming 



Team LiB
Previous Section Next Section

Mac OS X Installation

The setup files included on the CD-ROM are suitable for Mac OS X version 10.3. Note that Apache is already installed, so no installation information is included here.

Insert the CD-ROM into your Mac and it should autoplay. If the menu screen shown in Figure 1.13 does not appear, double-click the drive icon for your CD-ROM.

Figure 1.13. The CD-ROM installation menu.


Installing MySQL

Click the button in the menu to begin installation of MySQL 4.0.21.

At the screen shown in Figure 1.14, click Next to continue.

Figure 1.14. Beginning a MySQL installation.


Click Continue to move to the next step, which contains information regarding installation. Click Continue to move to the next step, which contains licensing information. Click Continue to move to the next step.

The next step is to choose the destination. Select the appropriate drive, as shown in Figure 1.15, and then click Continue to move on.

Figure 1.15. Select MySQL destination.


The next screen verifies your installation location and requires you to press the Install button to continue. At this point, you will be prompted for the Adminstrator username and password, unless you are installing as root, before the installation process continues. Once it continues, let the process run its course until you see the installation is complete, as shown in Figure 1.16.

Figure 1.16. MySQL has been installed.


Installing PHP

Click the option on the CD-ROM menu to install PHP 5.0.2 and an installation package will open, as shown in Figure 1.17.

Figure 1.17. Beginning installation of PHP.


Click Continue to move to the next step, which will ask you to choose the destination. Select the appropriate drive, as shown in Figure 1.18, and then click Continue to move on.

Figure 1.18. Select PHP destination.


The next screen verifies your installation location and requires you to press the Install button to continue. At this point, you will be prompted for the Adminstrator username and password, unless you are installing as root, before the installation process continues. Once it continues, let the process run its course until you see the installation is complete, as shown in Figure 1.19.

Figure 1.19. PHP has been installed.


To test that PHP is now a part of your Web server, create a simple script called phpinfo.php that looks like this:

<?php
phpinfo();
?>

Place this file in your Web server document root, at /Library/WebServer/Documents. In your Web browser, visit http://localhost/phpinfo.php on your new server and you should see a page giving lots of information on the PHP configuration (see Figure 1.20).

Figure 1.20. The results of phpinfo() on a Mac OS X system.


Troubleshooting

The steps above have been tested with the versions of the software supplied on the CD-ROM that accompanies this book. If you experience installation problems, first of all check that you have followed the steps above exactly. If you continue to have difficulties, the following Web sites may be able to provide assistance:

http://www.mysql.com/doc/P/r/Problems.html

http://httpd.apache.org/docs-2.0/faq/support.html

http://www.php.net/manual/en/faq.build.php

    Team LiB
    Previous Section Next Section


    JavaScript Editor Javascript source editor     Web programming

    
    baca manga online: Komiku tv . Valo hacks