Re: [us...@httpd] Running php scripts outside of document root

2009-05-24 Thread Lyle Wincentsen
Thanks for your help, that solved the problem. To answer your question as to why I don't want my php scripts to be in the document root tree, it is a potential security issue. I would rather not allow anyone to peruse my source code as they may be able to find ways to exploit it more easily. On

Re: [us...@httpd] Running php scripts outside of document root

2009-05-23 Thread Doug Bell
On May 24, 2009, at 12:31 AM, Lyle Wincentsen wrote: In short, I am trying to set up my document root to be /var/www/htdocs and I want my php scripts to run in /var/www/cgi-bin. Why? You can run PHP scripts in the same directory as your htdocs as you want. For some reason I am getting "50

[us...@httpd] Running php scripts outside of document root

2009-05-23 Thread Lyle Wincentsen
I am new to apache and php, so I suspect this will be an easy one to answer. In short, I am trying to set up my document root to be /var/www/htdocs and I want my php scripts to run in /var/www/cgi-bin. For some reason I am getting "500 internal server error" when I try to run a script (called phpa