Wednesday, August 18, 2010

Setting up Apache2, PHP, and PostgreSQL

Install Apache2, PHP, and the PostgreSQL module for PHP.

sudo yum install httpd php php-pgsql



Configure Apache2 by editing the httpd.conf file.

sudo vi /etc/httpd/conf/httpd.conf


Add the following line to the file so that files with names ending in .html will be parsed for php scripts.

AddType application/x-httpd-php .php .html

No comments:

Post a Comment