Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-11 Thread Rasmus Lerdorf
Richard Lynch wrote: You'd be confusing the HELL out of me to have PHP sending out a 403 because it couldn't read the included file after it already managed to read index.php and connect.inc Right, I don't disagree with you that it would be confusing and inconsistent which is why no such magic is

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-11 Thread Richard Lynch
Rasmus Lerdorf wrote: > Jason Barnett wrote: >>> the wrong permissions. Why does apache not server the 403 on the php >>> page? Maybe this is better off in the apache list. >> >> Yeah, this is really better on an Apache list... but... >> http://httpd.apache.org/docs/mod/core.html#errordocument >

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Rasmus Lerdorf
Jason Morehouse wrote: I still don't really get why apache hands parsing off to php when it knows it doesn't have read access to the file, but I'll save that for another list! It could check, I suppose, but it doesn't always know that just because it can't access the file the receiver won't be a

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Richard Lynch
> On Jan 10, 2005, at 12:49 PM, Jason Morehouse wrote: > >> Hello. I'm not sure if this is an apache problem or php... but >> wondering if anyone has come across the same problem. >> >> -rw---1 root roottest.html >> -rw---1 root roottest.php >> >> Trying to

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Rasmus Lerdorf
Jason Barnett wrote: the wrong permissions. Why does apache not server the 403 on the php page? Maybe this is better off in the apache list. Yeah, this is really better on an Apache list... but... http://httpd.apache.org/docs/mod/core.html#errordocument No, it has nothing to do with Apache.

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Jason Morehouse
Richard Lynch wrote: A! Now we see the question! Why doesn't it yield 403 like it "should" First and foremost, use php.ini or httpd.conf or .htaccess to *NOT* let PHP send error messages OF ANY KIND to the browser on a production site. [You could also use ini_set within a script if the file i

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Rasmus Lerdorf
Jason Morehouse wrote: Jonel Rienton wrote: man chmod, i gather you're new to linux/*nix I don't need a lesson in file permissions, thanks. Apache runs as nobody. The problem isn't trying to get apache to display test.php, it's having it display the proper 403 error page, rather than a php er

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Bret Hughes
On Mon, 2005-01-10 at 15:21, Jason Morehouse wrote: > Jonel Rienton wrote: > > man chmod, i gather you're new to linux/*nix > > I don't need a lesson in file permissions, thanks. Apache runs as > nobody. The problem isn't trying to get apache to display test.php, > it's having it display the p

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Jason Wong
On Tuesday 11 January 2005 04:13, Jason Morehouse wrote: > I don't need a lesson in file permissions, thanks. Apache runs as > nobody. The problem isn't trying to get apache to display test.php, > it's having it display the proper 403 error page, rather than a php > error when it doesn't have ac

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Curt Zirzow
* Thus wrote Jason Morehouse: > Richard Lynch wrote: > >Jason Morehouse wrote: > > > >>Hello. I'm not sure if this is an apache problem or php... but > >>wondering if anyone has come across the same problem. > >> > >>-rw---1 root root test.html > >>-rw---1 root root

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Curt Zirzow
* Thus wrote trobi: > Jason Morehouse wrote / napísal (a): > > >Hello. I'm not sure if this is an apache problem or php... but > >wondering if anyone has come across the same problem. > > > >-rw---1 root roottest.html > >-rw---1 root roottest.php > > > What about

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Jason Barnett
the wrong permissions. Why does apache not server the 403 on the php page? Maybe this is better off in the apache list. Yeah, this is really better on an Apache list... but... http://httpd.apache.org/docs/mod/core.html#errordocument -- Teach a person to fish... Ask smart questions: http://www

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Jason Morehouse
Jonel Rienton wrote: man chmod, i gather you're new to linux/*nix I don't need a lesson in file permissions, thanks. Apache runs as nobody. The problem isn't trying to get apache to display test.php, it's having it display the proper 403 error page, rather than a php error when it doesn't have

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Jonel Rienton
man chmod, i gather you're new to linux/*nix http://jonel.road14.com -- I not know English well, but I know 7 computer languages. anonymous On Jan 10, 2005, at 12:49 PM, Jason Morehouse wrote: Hello. I'm not sure if this is an apa

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Travis Conway
you have to allow others to read it. You have it so only root can access the file. Try this: chmod 644 test.php while logged in as root. This should put the file as -rw-r--r-- 1 root root test.php HTH Travis - Original Message - From: "Jason Morehouse" <[EMAIL PROTECTED]> To: Sent: Mond

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Jason Morehouse
Richard Lynch wrote: Jason Morehouse wrote: Hello. I'm not sure if this is an apache problem or php... but wondering if anyone has come across the same problem. -rw---1 root root test.html -rw---1 root root test.php Trying to access test.html via a browser servers up th

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Jason Wong
On Tuesday 11 January 2005 02:49, Jason Morehouse wrote: > Hello. I'm not sure if this is an apache problem or php... but > wondering if anyone has come across the same problem. It's a file permissions problem as can be seen clearly below (which you've thoughtfully included). > -rw---1

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Richard Lynch
Jason Morehouse wrote: > Hello. I'm not sure if this is an apache problem or php... but > wondering if anyone has come across the same problem. > > -rw---1 root root test.html > -rw---1 root root test.php > > Trying to access test.html via a browser servers up the apache 40

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread trobi
Jason Morehouse wrote / napísal (a): Hello. I'm not sure if this is an apache problem or php... but wondering if anyone has come across the same problem. -rw---1 root roottest.html -rw---1 root roottest.php Trying to access test.html via a browser servers up the

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Brad Pauly
On Mon, 10 Jan 2005 13:49:26 -0500, Jason Morehouse <[EMAIL PROTECTED]> wrote: > Hello. I'm not sure if this is an apache problem or php... but > wondering if anyone has come across the same problem. > > -rw---1 root root test.html > -rw---1 root root test.php > > Try