PHP
PHP is a wide-spread, high-level interpreted programming language. The main area for its application is the Web. But it can also be used on the command line to write “offline” programs.
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, see mod_php5.
Debian
5.0 Lenny and above
See the Ubuntu instructions, it is exactly the same on Debian.