You are here: Re: newbie: include_path error « PHP Programming Language « IT news, forums, messages
Re: newbie: include_path error

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация