Configuring PHP with Apache2

Ray Parrish crp at cmc.net
Fri Apr 16 04:58:52 UTC 2010


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:
>> http://wiki.apache.org/httpd/13PermissionDenied
>> <quote>
>> 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.
>> </quote>
>>     
>
> Sorry I was a little quick on the 'Send' button. Meant to include these:
>
> https://help.ubuntu.com/9.10/serverguide/C/index.html
> https://help.ubuntu.com/9.10/serverguide/C/serverguide.pdf
> https://help.ubuntu.com/community/ApacheMySQLPHP
>   
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 -

ray at RaysComputer:~$ sudo chmod 755 /var/www/info.php
[sudo] password for ray:
ray at RaysComputer:~$ namei -m /var/www/info.php
f: /var/www/info.php
 drwxr-xr-x /
 drwxr-xr-x var
 drwxr-xr-x www
 -rwxr-xr-x info.php

ray at RaysComputer:~$ sudo a2enmod php5

Module php5 installed; run /etc/init.d/apache2 force-reload to enable.
ray at RaysComputer:~$ sudo /etc/init.d/apache2 restart
 * Restarting web server apache2                                                [Thu Apr 15 21:38:04 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.
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Thu Apr 15 21:38:14 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.
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
                                                                         [ OK ]
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



-- 
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






More information about the ubuntu-users mailing list