Appendix C. Programming Environment

Building Your Own Environment

All of the software used in this book can be downloaded for free. The following subsections provide information in obtaining everything you need to run and modify scripts found in this book or in Appendix A.

Apache Web Server

You can download the Apache Web Server at http://www.apache.org. There are many versions of Apache including Windows and Linux.

Perl

Most Linux installations come with Perl. You can also download it manually at http://www.perl.org. You can use http://www.cpan.org to find any missing Perl modules. If you are using a Windows operating system, you can download Perl from http://www.activestate.com.

PHP

You can download PHP from http://www.php.net. There are Windows versions as well as binaries for many other systems. Most Linux systems come with PHP.

MySQL

MySQL is now owned by Oracle. You can download the free MySQL Community Server at http://www.mysql.com. It comes in many different versions while supporting many different operating systems. You can use PhpMyAdmin to administer your MySQL databases.

Utilizing Distribution Packages

If you don’t have time to set up your environment from scratch, you can download one of the many distribution packages. These packages include all of the servers as well as PHP and Perl. Here are some of the popular ones:

XAMPP

Includes Apache, PHP, Perl, and MySQL (runs on Windows, Mac, and Linux)

WAMP

Includes Apache, MySQL, and PHP for Windows

MAMP

Includes Apache, MySQL, and PHP for Mac OS

The installation process is fairly simple on most operating systems. After a few minutes, you should have a full development environment running. The first thing you may want to do is find out your web root folder so that you know where to place your files. If you have installed Apache using the default HTTP port (80), you should be able to browse to your local site by going to http://localhost. If you need further instructions, follow the help available on each site.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.227.111.208