Search This Blog

Sunday, August 16, 2009

PHP, Ubuntu Installation

sudo apt-get install apache2 php5 libapache2-mod-php5
sudo apt-get install php5-cli
(command line php)

sudo /etc/init.d/apache2 restart
(make sure apache can process .php file)


You can either have PHP as a CGI module (external program), or as mod_php (compiled in with Apache).

No comments: