Configuring PHP with Apache2

Ray Parrish crp at
Tue Apr 13 02:26:01 UTC 2010


i want to set up; PHP on my Hardy Heron box with Apache2 so that I can 
begin learning to make dynamic web sites with PHP. However, I have so 
far been unsuccesfull in getting my first simple PHP file to run.

I am getting the following error -

>   Forbidden
> You don't have permission to access /info.php on this server.
> ------------------------------------------------------------------------
> Apache/2.2.8 (Ubuntu) Server at Port 80
And here is my /etc/apache2/conf.d/php.conf file -

<IfModule mod_php5.c>
  AddType application/x-httpd-php .php
  AddType application/x-httpd-php-source .phps
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 9524288
DirectoryIndex index.php

And my /etc/apache2/httpd.conf file -

AddHandler cgi-script .php
Include conf.d/*.conf
<Directory /var/www>
Options +ExecCGI

So far my reading in the Apache2 docs has not given me the answer to why 
this is not working. Could someone please help?

Thanks, Ray Parrish

Linux dpkg Software Report script set..
Ray's Links, a variety of links to usefull things, and articles by Ray.
Writings of "The" Schizophrenic, what it's like to be a schizo, and other
things, including my poetry.

More information about the ubuntu-users mailing list