Posted by tim braun on 07/23/07 09:05
On Jul 23, 12:30 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> tim braun wrote:
> > dear php gurus,
> > i installed apache2 + php5 on a debian 4.0 box. then i created a
> > script with the following command:
> > <? phpinfo(); ?>
> > i placed the script into the /var/www directory and called it
> > test.php. if i try to run the script with:
> >http://localhost/test.phpi get a error message:
>
> > Warning: Unknown: failed to open stream: Permission denied in Unknown
> > on line 0
> > Fatal error: Unknown: Failed opening required '/var/www/
> > test.php' (include_path='.:/usr/share/php5') in Unknown on line 0
>
> > i installed apache and php without changing any ini oder conf files.
> > what am i missing ?
>
> > thanx alot
> > tim
>
> Who's the owner of the test.php file? Does the webserver user have read
> access to it?
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================
jerry
chmod 777 did the trick. thank you; what are the normal permission to
use for php scripts ? and where is the approperiate folder to store
the scripts ? right now i have placed the script in /var/www.
thanx alot
tim
Navigation:
[Reply to this message]
|