• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

[FIX] data_private_path and public

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
6 posts • Page 1 of 1

Postby Smilie » Sun Feb 19, 2006 4:05 pm

Hi,

I have followed instruction from FAQ about tmpfs, however, now I am getting either blank screen or info that my new path can't be found.

Info:

15:44:36[root@mp3bre chat]# mount
/dev/shm on /mnt/chat type tmpfs (rw)

/mnt >
drwxrwxrwt 9 root www-data 180 2006-02-19 15:45 chat

I can see that script has made directory's within (1 dir in private and 3 in public) also some files have been created.

My params in index.php:

require_once "src/phpfreechat.class.php";

$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$params["title"] = "MP3Bre chat! Enjoy...";
$params["height"] = "400px";
$params["width"] = "550px";
$params["max_msg"] = 21;
$params["data_private_path"] = "/mnt/chat/private";
$params["data_public_path"] = "/mnt/chat/public";
$params["css_file"] = dirname(__FILE__)."/templates/mp3bre/style.css.tpl.php";
$chat = new phpFreeChat( $params );

and also neccesary includes in head and body. However, I am getting blank page (I presume script crashes somewhere on the way, as the last include (which should show menu on the right) is not executet either.

Bare in mind, that with default directory it works, but response times are awfull (10+ seconds) :(

What am I doing wrong here? :)

Thanx!
Aleks
Smilie
New member
 
Posts: 7
Joined: Sun Feb 19, 2006 3:49 pm
Top

Postby Smilie » Sun Feb 19, 2006 4:09 pm

oh oh, forgot, it is to be 'seen' (blank page :P) at:

http://www.mp3bre.com/music/chat/index.php
Smilie
New member
 
Posts: 7
Joined: Sun Feb 19, 2006 3:49 pm
Top

Postby Smilie » Sun Feb 19, 2006 4:13 pm

very same server, just another location with default data_path:

http://chat.mp3bre.com/

works all fine, but damn slow :(
Smilie
New member
 
Posts: 7
Joined: Sun Feb 19, 2006 3:49 pm
Top

Postby phpfreechat » Sun Feb 19, 2006 5:38 pm

Hello Smilie,

You did something wrong :
Code: Select all
$params["data_public_path"]        = "/mnt/chat/public";

The public path MUST be public.

I suggest to remove this line. it should work.

However,
Using tmpfs tip will not increase the chat velocity ! it only try to optimize the server load.
To increse the velocity, try this parameter :
Code: Select all
$params["refresh_delay"] = 1000; // 1000ms = 1s

(default is 5 seconds)
But becarefull seting this parameter too low can overload your server.


Hope that help.

regards,
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby Smilie » Sun Feb 19, 2006 6:56 pm

works like a charm :)

thanks! :)
Smilie
New member
 
Posts: 7
Joined: Sun Feb 19, 2006 3:49 pm
Top

Postby phpfreechat » Sun Feb 19, 2006 7:14 pm

To change the harcoded timeout value, see the phpfreechatcontainerfile.class.php and go to the removeObsoleteNick() function.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top


Post a reply
6 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 7 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub