Apache Server _ PHP.pdf

(400 KB) Pobierz
Linux Web Solution with Apache, PHP, MySQL, and ht://Dig
7HFKQLFDO*XLGH
November 2000
13T3-1100A-WWEN
/LQX[:HE6ROXWLRQZLWK
$SDFKH3+30\64/DQG
KW'LJ
Prepared by
dotCOM & Service Provider
Solutions
Compaq Computer Corporation
Contents
Solution Overview ........................ 5
Sizing Considerations .................. 8
Installing and Verifying
Components ................................. 11
Managing an Apache Server ...... 24
Further Reading .......................... 27
Abstract
Of all the web servers on the market today, Apache is most popular
because it supplies basic web server functionality right out of the
box. Yet, many customers want a more sophisticated website, one
with SQL database functionality, search capabilities, and server-side
scripting. The complexity and interdependencies of these packages
make it difficult for independent software vendors, solution
developers, and website administrators to put together a solution.
Customizing the Apache server with additional functionality can be
complex on the Linux platform. The solutions for extending
functionality are just not obvious.
This technical guide demonstrates how to integrate PHP, MySQL,
and ht://Dig with the Apache server. Independent software vendors,
solution developers, programmers, and website administrators can
use this guide to plan and deploy advanced Apache web servers on
the Linux platform.
Send your comments and questions on this solution to
activeanswers_support@compaq.com . Please include the Document
Number (shown in the upper left corner of this page) in the Subject line of
your message.
7537421.001.png
/LQX[:HE6ROXWLRQZLWK$SDFKH3+30\64/DQGKW'LJ
Notice
The information in this publication is subject to change without notice and is provided “AS IS” WITHOUT
WARRANTY OF ANY KIND. THE ENTIRE RISK ARISING OUT OF THE USE OF THIS
INFORMATION REMAINS WITH RECIPIENT. IN NO EVENT SHALL COMPAQ BE LIABLE FOR
ANY DIRECT, CONSEQUENTIAL, INCIDENTAL, SPECIAL, PUNITIVE OR OTHER DAMAGES
WHATSOEVER (INCLUDING WITHOUT LIMITATION, DAMAGES FOR LOSS OF BUSINESS
PROFITS, BUSINESS INTERRUPTION OR LOSS OF BUSINESS INFORMATION), EVEN IF
COMPAQ HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
The limited warranties for Compaq products are exclusively set forth in the documentation accompanying
such products. Nothing herein should be construed as constituting a further or additional warranty.
This publication does not constitute an endorsement of the product or products that were tested. The
configuration or configurations tested or described may or may not be the only available solution. This test
is not a determination or product quality or correctness, nor does it ensure compliance with any federal
state or local requirements.
Compaq, Deskpro, Compaq Insight Manager, Systempro, Systempro/LT, ProLiant, ROMPaq, QVision,
SmartStart, NetFlex, QuickFind, PaqFax, and Prosignia are registered with the United States Patent and
Trademark Office.
ActiveAnswers, Tru64, Netelligent, Systempro/XL, SoftPaq, Fastart, QuickBlank, QuickLock are
trademarks and/or service marks of Compaq Computer Corporation.
Microsoft, Windows, and Windows NT are trademarks and/or registered trademarks of Microsoft
Corporation.
Intel, Pentium, and Xeon are trademarks and/or registered trademarks of Intel Corporation.
UNIX is a registered trademark in the United States and other countries licensed exclusively through
X/Open Company Ltd.
Linux is a registered trademark of Linus Torvalds.
Red Hat, the Red Hat "Shadow Man" logo, RPM, Maximum RPM, the RPM logo, Linux Library,
PowerTools, Linux Undercover, RHmember, RHmember More, Rough Cuts, Rawhide and all Red Hat-
based trademarks and logos are trademarks or registered trademarks of Red Hat, Inc. in the United States
and other countries.
SuSE is a trademark of SuSE Inc.
Other product names mentioned herein may be trademarks and/or registered trademarks of their respective
companies.
©2000 Compaq Computer Corporation.
All rights reserved. Printed in the U.S.A.
Linux Web Solution with Apache, PHP, MySQL, and ht://Dig Technical Guide
Prepared by dotCOM & Service Provider Solutions
First Edition (November 2000)
Document Number 13T3-1100A-WWEN
13T3-1100A-WWEN
/LQX[:HE6ROXWLRQZLWK$SDFKH3+30\64/DQGKW'LJ
Table of Contents
13T3-1100A-WWEN
7537421.002.png
/LQX[:HE6ROXWLRQZLWK$SDFKH3+30\64/DQGKW'LJ
13T3-1100A-WWEN
/LQX[:HE6ROXWLRQZLWK$SDFKH3+30\64/DQGKW'LJ
1 Solution Overview
This document describes how to install, configure, and deploy a sophisticated Apache website on
the Linux operating system. Such a website includes the powerful, server-side scripting language,
PHP3, access to the full-featured SQL database, MySQL and the ht://Dig search engine. All of
the software packages described in this document are open source applications.
What makes open source software so attractive? First of all, it is free. Secondly, you get copies of
the software source code, which frees you to control the software to meet your short-term and
long-term requirements.
The key points of open source software restrictions are that no one:
·
Distributes the product without the source code (or, a list of differences between the modified
version and the original) and a copy of all related documentation
·
Charges for the software itself (only for its distribution)
Can impose restriction on its distribution
For more information on licensing, refer to the regulations defined by the Open Source Initiative
1.1 Apache Web Server
Apache is more widely used than all other web servers combined. A survey by Netcraft in
September 2000 substantiates this claim. After polling over 21 million sites for web server
software usage on Internet-connected computers, they found that over 61% of all Internet
websites run on the Apache server. (For updates, see http://www.netcraft.com/survey/ ) .
Clearly, the Apache Software Foundation is meeting its goal “to provide a secure, efficient, and
extensible server that keeps its HTTP services in step with HTTP standards.”
The Apache Web Server Project homepage contains versions of the Apache server and
corresponding documentation that you can download. The official website for the Apache Web
Getting Support on Apache
In addition to online documentation and a list of frequently asked questions, the Apache site
maintains a number of mailing lists. To receive mail from other Apache developers about code
releases, bug fixes, security fixes, and other information, join one, such as announce@apache.org.
Locate the mailing list at http://www.apache.org/announcelist.html.
1.2 PHP3 Scripting Language
The PHP (originally Personal Home Page) scripting language supports the creation of dynamic,
customized websites. With PHP, developers embed scripts within web pages. The web server
calls PHP to perform the script operations, and then the server returns the page to the user.
Functionally, PHP and the Microsoft Active Server Page (ASP) scripting language are quite
similar.
13T3-1100A-WWEN
·
7537421.003.png
Zgłoś jeśli naruszono regulamin