why do I need to set the user and group to the same owner of the file that is being displayed?

This is a discussion on why do I need to set the user and group to the same owner of the file that is being displayed? within the Apache Web Server forums, part of the Web Server and Related Forums category; I downloaded and installed Apache 2.2.4 from source. Out of the box, no problem with the standard httpd....


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-22-2007
Phil Latio
 
Posts: n/a
Default why do I need to set the user and group to the same owner of the file that is being displayed?

I downloaded and installed Apache 2.2.4 from source.
Out of the box, no problem with the standard httpd.conf. I can display the
"It works!" html page that resides in the htdocs directory when I enter the
IP address (of the machine with apache installed) in the browser of a PC on
the same local network.

However the problems occur when I try adding the most basic of virtual hosts
(see just below). This produces an Error 403 permission denied on any html
file in the below directory.

NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.domain.co.uk
DocumentRoot /home/lumsden/websites/domain.co.uk/www/html
</VirtualHost>

The owner/group of the directory
/home/lumsden/websites/domain.co.uk/www/html is phillatio but I can't see
that actually matters since the permissions are drwxr-xr-x.

I then looked in the httpd.conf file, both the user and group were earlier
set by me to apache which I then set the home directory as
/home/lumsden/websites. However I changed both user and group to phillatio
within the httpd.conf file and suddenly the pages under the virtual host are
displayed.

So my question is why do I need to set the user and group to the same owner
of the file that is being displayed?

Cheers

Phil



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:40 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0