You are not logged in.

#1 2002-11-17 18:42:09

Arielext
Member
From: Amersfoort, the Netherlands
Registered: 2002-08-12
Posts: 362
Website

apache problems

I've made a server with apache, ssl, mysql and php
the apache user = www
www is in the same group as httpd
the website is in /home/httpd/html

When the www/httpd user makes a directory in that folder the contents can be read. When root makes a folder it can't (so far so good)
root downloads the website and puts it in the right place
root does a

chown -R httpd /home/httpd
chgrp - R httpd /home/httpd

Now when I check the properties of a direcotry within /home/httpd (let's take /html) mc says that the user httpd of the group httpd is the owner

but ... here it comes smile
When someone tries to connect to the server it returns a 403 forbidden.

So I did it all again, I downloaded the website from a windows based ftp while logged in as the httpd user. but the problem stays, I have to make the directory's myself, downloading the directoriy's says that the directory is owned by httpd, but the 403 stays sad

problem is that there are like ~ 1000 subdirectory's and I don't want to make all the ~ 1000 directory's myself

Am I missing a step? I guess so, can someone help me out?

p.s. please don't mind my bad english, I'm terrible in all langueges, even my native one smile


apt-get install arch

Offline

#2 2002-11-22 11:03:38

Arielext
Member
From: Amersfoort, the Netherlands
Registered: 2002-08-12
Posts: 362
Website

Re: apache problems

nobody?

so this isn't a simple question after all huh smile


apt-get install arch

Offline

#3 2002-11-23 21:39:06

faust
Member
From: Houston, Tx
Registered: 2002-08-13
Posts: 3

Re: apache problems

catch me online, I'll try to help you out


-Faust

Offline

#4 2002-11-24 18:51:33

Arielext
Member
From: Amersfoort, the Netherlands
Registered: 2002-08-12
Posts: 362
Website

Re: apache problems

Think I know the answer, but I can't check it now
I guess that my direcory's are non-executable a.t.m.
A root user can access a non-executable directory but a non-root user can't.


apt-get install arch

Offline

#5 2002-12-02 14:44:31

ody
Member
From: Manchester, UK
Registered: 2002-08-12
Posts: 216
Website

Re: apache problems

did you set /home/httpd as the document root in httpd.conf?

Offline

#6 2002-12-02 15:08:51

Arielext
Member
From: Amersfoort, the Netherlands
Registered: 2002-08-12
Posts: 362
Website

Re: apache problems

of course.

The "make directories executable" trick did the work smile


apt-get install arch

Offline

Board footer

Powered by FluxBB