index.php gives an error warning failed to open stream permission denied in unknown on line 0

Asked by kully on 2009-01-22

I get the following error in ubuntu 8.10 lamp server with open ssh and vsftpd

i have made ftp write to the directory /var/www for one user with permissions 777 this is the only permissions i have changed, the PHP file just has the php display info code in it.

i get the error when i go to my site 10.0.0.6/index.php

Warning: Unknown: failed to open stream: Permission denied in unknown on line 0

Fatal error: Unknown: Failed opening required '/var/www/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in
Unknown on line 0

please advise what i have done wrong and what to do to correct it

<email address hidden>

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apache2 Edit question
Assignee:
No assignee Edit question
Solved by:
kully
Solved:
2009-01-22
Last query:
2009-01-22
Last reply:
kully (k-gohlar) said : #1

sorry guys figured it out set permissions to 755 thank you anyway

How did you change the permissions? Where and what did you go to to change?

I've since got this working as well.

kully (k-gohlar) said : #4

hi

sorry for the late reply, i only just looked at this posting today, thank you for the update anyway

> To: <email address hidden>
> From: <email address hidden>
> Subject: Re: [Question #58428]: index.php gives an error warning failed to open stream permission denied in unknown on line 0
> Date: Sat, 26 Sep 2009 06:30:24 +0000
>
> Your question #58428 on apache2 in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/apache2/+question/58428
>
> Zachk18 posted a new comment:
> I've since got this working as well.
>
> --
> You received this question notification because you are a direct
> subscriber of the question.

_________________________________________________________________
With Windows Live, you can organise, edit, and share your photos.
http://clk.atdmt.com/UKM/go/134665338/direct/01/