Posted by Jerry Stuckle on 07/23/07 12:19
tim braun wrote:
> 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
>
>
Your problem was not the 777 - mine are 600. But they should be owned
by the webserver user.
I'd suggest you start with a good book on Linux administration - there
are all kinds of things to learn here :-)
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|