Tham khảo tài liệu 'practical mod_perl-chapter 2: getting started fast', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Page 25 Thursday November 18 2004 12 34 PM CHAPTER 2 Getting Started Fast This chapter is about getting started with mod_perl for the very impatient. If all you want is to run your existing CGI scripts in a mod_perl-enabled environment we ll try to make this as easy for you as possible. Of course we hope that you ll read the rest of the book too. But first we want to show you how simple it is to harness the power of mod_perl. On a decent machine it should take half an hour or less to compile and configure a mod_perl-based Apache server and get it running. Although there are binary distributions of mod_perl-enabled Apache servers available for various platforms we recommend that you always build mod_perl from source. It s simple to do provided you have all the proper tools on your machine and building from source circumvents possible problems with binary distributions such as those reported for the RPM packages built for Red Hat Linux. The mod_perl installation that follows has been tested on many mainstream Unix and Linux platforms. Unless you re using a very nonstandard system you should have no problems when building the basic mod_perl server. For Windows users the simplest solution is to use the binary package available from http download . Windows users may skip to the section entitled Installing mod_perl for Windows. Before we continue however we have one important bit of advice while you re learning mod_perl be sure that you experiment on a private machine and not on a production server. Installing mod_perl in Three Steps You can install mod_perl in three easy steps obtain the source files required to build mod_perl build mod_perl and install it. Building mod_perl from source requires a machine with basic development tools. In particular you will need an ANSI-compliant C compiler such as gcc and the make 25 Page 26 Thursday November 18 2004 12 34 PM utility. All standard Unix-like distributions include .