Wiley 978-0-7645-7966-0 Datasheet

Browse online or download Datasheet for Software manuals Wiley 978-0-7645-7966-0. Wiley Beginning PHP5, Apache, and MySQL Web Development User Manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 24
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 0
1
Configuring Your
Installation
You’ve spent your hard-earned money and purchased this book, so you undoubtedly know the
enormous benefits of using PHP, Apache, and MySQL together to create your Web site. But in case
you found this book on your desk one Monday morning with a sticky note reading “Learn this!,”
this chapter looks at the basics of PHP, MySQL, and Apache to show you what makes the “AMP”
combination so popular. This chapter also walks you through the procedure for installing all three
components of the AMP module and advises you on how to best configure the software to meet
your specific needs.
Projects in This Book
Over the course of this book, you will develop two complete Web sites:
Movie Review Web site. Developing this site introduces you to writing a PHP program,
making your pages look professional, working with variables and includes, and integrat-
ing PHP with MySQL to make your site truly dynamic as pages are created on the fly for
your Web site visitor. You will also get experience in error handling and data validation
while working on this site.
Comic Book Fan Web site. The creation of this Web site takes you through the steps of
building databases from scratch, manipulating images and sending out e-mails using
PHP, authenticating users, managing content through CMS, creating a mailing list, setting
up an e-commerce section, and developing and customizing a discussion forum.
Finally, this book covers how to learn about your visitors through the use of log files and how to
troubleshoot common mistakes or problems. The appendixes in this book provide you with the
necessary reference materials you’ll need to assist you in your Web site development journey and
offer tools to make you more efficient.
04_579665 ch01.qxd 12/30/04 8:09 PM Page 3
COPYRIGHTED MATERIAL
Page view 0
1 2 3 4 5 6 ... 23 24

Summary of Contents

Page 1 - COPYRIGHTED MATERIAL

1Configuring YourInstallation You’ve spent your hard-earned money and purchased this book, so you undoubtedly know theenormous benefits of using PHP,

Page 2 - MySQL, and Open Source

1. Locate the section of the file that resembles this text:## DocumentRoot: The directory out of which you will serve your# documents. By default, all

Page 3 - Module Work Together

Figure 1-1Configuring Your PHP InstallationOnce PHP has been installed on your computer, you can customize it to fit your needs. Although someof the c

Page 4

<?phpecho “If this works, we <i>really</i> did it!”;?></BODY></HTML>Save this file as phptest.php. Open your browser and

Page 5

Setting What It Doesshort_open_tag Allows short tags to be parsed (<? and ?> as opposed to <?phpand ?>).asp_tags Allows ASP-style tags to

Page 6 - AMP Installers

Setting What It Doesfile_uploads Enables Web site visitors to upload files to your server.upload_max_filesize Sets the limit for how large an uploaded

Page 7

Configuring Your MySQL InstallationMySQL needs TCP/IP protocols to run properly, regardless of the Windows environment. You mustinstall TCP/IP before

Page 8

Figure 1-43. Now you should test to make sure your MySQL server is running. Although there are manypossible commands to test the server, to keep thing

Page 9

6. To shut down the MySQL service, typeC:\>c:\mysql\bin\mysqladmin -u root shutdownIt’s time to configure your system to improve security, set up s

Page 10 - Chapter 1

3. Now see what tables are there. Type the following:mysql> show tables;You should see what is depicted in Figure 1-8.Figure 1-84. By default, MySQ

Page 11 - Testing Your Installation

5. Because you want to set up a secure service, you want to change the blank user for the localhost host. Type the following:mysql> DELETE FROM use

Page 12 - Customizing Your Installation

After reading this book, you will be able to create a well-designed, dynamic Web site using tools avail-able for free. Although this book is not inten

Page 13 - Configuring Your Installation

The difference in these files is presumably the amount of space you have on your computer dedicatedto processing query requests and so on. For the pur

Page 14 - Configuring PHP5 to Use MySQL

#innodb_log_arch_dir = c:\iblogs#set-variable = innodb_mirrored_log_groups=1#set-variable = innodb_log_files_in_group=3#set-variable = innodb_log_file

Page 15

Second, we’ll discuss altering the log-bin configuration option that can be found in the following sec-tion of the my.cnf file:# Uncomment the followi

Page 16

As you become more familiar with working with tables and MySQL commands, modifying privileges oruser information will become easier for you because th

Page 17

SummaryBy now, you should have an idea of what AMP is and how it fits into the open source initiative. Youknow that the abbreviation AMP refers to Apa

Page 18

❑ They are cross-platform and “technology-neutral.” By requiring open source software to benon–platform specific, the open source community has ensure

Page 19

When a patron (or Web site visitor) comes to your restaurant, he or she sits down and orders a meal withspecific requirements, such as a steak, well d

Page 20

confuse the masses). Its flexibility and relatively small learning curve (especially for programmers whohave a background in C, Java, or Perl) make it

Page 21

AMP InstallersIf you’d like to take your entire Saturday afternoon to install each of these components separately, feelfree to refer to Appendix I at

Page 22

Testing Your InstallationTo test installation of your Apache server, open your Web browser and type the following:http://localhost/If your installatio

Page 23 - Valuable Resources

Finally, if you are still experiencing problems and you are running a Windows system, The ApacheFoundation has provided a nifty document about some ot

Page 24

#LoadModule auth_anon_module modules/mod_auth_anon.so#LoadModule auth_dbm_module modules/mod_auth_dbm.so#LoadModule auth_digest_module modules/mod_aut

Comments to this Manuals

No comments