Bug
am 17.04.2008 18:33:26 von pinbot
I just installed PHPMyChat plus on a website, and I'm getting the
following errors:
Warning: fopen(./acount/pages/chat_index.txt) [function.fopen]: failed
to open stream: Permission denied in /home/pinbot/public_html/Chat/
acounter.php on line 70
Warning: flock() expects parameter 1 to be resource, boolean given in /
home/pinbot/public_html/Chat/acounter.php on line 71
Warning: fgets(): supplied argument is not a valid stream resource in /
home/pinbot/public_html/Chat/acounter.php on line 72
Warning: flock() expects parameter 1 to be resource, boolean given in /
home/pinbot/public_html/Chat/acounter.php on line 73
Warning: fclose(): supplied argument is not a valid stream resource
in /home/pinbot/public_html/Chat/acounter.php on line 74
Warning: fopen(./acount/pages/chat_index.txt) [function.fopen]: failed
to open stream: Permission denied in /home/pinbot/public_html/Chat/
acounter.php on line 85
Warning: flock() expects parameter 1 to be resource, boolean given in /
home/pinbot/public_html/Chat/acounter.php on line 86
Warning: rewind(): supplied argument is not a valid stream resource
in /home/pinbot/public_html/Chat/acounter.php on line 87
Warning: flock() expects parameter 1 to be resource, boolean given in /
home/pinbot/public_html/Chat/acounter.php on line 89
Warning: fclose(): supplied argument is not a valid stream resource
in /home/pinbot/public_html/Chat/acounter.php on line 90
How do I fix this?
Re: Bug
am 17.04.2008 18:43:03 von alvaroNOSPAMTHANKS
pinbot escribió:
> Warning: fopen(./acount/pages/chat_index.txt) [function.fopen]: failed
> to open stream: Permission denied in /home/pinbot/public_html/Chat/
> acounter.php on line 70
This means that PHP does not have the appropriate permissions for this
file (I suppose it wants to write into the file). Open your favourite
FTP client and set these permissions:
....acount/pages/: rwxrwxrwx (777)
....acount/pages/chat_index.txt: rw-rw-rw (666)
--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor al baño María: http://www.demogracia.com
--
Re: Bug
am 17.04.2008 18:59:21 von Jerry Stuckle
pinbot wrote:
> I just installed PHPMyChat plus on a website, and I'm getting the
> following errors:
>
> Warning: fopen(./acount/pages/chat_index.txt) [function.fopen]: failed
> to open stream: Permission denied in /home/pinbot/public_html/Chat/
> acounter.php on line 70
>
> Warning: flock() expects parameter 1 to be resource, boolean given in /
> home/pinbot/public_html/Chat/acounter.php on line 71
>
> Warning: fgets(): supplied argument is not a valid stream resource in /
> home/pinbot/public_html/Chat/acounter.php on line 72
>
> Warning: flock() expects parameter 1 to be resource, boolean given in /
> home/pinbot/public_html/Chat/acounter.php on line 73
>
> Warning: fclose(): supplied argument is not a valid stream resource
> in /home/pinbot/public_html/Chat/acounter.php on line 74
>
> Warning: fopen(./acount/pages/chat_index.txt) [function.fopen]: failed
> to open stream: Permission denied in /home/pinbot/public_html/Chat/
> acounter.php on line 85
>
> Warning: flock() expects parameter 1 to be resource, boolean given in /
> home/pinbot/public_html/Chat/acounter.php on line 86
>
> Warning: rewind(): supplied argument is not a valid stream resource
> in /home/pinbot/public_html/Chat/acounter.php on line 87
>
> Warning: flock() expects parameter 1 to be resource, boolean given in /
> home/pinbot/public_html/Chat/acounter.php on line 89
>
> Warning: fclose(): supplied argument is not a valid stream resource
> in /home/pinbot/public_html/Chat/acounter.php on line 90
>
> How do I fix this?
>
I don't know the code there, but this is indicating you are trying to
open something but don't have sufficient permissions to do it. That
might be a file, a URL or whatever.
Why aren't you asking on the PhPMyChat Plus support boards? They know
the code, and what it is opening.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Re: Bug
am 17.04.2008 20:08:21 von hellsop
On Thu, 17 Apr 2008 18:43:03 +0200, Álvaro G. Vicario wrote:
> pinbot escribió:
>> Warning: fopen(./acount/pages/chat_index.txt) [function.fopen]: failed
>> to open stream: Permission denied in /home/pinbot/public_html/Chat/
>> acounter.php on line 70
>
> This means that PHP does not have the appropriate permissions for this
> file (I suppose it wants to write into the file). Open your favourite
> FTP client and set these permissions:
>
> ...acount/pages/: rwxrwxrwx (777)
> ...acount/pages/chat_index.txt: rw-rw-rw (666)
Eep! I hope not for long-term. There's very seldom a real need to make
permissions THAT open when the file can instead be assigned to a owner
or group that's appropriate for reaching the file.
--
With a Dremel tool and a cut-off wheel, _everything_ takes a flat-blade
screwdriver.
-- Matt Roberds in the Monastery
Re: Bug
am 17.04.2008 22:25:58 von webmasterNOSPAMTHANKS
*** Peter H. Coffin escribió/wrote (Thu, 17 Apr 2008 13:08:21 -0500):
> Eep! I hope not for long-term. There's very seldom a real need to make
> permissions THAT open when the file can instead be assigned to a owner
> or group that's appropriate for reaching the file.
As far as I know, not through FTP. And in a shared hosting, the "apache"
group and "others" are practically synonyms :)
--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor en cubitos: http://www.demogracia.com
--
Re: Bug
am 18.04.2008 03:31:02 von hellsop
On Thu, 17 Apr 2008 22:25:58 +0200, Álvaro G. Vicario wrote:
> *** Peter H. Coffin escribió/wrote (Thu, 17 Apr 2008 13:08:21 -0500):
>> Eep! I hope not for long-term. There's very seldom a real need to make
>> permissions THAT open when the file can instead be assigned to a owner
>> or group that's appropriate for reaching the file.
>
> As far as I know, not through FTP. And in a shared hosting, the "apache"
> group and "others" are practically synonyms :)
I don't recall the OP mentioning shared hosting, only "a website".
--
If any foreign minister begins to defend to the death a "peace conference,"
you can be sure his government has already placed its orders for new
battleships and airplanes. -Joseph Stalin, Soviet Premier