This is an old revision of the document!
PHP
Installation
Ubuntu
10.04 Lucid and above
Simply install the following package(s):
php5
(main)
There are some additional packages, providing special functionality:
php5-cli
(main) – needed to run PHP scripts on the command line interface (CLI)php5-suhosin
(main) – installs Suhosin to get a more secure PHP installation.php5-gd
(main) – brings GD based image functionsphp5-pgsql
(main)– brings pgsql supportphp5-sqlite
(main) – brings SQLite supportphp5-xmlrpc
(main) – brings XMLRPC support
There are even more extensions and packages. To list them, open a terminal and run:
apt-cache search ^php5-
Apache integration
To enable your Apache HTTP Server to execute PHP scripts, install the following package(s):
libapache2-mod-php5
(main)
Debian
5.0 Lenny and above
See the Ubuntu instructions, it is exactly the same on Debian.