[Pmwiki-users] fopen(wiki.d/.flock): failed
Pham Cong Dinh
Sat Sep 18 12:43:00 CDT 2004
Hi Patrick R. Michaud,
Thanks for your excellent software. I just installed pmwiki2
successfully on my Windows XP box with php 5.0.1 and apache 2. I also
just found the way to install it on my Linux host. I deleted wiki.d
folder on the server which pmwiki created. Instead, I created a new
wiki.d folder manually (not uploaded), executing chmod 777 and retried.
So, It works. now, I can see an .flock file in it. After that, I upload
the .htaccess file from my Windows XP box into that wiki.d folder. I
think that is alright. You can see it here:
But I have got another problem. It seems that pmwiki2 doesnt support
utf-8. I have added this code:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
into pmwiki.tmpl but each time I reloaded the page, the browser (IE6 and
Firefox 1.0) automatically reset the character encoding into ISO-8859-1,
not utf-8 as I expected. As a result, I must reset the character
encoding to utf-8 to read the Unicode character.
Once more, when I entered the Unicode character into the Edit form (wih
utf-8 encoding in browser, input method engine with utf-8 support), save
and... it doesnot work. What I got is the question marks instead of
Unicode character at human-readable format.
It only returns the Unicode chracter at correct format only if I entered
them in a browser in ISO-8859-1 encoding mode. But there is a problem
when I re-edited them because what I saw in the Edit form is the code of
the characters, not the characters themselves, something like this:
bạn, rất cảm ơn bạn
I have read your source code but I haven't found any solution for this
In fact, your product is very impressive. A great work.
Thanks and best regards,
Patrick R. Michaud wrote:
>Sounds like there are two problems at work here. The first is just
>probably a bug in 2.0.devel5 not setting permissions properly
>for safe_mode. I'll see if I can find/fix the problem there.
>The other is just the general problem with PHP's "safe_mode"
>that PmWiki can't do much about.
>See http://www.pmwiki.org/wiki/PmWiki/PhpSafeMode for more details.
>Please feel free to file a new PITS request for this
>On Sat, Sep 18, 2004 at 11:21:26PM +0700, Pham Cong Dinh wrote:
>>I have just download and in installed pmwiki2.0 del5 on my Linux host
>>with php4 support. After executing |chmod 777 |my pmwiki2 folder, I got:
>>*Warning*: fopen(): SAFE MODE Restriction in effect. The script whose
>>uid is 32047 is not allowed to access
>>/home/pcdinh/public_html/php/pmwiki2/wiki.d owned by uid 99 in
>>*/home/pcdinh/public_html/php/pmwiki2/pmwiki.php* on line *244*
>>*Warning*: fopen(wiki.d/.flock): failed to open stream: No such file or
>>directory in */home/pcdinh/public_html/php/pmwiki2/pmwiki.php* on line *244*
>> PmWiki can't process your request
>>Cannot acquire lockfile
>>We are sorry for any inconvenience.
>>After that, I installed pmwiki 2.0 on my Windows box and pmwiki has
>>created a folder named wiki.d with and .flock file in it. I uploaded
>>this folder. But I got this error:
>>fopen(wiki.d/.flock): failed to open stream: Permission denied in
>>/home/pcdinh/public_html/php/pmwiki2/pmwiki.php on line 244
>>I have search this error on Google with the keyword: /.flock+pmwiki and
>>it seems that many people have got this error like me. But I dont find
>>any solution. What could I do now?
>>Thanks and best regards,
>>Pmwiki-users mailing list
>>Pmwiki-users at pmichaud.com
More information about the pmwiki-users