Configuring PHP with Apache2
ubuntu at iancoetzee.za.net
Fri Apr 16 09:45:49 UTC 2010
On 2010/04/16 06:58 AM, Ray Parrish wrote:
> NoOp wrote:
>> On 04/15/2010 05:53 PM, NoOp wrote:
>>> On 04/15/2010 04:33 PM, Ray Parrish wrote:
>>>> OK, I used chmod 777 on the info.php file, and I am still getting the
>>>> forbidden error message. Does anyone else have any ideas for me?
>>>> Thanks, Ray Parrish
>>> Found this:
>>> DO NOT set files or directories to mode 777, even "just to test", even
>>> if "it's just a test server". The purpose of a test server is to get
>>> things right in a safe environment, not to get away with doing it wrong.
>> Sorry I was a little quick on the 'Send' button. Meant to include these:
> OK, I read the links you included, and did the things that were
> recommended, however, I am still getting the 403 error. Here is some
> command output -
what does your <directory> </directory> tags show for directory /var/www ?
Mine is (I think its default)
# cat /etc/apache2/sites-enabled/000-default
Options Indexes FollowSymLinks MultiViews
allow from all
If I remember correctly from my apache reconf days that you should be
looking at the "Order" and "allow/deny from" directives.
> ray at RaysComputer:~$ echo "ServerName localhost" | sudo tee /etc/apache2/conf.d/fqdn
> ServerName localhost
> ray at RaysComputer:~$ sudo /etc/init.d/apache2 restart * Restarting web server apache2 [Thu Apr 15 21:42:38 2010] [warn] The Alias directive in /etc/apache2/conf.d/phpmyadmin.conf at line 3 will probably never match because it overlaps an earlier Alias.
> [Thu Apr 15 21:42:38 2010] [warn] The Alias directive in /etc/apache2/conf.d/phpmyadmin.conf at line 3 will probably never match because it overlaps an earlier Alias.
> Do you think that last error could be a problem?
> Thanks, Ray Parrish
AFAIK that should not be your problem, however where I in your position
I would comment it out and test again :)
More information about the ubuntu-users