diff --git a/general/prog/php.xml b/general/prog/php.xml index 9efd1e3096..6168b94a44 100644 --- a/general/prog/php.xml +++ b/general/prog/php.xml @@ -13,123 +13,134 @@ ]> - -$LastChangedBy$ -$Date$ - - -<acronym>PHP</acronym>-&php-version; - -PHP + - -Introduction to <application><acronym>PHP</acronym></application> + + $LastChangedBy$ + $Date$ + -PHP is the -PHP Hypertext Preprocessor. Primarily used in dynamic web -sites, it allows for programming code to be directly embedded into the -HTML markup. + PHP-&php-version; -Package information - -Download (HTTP): - -Download (FTP): - -Download MD5 sum: &php-md5sum; -Download size: &php-size; -Estimated disk space required: -&php-buildsize; -Estimated build time: -&php-time; - + + PHP + -Additional downloads - -Required patch for Berkeley DB: - - + + Introduction to PHP -<application><acronym>PHP</acronym></application> -dependencies -Required - - + PHP is the PHP Hypertext Preprocessor. + Primarily used in dynamic web sites, it allows for programming code to be + directly embedded into the HTML markup. -Optional -, -, -, -ClibPDF, -, -, -, -QDBM, -cdb, -, -, -, -GD, -, -X ( or ), -, - -t1lib, - -, -, -, -, -, -, -, -, - or , -libmcrypt, -mhash, -Net-SNMP, -SQLite, -Dmalloc, -mnoGoSearch, -Mini SQL, -Empress, -Birdstep, -DBMaker, -Adabas, -FrontBase, -Caudium, -WDDX, - -FDF Toolkit, -Hyperwave, -Monetra, - and -MTA - - + Package Information + + + Download (HTTP): + + + Download (FTP): + + + Download MD5 sum: &php-md5sum; + + + Download size: &php-size; + + + Estimated disk space required: &php-buildsize; + + + Estimated build time: &php-time; + + - + Additional Downloads + + + Required patch for Berkeley DB: + + - -Installation of <application><acronym>PHP</acronym></application> + PHP Dependencies -You can use PHP -for server-side scripting, command line scripting or client-side -GUI applications. The book provides instructions for -setting up PHP for -server-side scripting as it is the most common form. + Required + -If you have Berkeley DB installed and wish to utilize it, apply -the following patch: + Optional + , + , + , + ClibPDF, + , + , + , + QDBM, + cdb, + , + , + , + GD, + , + X ( or ), + , + + t1lib, + + , + , + , + , + , + , + , + , + or , + libmcrypt, + mhash, + Net-SNMP, + SQLite, + Dmalloc, + mnoGoSearch, + Mini SQL, + Empress, + Birdstep, + DBMaker, + Adabas, + FrontBase, + Caudium, + WDDX, + + FDF Toolkit, + Hyperwave, + Monetra, + and + MTA -patch -Np1 -i ../php-&php-version;-db43-1.patch + -Install PHP by -running the following commands: + + Installation of PHP -./configure --prefix=/usr \ + + You can use PHP + for server-side scripting, command line scripting or client-side + GUI applications. The book provides instructions for + setting up PHP for + server-side scripting as it is the most common form. + + + If you have Berkeley DB installed and + wish to utilize it, apply the following patch: + +patch -Np1 -i ../php-&php-version;-db43-1.patch + + Install PHP by + running the following commands: + +./configure --prefix=/usr \ --sysconfdir=/etc \ --with-apxs2 \ --with-config-file-path=/etc \ @@ -146,98 +157,114 @@ running the following commands: --with-ncurses \ --with-readline \ --disable-libxml && -make +make -Now, as the root user: + Now, as the root user: -make install && -cp php.ini-recommended /etc/php.ini +make install && +cp php.ini-recommended /etc/php.ini -Remove the --disable-libxml switch if you -have installed otherwise -pear will not be built. + Remove the switch if you + have installed otherwise + pear will not be built. -PHP has many more configure options that -will enable support for certain things. You can use -./configure --help to see a full list of the -available options. Also, use of the -PHP web site -is highly recommended, as their online docs are very good. + + PHP has many more configure + options that will enable support for certain things. You can use + ./configure --help to see a full list of the + available options. Also, use of the + PHP web site + is highly recommended, as their online docs are very good. + - + - -Configuring <application><acronym>PHP</acronym></application> + + Configuring PHP -Config files -/etc/php.ini, -/etc/pear.conf - -/etc/php.ini - -/etc/pear.conf - + + Config Files -Configuration Information + /etc/php.ini, + /etc/pear.conf -To enable PHP support in the -Apache web server, -a new LoadModule (which should be handled automatically by the -make install command) and AddType directives must be added -to the httpd.conf file: + + /etc/php.ini + -LoadModule php5_module lib/apache/libphp5.so -AddType application/x-httpd-php .php + + /etc/pear.conf + -Also, it can be useful to add an entry for -index.php to the DirectoryIndex directive of the -httpd.conf file. + -You'll need to restart the Apache web server -after making any modifications to the httpd.conf -file. - + + Configuration Information - + To enable PHP support in the Apache + web server, a new LoadModule (which should be handled automatically by the + make install command) and AddType directives + must be added to the httpd.conf file: - -Contents +LoadModule php5_module lib/apache/libphp5.so +AddType application/x-httpd-php .php - -Installed Programs -Installed Library -Installed Directories + Also, it can be useful to add an entry for + index.php to the DirectoryIndex directive of the + httpd.conf file. - -pear, php, php-config, phpextdist and phpize -libphp5.so -/usr/include/php and /usr/lib/php - - + You'll need to restart the Apache web server + after making any modifications to the httpd.conf + file. - -Short Descriptions - + - -php -is a command line interface that enables you to parse and -execute PHP code. - -php - - + - -pear -is the PHP Extension and Application -Repository (PEAR) package manager. - -pear - - - + + Contents - + + Installed Programs + Installed Library + Installed Directories + + + pear, php, php-config, phpextdist, and phpize + libphp5.so + /usr/include/php and /usr/lib/php + + + + + Short Descriptions + + + + + php + + is a command line interface that enables you to parse and + execute PHP code. + + php + + + + + + pear + + is the PHP Extension and Application + Repository (PEAR) package manager. + + pear + + + + + + +