Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

Functon fopen on B2

Got problems with your B2 or B3? Share and get helped!
Post Reply
KeithH
Posts: 6
Joined: 17 Aug 2011, 04:54

Functon fopen on B2

Post by KeithH »

Can anyone help me?

I have a php program loaded in the www folder. It works, but gets to a point with the folowing warning notice:

Warning: fopen(admin/pages/reveal/views.txt) [function.fopen]: failed to open stream: Permission denied in /home/web/FB2/preview.php on line 19

Is this a function switched off in Bubba, or part of the php program I've loaded? I'm not good at getting into the control functions of the Bubba operating systems so it would need to be in easy understand english please.

Thanks if anyone can help.
Cheeseboy
Posts: 789
Joined: 08 Apr 2007, 12:16

Re: Functon fopen on B2

Post by Cheeseboy »

Hi KeithH, and welcome!

Could you please send us the output of this?

Code: Select all

$ cat -n /home/web/FB2/preview.php | grep 19
From a quick google, it looks like you are trying to use something called FanPage Pro. I have no experience of this. But it would be interesting to know if all the files are under /home/web, and what the ownerships are like.
You probably need to do a:

Code: Select all

# chown -R www-data /home/web/FB2
This will change the ownership of the files to www-data (which is the user the web server uses, so it will have access to them).
You will probably have to do this as root.

Best regards,

Cheeseboy
KeithH
Posts: 6
Joined: 17 Aug 2011, 04:54

Re: Functon fopen on B2

Post by KeithH »

Hi Cheeseboy,

Many thanks for your advice. with a little readup over two days in how to use Putty, I did as you advised entering the chown code you gave. It is now working correctly.

Thanks again

Keith
Post Reply