2010-03-28 22:10:10 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 05:47:02 +00:00
|
|
|
<!-- $Revision$ -->
|
2007-06-20 22:25:43 +00:00
|
|
|
<chapter xml:id="install.general" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
2004-06-03 22:45:11 +00:00
|
|
|
<title>General Installation Considerations</title>
|
|
|
|
<para>
|
|
|
|
Before starting the installation, first you need to know what do you
|
|
|
|
want to use PHP for. There are three main fields you
|
|
|
|
can use PHP, as described in the
|
|
|
|
<link linkend="intro-whatcando">What can PHP do?</link>
|
|
|
|
section:
|
|
|
|
<itemizedlist>
|
2006-02-25 20:28:45 +00:00
|
|
|
<listitem><simpara>Websites and web applications (server-side scripting)</simpara></listitem>
|
2004-06-03 22:45:11 +00:00
|
|
|
<listitem><simpara>Command line scripting</simpara></listitem>
|
2006-02-25 20:28:45 +00:00
|
|
|
<listitem><simpara>Desktop (GUI) applications</simpara></listitem>
|
2004-06-03 22:45:11 +00:00
|
|
|
</itemizedlist>
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
For the first and most common form, you need three things:
|
|
|
|
PHP itself, a web server and a web browser. You
|
|
|
|
probably already have a web browser, and depending on
|
|
|
|
your operating system setup, you may also have a web
|
2018-06-15 11:50:40 +00:00
|
|
|
server (e.g. Apache on Linux and macOS; IIS on Windows).
|
2004-06-03 22:45:11 +00:00
|
|
|
You may also rent webspace at a company. This way, you
|
|
|
|
don't need to set up anything on your own, only write
|
|
|
|
your PHP scripts, upload it to the server you rent, and
|
|
|
|
see the results in your browser.
|
|
|
|
</para>
|
|
|
|
<para>
|
2006-02-25 20:28:45 +00:00
|
|
|
In case of setting up the server and PHP on your own, you have
|
2004-06-03 22:45:11 +00:00
|
|
|
two choices for the method of connecting PHP to the
|
|
|
|
server. For many servers PHP has a direct module
|
|
|
|
interface (also called SAPI). These servers include
|
|
|
|
Apache, Microsoft Internet Information Server,
|
2020-09-26 16:56:25 +00:00
|
|
|
Netscape and iPlanet servers.
|
|
|
|
If PHP has no
|
2004-06-03 22:45:11 +00:00
|
|
|
module support for your web server, you can always
|
|
|
|
use it as a CGI or FastCGI processor. This means you set up
|
|
|
|
your server to use the CGI executable of
|
|
|
|
PHP to process all PHP file requests on the server.
|
|
|
|
</para>
|
|
|
|
<para>
|
2018-08-16 15:32:42 +00:00
|
|
|
If you are also interested in using PHP for command line
|
2004-06-03 22:45:11 +00:00
|
|
|
scripting (e.g. write scripts autogenerating some images
|
|
|
|
for you offline, or processing text files depending
|
|
|
|
on some arguments you pass to them), you always need
|
|
|
|
the command line executable. For more information, read
|
|
|
|
the section about <link linkend="features.commandline">writing
|
|
|
|
command line PHP applications</link>. In this case,
|
|
|
|
you need no server and no browser.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
With PHP you can also write desktop GUI applications
|
|
|
|
using the PHP-GTK extension. This is a completely
|
|
|
|
different approach than writing web pages, as you
|
2008-01-29 12:37:01 +00:00
|
|
|
do not output any HTML, but manage windows and objects
|
2004-06-03 22:45:11 +00:00
|
|
|
within them. For more information about PHP-GTK, please
|
2007-06-20 22:25:43 +00:00
|
|
|
<link xlink:href="&url.php.gtk;">visit the site dedicated to
|
|
|
|
this extension</link>. PHP-GTK is not included in the
|
2004-06-03 22:45:11 +00:00
|
|
|
official PHP distribution.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
From now on, this section deals with setting up PHP
|
|
|
|
for web servers on Unix and Windows with server module
|
|
|
|
interfaces and CGI executables. You will also find
|
|
|
|
information on the command line executable in the
|
|
|
|
following sections.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
PHP source code and binary distributions for Windows can be
|
|
|
|
found at
|
2007-06-20 22:25:43 +00:00
|
|
|
<link xlink:href="&url.php.downloads;">&url.php.downloads;</link>.
|
2004-06-03 22:45:11 +00:00
|
|
|
</para>
|
|
|
|
</chapter>
|
|
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2004-06-03 22:45:11 +00:00
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|