598 Part V . (Web design service) Running Servers The core
598 Part V . Running Servers The core features of PHP are included within the PHP code itself, and additional features are implemented in the form of extensions. On Debian, PHP is contained in the php4 package, and the extensions are stored in separate packages that can be installed at any time. Some of the most popular packages include: . php4-curl This extension interfaces with the CURL library, which contains interfaces for several types of servers, including LDAP, HTTP, and FTP. . php4-domxml Functions related to processing XML. . php4-gd The GD library is used for creating images. It is most popular for its graph generation functions. . php4-ldap Functions for communicating with LDAP servers. . php4-mysql Functions for communicating with a MySQL database server. . php4-pear Functions and support programs for using the PHP Extension and Application Repository (PEAR). PEAR is similar to the CPAN archive for Perl programs and contains a large number of useful modules. (More information about PEAR modules can be found at http://pear.php.net.) . php4-pgsql Functions for communicating with a PostgreSQL database server. . php4-snmp Functions for performing network management using the SNMP protocol. Setting Up Your LAMP Server Before proceeding through the examples in this section, be sure that your Debian operating system is configured. You may also choose to set up a server on a system that has been configured using the layout and software packages intended for a workstation, but that s not recommended unless you will only be providing services for a very small number of users whom you know well and trust. Installing Apache The next step toward a functioning LAMP server is to install the Apache HTTP server, which can be found in the apache package. Use APT to retrieve and install the package: # apt-get install apache During the configuration process, you will be asked whether you want to enable the suexec mechanism. The suexec feature increases the security of CGI applications and is generally recommended. You can change your selection later using debconf to reconfigure the apache package. More information about debconf can be found in Chapter 9.
If you are looking for affordable and reliable webhost to host and run your business application visit our ftp web hosting services.