Configuring PHP with Apache2
Bruce Ferrell
bferrell at baywinds.org
Sat Apr 17 03:56:29 UTC 2010
Look at the error_log for apache and see what it tells you. Are you
able to access index.html in the same directory with info.php?
On 04/12/2010 07:50 PM, Luis Paulo wrote:
> You don't have an apache problem, you probably have a file
> permission/ownership problem
>
> see
> $ ls -l /var/www/info.php
>
> apache must be able to read it
> You may try to change group to www-data with read permission
>
> Hope it helps
> Luis
>
> On Tue, Apr 13, 2010 at 3:26 AM, Ray Parrish <crp at cmc.net
> <mailto:crp at cmc.net>> wrote:
>
> Hello,
>
> 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 127.0.1.1 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
> </IfModule>
> <Files *.php>
> SetOutputFilter PHP
> SetInputFilter PHP
> LimitRequestBody 9524288
> </Files>
> DirectoryIndex index.php
>
> And my /etc/apache2/httpd.conf file -
>
> AddHandler cgi-script .php
> Include conf.d/*.conf
> <Directory /var/www>
> Options +ExecCGI
> </Directory>
>
> 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..
> http://www.rayslinks.com/LinuxdpkgSoftwareReport.html
> Ray's Links, a variety of links to usefull things, and articles by
> Ray.
> http://www.rayslinks.com
> Writings of "The" Schizophrenic, what it's like to be a schizo,
> and other
> things, including my poetry.
> http://www.writingsoftheschizophrenic.com
>
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com <mailto:ubuntu-users at lists.ubuntu.com>
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>
More information about the ubuntu-users
mailing list